1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
15 /* Bits manipulation */
18 /* Bitfields manipulation */
19 #include "roc_bitfield.h"
22 #define PLT_ETHER_ADDR_LEN 6
24 /* Platform definition */
25 #include "roc_platform.h"
27 #define ROC_LMT_LINE_SZ 128
28 #define ROC_NUM_LMT_LINES 2048
29 #define ROC_LMT_LINES_PER_CORE_LOG2 5
30 #define ROC_LMT_LINE_SIZE_LOG2 7
31 #define ROC_LMT_BASE_PER_CORE_LOG2 \
32 (ROC_LMT_LINES_PER_CORE_LOG2 + ROC_LMT_LINE_SIZE_LOG2)
35 #if defined(__aarch64__)
38 #include "roc_io_generic.h"
42 #define PCI_VENDOR_ID_CAVIUM 0x177D
43 #define PCI_DEVID_CNXK_RVU_PF 0xA063
44 #define PCI_DEVID_CNXK_RVU_VF 0xA064
45 #define PCI_DEVID_CNXK_RVU_AF 0xA065
46 #define PCI_DEVID_CNXK_RVU_SSO_TIM_PF 0xA0F9
47 #define PCI_DEVID_CNXK_RVU_SSO_TIM_VF 0xA0FA
48 #define PCI_DEVID_CNXK_RVU_NPA_PF 0xA0FB
49 #define PCI_DEVID_CNXK_RVU_NPA_VF 0xA0FC
50 #define PCI_DEVID_CNXK_RVU_AF_VF 0xA0f8
51 #define PCI_DEVID_CNXK_DPI_VF 0xA081
52 #define PCI_DEVID_CNXK_EP_VF 0xB203
53 #define PCI_DEVID_CNXK_RVU_SDP_PF 0xA0f6
54 #define PCI_DEVID_CNXK_RVU_SDP_VF 0xA0f7
55 #define PCI_DEVID_CNXK_BPHY 0xA089
57 #define PCI_DEVID_CN9K_CGX 0xA059
58 #define PCI_DEVID_CN10K_RPM 0xA060
60 #define PCI_DEVID_CN9K_RVU_CPT_PF 0xA0FD
61 #define PCI_DEVID_CN9K_RVU_CPT_VF 0xA0FE
62 #define PCI_DEVID_CN10K_RVU_CPT_PF 0xA0F2
63 #define PCI_DEVID_CN10K_RVU_CPT_VF 0xA0F3
65 #define PCI_SUBSYSTEM_DEVID_CN10KA 0xB900
66 #define PCI_SUBSYSTEM_DEVID_CN10KAS 0xB900
68 #define PCI_SUBSYSTEM_DEVID_CN9KA 0x0000
69 #define PCI_SUBSYSTEM_DEVID_CN9KB 0xb400
70 #define PCI_SUBSYSTEM_DEVID_CN9KC 0x0200
71 #define PCI_SUBSYSTEM_DEVID_CN9KD 0xB200
72 #define PCI_SUBSYSTEM_DEVID_CN9KE 0xB100
74 /* HW structure definition */
86 #include "roc_model.h"
107 #include "roc_utils.h"
110 #include "roc_idev.h"
112 /* Baseband phy cgx */
113 #include "roc_bphy_cgx.h"
116 #include "roc_bphy.h"
123 #include "roc_ae_fpm_tables.h"
125 #include "roc_ie_on.h"
126 #include "roc_ie_ot.h"
129 /* HASH computation */
130 #include "roc_hash.h"
132 #endif /* _ROC_API_H_ */