baseband/acc100: introduce PMD for ACC100
[dpdk.git] / drivers / baseband / acc100 / rte_acc100_pmd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4
5 #ifndef _RTE_ACC100_PMD_H_
6 #define _RTE_ACC100_PMD_H_
7
8 /* Helper macro for logging */
9 #define rte_bbdev_log(level, fmt, ...) \
10         rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \
11                 ##__VA_ARGS__)
12
13 #ifdef RTE_LIBRTE_BBDEV_DEBUG
14 #define rte_bbdev_log_debug(fmt, ...) \
15                 rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \
16                 ##__VA_ARGS__)
17 #else
18 #define rte_bbdev_log_debug(fmt, ...)
19 #endif
20
21 /* ACC100 PF and VF driver names */
22 #define ACC100PF_DRIVER_NAME           intel_acc100_pf
23 #define ACC100VF_DRIVER_NAME           intel_acc100_vf
24
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)
29
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 */
35 };
36
37 #endif /* _RTE_ACC100_PMD_H_ */