xref: /dpdk/drivers/common/sfc_efx/sfc_efx.h (revision 1094dd940ec0cc4e3ce2c5cd94807350855a17f9)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2021 Xilinx, Inc.
4  * Copyright(c) 2019 Solarflare Communications Inc.
5  *
6  * This software was jointly developed between OKTET Labs (under contract
7  * for Solarflare) and Solarflare Communications, Inc.
8  */
9 
10 #ifndef _SFC_EFX_H_
11 #define _SFC_EFX_H_
12 
13 #include <bus_pci_driver.h>
14 
15 #include "efx.h"
16 #include "efsys.h"
17 
18 #include <rte_compat.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 enum sfc_efx_dev_class {
25 	SFC_EFX_DEV_CLASS_INVALID = 0,
26 	SFC_EFX_DEV_CLASS_NET,
27 	SFC_EFX_DEV_CLASS_VDPA,
28 
29 	SFC_EFX_DEV_NCLASS
30 };
31 
32 __rte_internal
33 enum sfc_efx_dev_class sfc_efx_dev_class_get(struct rte_devargs *devargs);
34 
35 __rte_internal
36 int sfc_efx_family(struct rte_pci_device *pci_dev,
37 		   efx_bar_region_t *mem_ebrp,
38 		   efx_family_t *family);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* _SFC_EFX_H_ */
45