diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-21 05:38:13 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-21 05:38:13 -0500 |
commit | 851462444d421c223965b12b836bef63da61b57f (patch) | |
tree | 495baa14e638817941496c36e1443aed7dae0ea0 /drivers/scsi/bfa/bfi.h | |
parent | 5a6ea4af0907f995dc06df21a9c9ef764c7cd3bc (diff) | |
parent | 6924d99fcdf1a688538a3cdebd1f135c22eec191 (diff) |
Merge branch 'for-3.7' of git://git.infradead.org/users/dedekind/l2-mtd
Conflicts:
drivers/mtd/nand/nand_base.c
Diffstat (limited to 'drivers/scsi/bfa/bfi.h')
-rw-r--r-- | drivers/scsi/bfa/bfi.h | 72 |
1 files changed, 70 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfi.h b/drivers/scsi/bfa/bfi.h index b2ba0b2e91b2..57b146bca18c 100644 --- a/drivers/scsi/bfa/bfi.h +++ b/drivers/scsi/bfa/bfi.h | |||
@@ -210,7 +210,8 @@ enum bfi_mclass { | |||
210 | BFI_MC_PORT = 21, /* Physical port */ | 210 | BFI_MC_PORT = 21, /* Physical port */ |
211 | BFI_MC_SFP = 22, /* SFP module */ | 211 | BFI_MC_SFP = 22, /* SFP module */ |
212 | BFI_MC_PHY = 25, /* External PHY message class */ | 212 | BFI_MC_PHY = 25, /* External PHY message class */ |
213 | BFI_MC_MAX = 32 | 213 | BFI_MC_FRU = 34, |
214 | BFI_MC_MAX = 35 | ||
214 | }; | 215 | }; |
215 | 216 | ||
216 | #define BFI_IOC_MAX_CQS 4 | 217 | #define BFI_IOC_MAX_CQS 4 |
@@ -288,6 +289,9 @@ struct bfi_ioc_attr_s { | |||
288 | char optrom_version[BFA_VERSION_LEN]; | 289 | char optrom_version[BFA_VERSION_LEN]; |
289 | struct bfa_mfg_vpd_s vpd; | 290 | struct bfa_mfg_vpd_s vpd; |
290 | u32 card_type; /* card type */ | 291 | u32 card_type; /* card type */ |
292 | u8 mfg_day; /* manufacturing day */ | ||
293 | u8 mfg_month; /* manufacturing month */ | ||
294 | u16 mfg_year; /* manufacturing year */ | ||
291 | }; | 295 | }; |
292 | 296 | ||
293 | /* | 297 | /* |
@@ -687,7 +691,8 @@ struct bfi_ablk_h2i_pf_req_s { | |||
687 | u8 pcifn; | 691 | u8 pcifn; |
688 | u8 port; | 692 | u8 port; |
689 | u16 pers; | 693 | u16 pers; |
690 | u32 bw; | 694 | u16 bw_min; /* percent BW @ max speed */ |
695 | u16 bw_max; /* percent BW @ max speed */ | ||
691 | }; | 696 | }; |
692 | 697 | ||
693 | /* BFI_ABLK_H2I_OPTROM_ENABLE, BFI_ABLK_H2I_OPTROM_DISABLE */ | 698 | /* BFI_ABLK_H2I_OPTROM_ENABLE, BFI_ABLK_H2I_OPTROM_DISABLE */ |
@@ -957,6 +962,7 @@ enum bfi_diag_h2i { | |||
957 | BFI_DIAG_H2I_TEMPSENSOR = 4, | 962 | BFI_DIAG_H2I_TEMPSENSOR = 4, |
958 | BFI_DIAG_H2I_LEDTEST = 5, | 963 | BFI_DIAG_H2I_LEDTEST = 5, |
959 | BFI_DIAG_H2I_QTEST = 6, | 964 | BFI_DIAG_H2I_QTEST = 6, |
965 | BFI_DIAG_H2I_DPORT = 7, | ||
960 | }; | 966 | }; |
961 | 967 | ||
962 | enum bfi_diag_i2h { | 968 | enum bfi_diag_i2h { |
@@ -966,6 +972,7 @@ enum bfi_diag_i2h { | |||
966 | BFI_DIAG_I2H_TEMPSENSOR = BFA_I2HM(BFI_DIAG_H2I_TEMPSENSOR), | 972 | BFI_DIAG_I2H_TEMPSENSOR = BFA_I2HM(BFI_DIAG_H2I_TEMPSENSOR), |
967 | BFI_DIAG_I2H_LEDTEST = BFA_I2HM(BFI_DIAG_H2I_LEDTEST), | 973 | BFI_DIAG_I2H_LEDTEST = BFA_I2HM(BFI_DIAG_H2I_LEDTEST), |
968 | BFI_DIAG_I2H_QTEST = BFA_I2HM(BFI_DIAG_H2I_QTEST), | 974 | BFI_DIAG_I2H_QTEST = BFA_I2HM(BFI_DIAG_H2I_QTEST), |
975 | BFI_DIAG_I2H_DPORT = BFA_I2HM(BFI_DIAG_H2I_DPORT), | ||
969 | }; | 976 | }; |
970 | 977 | ||
971 | #define BFI_DIAG_MAX_SGES 2 | 978 | #define BFI_DIAG_MAX_SGES 2 |
@@ -1052,6 +1059,23 @@ struct bfi_diag_qtest_req_s { | |||
1052 | #define bfi_diag_qtest_rsp_t struct bfi_diag_qtest_req_s | 1059 | #define bfi_diag_qtest_rsp_t struct bfi_diag_qtest_req_s |
1053 | 1060 | ||
1054 | /* | 1061 | /* |
1062 | * D-port test | ||
1063 | */ | ||
1064 | enum bfi_dport_req { | ||
1065 | BFI_DPORT_DISABLE = 0, /* disable dport request */ | ||
1066 | BFI_DPORT_ENABLE = 1, /* enable dport request */ | ||
1067 | }; | ||
1068 | |||
1069 | struct bfi_diag_dport_req_s { | ||
1070 | struct bfi_mhdr_s mh; /* 4 bytes */ | ||
1071 | u8 req; /* request 1: enable 0: disable */ | ||
1072 | u8 status; /* reply status */ | ||
1073 | u8 rsvd[2]; | ||
1074 | u32 msgtag; /* msgtag for reply */ | ||
1075 | }; | ||
1076 | #define bfi_diag_dport_rsp_t struct bfi_diag_dport_req_s | ||
1077 | |||
1078 | /* | ||
1055 | * PHY module specific | 1079 | * PHY module specific |
1056 | */ | 1080 | */ |
1057 | enum bfi_phy_h2i_msgs_e { | 1081 | enum bfi_phy_h2i_msgs_e { |
@@ -1147,6 +1171,50 @@ struct bfi_phy_write_rsp_s { | |||
1147 | u32 length; | 1171 | u32 length; |
1148 | }; | 1172 | }; |
1149 | 1173 | ||
1174 | enum bfi_fru_h2i_msgs { | ||
1175 | BFI_FRUVPD_H2I_WRITE_REQ = 1, | ||
1176 | BFI_FRUVPD_H2I_READ_REQ = 2, | ||
1177 | BFI_TFRU_H2I_WRITE_REQ = 3, | ||
1178 | BFI_TFRU_H2I_READ_REQ = 4, | ||
1179 | }; | ||
1180 | |||
1181 | enum bfi_fru_i2h_msgs { | ||
1182 | BFI_FRUVPD_I2H_WRITE_RSP = BFA_I2HM(1), | ||
1183 | BFI_FRUVPD_I2H_READ_RSP = BFA_I2HM(2), | ||
1184 | BFI_TFRU_I2H_WRITE_RSP = BFA_I2HM(3), | ||
1185 | BFI_TFRU_I2H_READ_RSP = BFA_I2HM(4), | ||
1186 | }; | ||
1187 | |||
1188 | /* | ||
1189 | * FRU write request | ||
1190 | */ | ||
1191 | struct bfi_fru_write_req_s { | ||
1192 | struct bfi_mhdr_s mh; /* Common msg header */ | ||
1193 | u8 last; | ||
1194 | u8 rsv[3]; | ||
1195 | u32 offset; | ||
1196 | u32 length; | ||
1197 | struct bfi_alen_s alen; | ||
1198 | }; | ||
1199 | |||
1200 | /* | ||
1201 | * FRU read request | ||
1202 | */ | ||
1203 | struct bfi_fru_read_req_s { | ||
1204 | struct bfi_mhdr_s mh; /* Common msg header */ | ||
1205 | u32 offset; | ||
1206 | u32 length; | ||
1207 | struct bfi_alen_s alen; | ||
1208 | }; | ||
1209 | |||
1210 | /* | ||
1211 | * FRU response | ||
1212 | */ | ||
1213 | struct bfi_fru_rsp_s { | ||
1214 | struct bfi_mhdr_s mh; /* Common msg header */ | ||
1215 | u32 status; | ||
1216 | u32 length; | ||
1217 | }; | ||
1150 | #pragma pack() | 1218 | #pragma pack() |
1151 | 1219 | ||
1152 | #endif /* __BFI_H__ */ | 1220 | #endif /* __BFI_H__ */ |