Scott Branden 522f692686 misc: bcm-vk: add Broadcom VK driver
Add initial version of Broadcom VK driver to enumerate PCI device IDs
of Valkyrie and Viper device IDs.

VK based cards provide real-time high performance, high throughput,
low latency offload compute engine operations.
They are used for multiple parallel offload tasks as:
audio, video and image processing and crypto operations.

Further commits add additional features to driver beyond probe/remove.

Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Link: https://lore.kernel.org/r/20210120175827.14820-3-scott.branden@broadcom.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-25 18:44:44 +01:00

30 lines
391 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright 2018-2020 Broadcom.
*/
#ifndef BCM_VK_H
#define BCM_VK_H
#include <linux/pci.h>
#define DRV_MODULE_NAME "bcm-vk"
/* VK device supports a maximum of 3 bars */
#define MAX_BAR 3
enum pci_barno {
BAR_0 = 0,
BAR_1,
BAR_2
};
#define BCM_VK_NUM_TTY 2
struct bcm_vk {
struct pci_dev *pdev;
void __iomem *bar[MAX_BAR];
};
#endif