aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/include/defs
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/include/defs')
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_adapter.h3
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_boot.h10
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_mfg.h38
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_pport.h3
4 files changed, 33 insertions, 21 deletions
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_adapter.h b/drivers/scsi/bfa/include/defs/bfa_defs_adapter.h
index 8c208fc8e329..aea0360d67d5 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_adapter.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_adapter.h
@@ -39,7 +39,7 @@ enum {
39struct bfa_adapter_attr_s { 39struct bfa_adapter_attr_s {
40 char manufacturer[BFA_ADAPTER_MFG_NAME_LEN]; 40 char manufacturer[BFA_ADAPTER_MFG_NAME_LEN];
41 char serial_num[BFA_ADAPTER_SERIAL_NUM_LEN]; 41 char serial_num[BFA_ADAPTER_SERIAL_NUM_LEN];
42 u32 rsvd1; 42 u32 card_type;
43 char model[BFA_ADAPTER_MODEL_NAME_LEN]; 43 char model[BFA_ADAPTER_MODEL_NAME_LEN];
44 char model_descr[BFA_ADAPTER_MODEL_DESCR_LEN]; 44 char model_descr[BFA_ADAPTER_MODEL_DESCR_LEN];
45 wwn_t pwwn; 45 wwn_t pwwn;
@@ -60,6 +60,7 @@ struct bfa_adapter_attr_s {
60 u8 pcie_lanes_orig; 60 u8 pcie_lanes_orig;
61 u8 pcie_lanes; 61 u8 pcie_lanes;
62 u8 cna_capable; 62 u8 cna_capable;
63 u8 is_mezz;
63}; 64};
64 65
65/** 66/**
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_boot.h b/drivers/scsi/bfa/include/defs/bfa_defs_boot.h
index 6f4aa5283545..0fca10b6ad10 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_boot.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_boot.h
@@ -24,6 +24,8 @@
24 24
25enum { 25enum {
26 BFA_BOOT_BOOTLUN_MAX = 4, /* maximum boot lun per IOC */ 26 BFA_BOOT_BOOTLUN_MAX = 4, /* maximum boot lun per IOC */
27 BFA_PREBOOT_BOOTLUN_MAX = 8, /* maximum preboot lun per IOC */
28
27}; 29};
28 30
29#define BOOT_CFG_REV1 1 31#define BOOT_CFG_REV1 1
@@ -67,5 +69,13 @@ struct bfa_boot_cfg_s {
67 struct bfa_boot_bootlun_s blun_disc[BFA_BOOT_BOOTLUN_MAX]; 69 struct bfa_boot_bootlun_s blun_disc[BFA_BOOT_BOOTLUN_MAX];
68}; 70};
69 71
72struct bfa_boot_pbc_s {
73 u8 enable; /* enable/disable SAN boot */
74 u8 speed; /* boot speed settings */
75 u8 topology; /* boot topology setting */
76 u8 rsvd1;
77 u32 nbluns; /* number of boot luns */
78 struct bfa_boot_bootlun_s pblun[BFA_PREBOOT_BOOTLUN_MAX];
79};
70 80
71#endif /* __BFA_DEFS_BOOT_H__ */ 81#endif /* __BFA_DEFS_BOOT_H__ */
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.
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_pport.h b/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
index 26e5cc78095d..de6181cf9677 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
@@ -38,6 +38,7 @@ enum bfa_pport_states {
38 BFA_PPORT_ST_IOCDOWN = 10, 38 BFA_PPORT_ST_IOCDOWN = 10,
39 BFA_PPORT_ST_IOCDIS = 11, 39 BFA_PPORT_ST_IOCDIS = 11,
40 BFA_PPORT_ST_FWMISMATCH = 12, 40 BFA_PPORT_ST_FWMISMATCH = 12,
41 BFA_PPORT_ST_PREBOOT_DISABLED = 13,
41 BFA_PPORT_ST_MAX_STATE, 42 BFA_PPORT_ST_MAX_STATE,
42}; 43};
43 44
@@ -203,6 +204,8 @@ struct bfa_pport_attr_s {
203 */ 204 */
204 wwn_t nwwn; /* node wwn */ 205 wwn_t nwwn; /* node wwn */
205 wwn_t pwwn; /* port wwn */ 206 wwn_t pwwn; /* port wwn */
207 wwn_t factorynwwn; /* factory node wwn */
208 wwn_t factorypwwn; /* factory port wwn */
206 enum fc_cos cos_supported; /* supported class of services */ 209 enum fc_cos cos_supported; /* supported class of services */
207 u32 rsvd; 210 u32 rsvd;
208 struct fc_symname_s port_symname; /* port symbolic name */ 211 struct fc_symname_s port_symname; /* port symbolic name */