diff options
Diffstat (limited to 'drivers/scsi/bfa/include/defs/bfa_defs_mfg.h')
-rw-r--r-- | drivers/scsi/bfa/include/defs/bfa_defs_mfg.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_mfg.h b/drivers/scsi/bfa/include/defs/bfa_defs_mfg.h index bfb50eb2124d..d22fb7909643 100644 --- a/drivers/scsi/bfa/include/defs/bfa_defs_mfg.h +++ b/drivers/scsi/bfa/include/defs/bfa_defs_mfg.h | |||
@@ -45,26 +45,6 @@ | |||
45 | #define BFA_MFG_CHKSUM_SIZE 16 | 45 | #define BFA_MFG_CHKSUM_SIZE 16 |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Manufacturing block encrypted version | ||
49 | */ | ||
50 | #define BFA_MFG_ENC_VER 2 | ||
51 | |||
52 | /** | ||
53 | * Manufacturing block version 1 length | ||
54 | */ | ||
55 | #define BFA_MFG_VER1_LEN 128 | ||
56 | |||
57 | /** | ||
58 | * Manufacturing block header length | ||
59 | */ | ||
60 | #define BFA_MFG_HDR_LEN 4 | ||
61 | |||
62 | /** | ||
63 | * Checksum size | ||
64 | */ | ||
65 | #define BFA_MFG_CHKSUM_SIZE 16 | ||
66 | |||
67 | /** | ||
68 | * Manufacturing block format | 48 | * Manufacturing block format |
69 | */ | 49 | */ |
70 | #define BFA_MFG_SERIALNUM_SIZE 11 | 50 | #define BFA_MFG_SERIALNUM_SIZE 11 |
@@ -98,6 +78,24 @@ enum { | |||
98 | */ | 78 | */ |
99 | #define bfa_mfg_type2port_num(card_type) (((card_type) / 10) % 10) | 79 | #define bfa_mfg_type2port_num(card_type) (((card_type) / 10) % 10) |
100 | 80 | ||
81 | /** | ||
82 | * Check if Mezz card | ||
83 | */ | ||
84 | #define bfa_mfg_is_mezz(type) (( \ | ||
85 | (type) == BFA_MFG_TYPE_JAYHAWK || \ | ||
86 | (type) == BFA_MFG_TYPE_WANCHESE)) | ||
87 | |||
88 | /** | ||
89 | * Check if card type valid | ||
90 | */ | ||
91 | #define bfa_mfg_is_card_type_valid(type) (( \ | ||
92 | (type) == BFA_MFG_TYPE_FC8P2 || \ | ||
93 | (type) == BFA_MFG_TYPE_FC8P1 || \ | ||
94 | (type) == BFA_MFG_TYPE_FC4P2 || \ | ||
95 | (type) == BFA_MFG_TYPE_FC4P1 || \ | ||
96 | (type) == BFA_MFG_TYPE_CNA10P2 || \ | ||
97 | (type) == BFA_MFG_TYPE_CNA10P1 || \ | ||
98 | bfa_mfg_is_mezz(type))) | ||
101 | 99 | ||
102 | /** | 100 | /** |
103 | * All numerical fields are in big-endian format. | 101 | * All numerical fields are in big-endian format. |