1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2016 Cavium, Inc.
9 #include "cpt_common.h"
12 #define CPT_MAX_CORE_GROUPS 8
13 #define CPT_MAX_SE_CORES 10
14 #define CPT_MAX_AE_CORES 6
15 #define CPT_MAX_TOTAL_CORES (CPT_MAX_SE_CORES + CPT_MAX_AE_CORES)
16 #define CPT_MAX_VF_NUM 16
17 #define CPT_PF_MSIX_VECTORS 3
18 #define CPT_PF_INT_VEC_E_MBOXX(a) (0x02 + (a))
19 #define CPT_UCODE_VERSION_SZ 32
29 u8 version[CPT_UCODE_VERSION_SZ];
43 * cpt device structure
46 u16 flags; /* Flags to hold device status bits */
47 u8 num_vf_en; /* Number of VFs enabled (0...CPT_MAX_VF_NUM) */
48 struct cpt_vf_info vfinfo[CPT_MAX_VF_NUM]; /* Per VF info */
50 void __iomem *reg_base; /* Register start address */
51 struct pci_dev *pdev; /* pci device handle */
53 struct microcode mcode[CPT_MAX_CORE_GROUPS];
54 u8 next_mc_idx; /* next microcode index */
60 void cpt_mbox_intr_handler(struct cpt_device *cpt, int mbx);
61 #endif /* __CPTPF_H */