1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
5 #ifndef _RTE_ACC100_PMD_H_
6 #define _RTE_ACC100_PMD_H_
8 /* Helper macro for logging */
9 #define rte_bbdev_log(level, fmt, ...) \
10 rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \
13 #ifdef RTE_LIBRTE_BBDEV_DEBUG
14 #define rte_bbdev_log_debug(fmt, ...) \
15 rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \
18 #define rte_bbdev_log_debug(fmt, ...)
21 /* ACC100 PF and VF driver names */
22 #define ACC100PF_DRIVER_NAME intel_acc100_pf
23 #define ACC100VF_DRIVER_NAME intel_acc100_vf
25 /* ACC100 PCI vendor & device IDs */
26 #define RTE_ACC100_VENDOR_ID (0x8086)
27 #define RTE_ACC100_PF_DEVICE_ID (0x0d5c)
28 #define RTE_ACC100_VF_DEVICE_ID (0x0d5d)
30 /* Private data structure for each ACC100 device */
31 struct acc100_device {
32 void *mmio_base; /**< Base address of MMIO registers (BAR0) */
33 bool pf_device; /**< True if this is a PF ACC100 device */
34 bool configured; /**< True if this ACC100 device is configured */
37 #endif /* _RTE_ACC100_PMD_H_ */