Go to the documentation of this file.
18 #ifndef __BFA_DEFS_H__
19 #define __BFA_DEFS_H__
24 #define BFA_MFG_SERIALNUM_SIZE 11
25 #define STRSZ(_n) (((_n) + 4) & ~3)
56 #define bfa_mfg_is_mezz(type) (( \
57 (type) == BFA_MFG_TYPE_JAYHAWK || \
58 (type) == BFA_MFG_TYPE_WANCHESE || \
59 (type) == BFA_MFG_TYPE_ASTRA || \
60 (type) == BFA_MFG_TYPE_LIGHTNING_P0 || \
61 (type) == BFA_MFG_TYPE_LIGHTNING || \
62 (type) == BFA_MFG_TYPE_CHINOOK))
67 #define bfa_mfg_is_old_wwn_mac_model(type) (( \
68 (type) == BFA_MFG_TYPE_FC8P2 || \
69 (type) == BFA_MFG_TYPE_FC8P1 || \
70 (type) == BFA_MFG_TYPE_FC4P2 || \
71 (type) == BFA_MFG_TYPE_FC4P1 || \
72 (type) == BFA_MFG_TYPE_CNA10P2 || \
73 (type) == BFA_MFG_TYPE_CNA10P1 || \
74 (type) == BFA_MFG_TYPE_JAYHAWK || \
75 (type) == BFA_MFG_TYPE_WANCHESE))
77 #define bfa_mfg_increment_wwn_mac(m, i) \
79 u32 t = ((u32)(m)[0] << 16) | ((u32)(m)[1] << 8) | \
82 (m)[0] = (t >> 16) & 0xFF; \
83 (m)[1] = (t >> 8) & 0xFF; \
90 #define BFA_MFG_VPD_LEN 512
203 #define bfa_status_t enum bfa_status
209 #define bfa_eproto_status_t enum bfa_eproto_status
215 #define bfa_boolean_t enum bfa_boolean
217 #define BFA_STRING_32 32
218 #define BFA_VERSION_LEN 64
537 #define BFA_MFG_CHKSUM_SIZE 16
539 #define BFA_MFG_PARTNUM_SIZE 14
540 #define BFA_MFG_SUPPLIER_ID_SIZE 10
541 #define BFA_MFG_SUPPLIER_PARTNUM_SIZE 20
542 #define BFA_MFG_SUPPLIER_SERIALNUM_SIZE 20
543 #define BFA_MFG_SUPPLIER_REVISION_SIZE 4
547 #define BFA_MFG_IC_FC 0x01
548 #define BFA_MFG_IC_ETH 0x02
553 #define BFA_CM_HBA 0x01
554 #define BFA_CM_CNA 0x02
555 #define BFA_CM_NIC 0x04
556 #define BFA_CM_FC16G 0x08
557 #define BFA_CM_SRIOV 0x10
558 #define BFA_CM_MEZZ 0x20
619 #define bfa_asic_id_cb(__d) \
620 ((__d) == BFA_PCI_DEVICE_ID_FC_8G2P || \
621 (__d) == BFA_PCI_DEVICE_ID_FC_8G1P)
622 #define bfa_asic_id_ct(__d) \
623 ((__d) == BFA_PCI_DEVICE_ID_CT || \
624 (__d) == BFA_PCI_DEVICE_ID_CT_FC)
625 #define bfa_asic_id_ct2(__d) ((__d) == BFA_PCI_DEVICE_ID_CT2)
626 #define bfa_asic_id_ctc(__d) \
627 (bfa_asic_id_ct(__d) || bfa_asic_id_ct2(__d))
642 #define BFA_PCI_ACCESS_RANGES 1
658 #define bfa_port_speed_t enum bfa_port_speed
665 #define BOOT_CFG_REV1 1
666 #define BOOT_CFG_VLAN 1
727 #define BFA_ABLK_MAX_PORTS 2
728 #define BFA_ABLK_MAX_PFS 16
729 #define BFA_ABLK_MAX 2
781 #define SFP_DIAGMON_SIZE 10
784 #define BFA_SFP_SCN_REMOVED 0
785 #define BFA_SFP_SCN_INSERTED 1
786 #define BFA_SFP_SCN_POM 2
787 #define BFA_SFP_SCN_FAILED 3
788 #define BFA_SFP_SCN_UNSUPPORT 4
789 #define BFA_SFP_SCN_VALID 5
1079 #define BFA_FLASH_PART_ENTRY_SIZE 32
1080 #define BFA_FLASH_PART_MAX 32
1126 #define LB_PATTERN_DEFAULT 0xB5B5B5B5
1127 #define QTEST_CNT_DEFAULT 10
1128 #define QTEST_PAT_DEFAULT LB_PATTERN_DEFAULT