2 * Copyright (C) 2016 Cavium, Inc.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License
6 * as published by the Free Software Foundation.
12 #include "cpt_common.h"
15 #define CPT_MAX_CORE_GROUPS 8
16 #define CPT_MAX_SE_CORES 10
17 #define CPT_MAX_AE_CORES 6
18 #define CPT_MAX_TOTAL_CORES (CPT_MAX_SE_CORES + CPT_MAX_AE_CORES)
19 #define CPT_MAX_VF_NUM 16
20 #define CPT_PF_MSIX_VECTORS 3
21 #define CPT_PF_INT_VEC_E_MBOXX(a) (0x02 + (a))
22 #define CPT_UCODE_VERSION_SZ 32
32 u8 version[CPT_UCODE_VERSION_SZ];
46 * cpt device structure
49 u16 flags; /* Flags to hold device status bits */
50 u8 num_vf_en; /* Number of VFs enabled (0...CPT_MAX_VF_NUM) */
51 struct cpt_vf_info vfinfo[CPT_MAX_VF_NUM]; /* Per VF info */
53 void __iomem *reg_base; /* Register start address */
54 struct pci_dev *pdev; /* pci device handle */
56 struct microcode mcode[CPT_MAX_CORE_GROUPS];
57 u8 next_mc_idx; /* next microcode index */
63 void cpt_mbox_intr_handler(struct cpt_device *cpt, int mbx);
64 #endif /* __CPTPF_H */