diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h index d0804406ea1a..cae05b251c99 100644 --- a/drivers/scsi/bfa/bfa_ioc.h +++ b/drivers/scsi/bfa/bfa_ioc.h | |||
@@ -186,9 +186,6 @@ struct bfa_ioc_hwif_s { | |||
186 | bfa_status_t (*ioc_pll_init) (struct bfa_ioc_s *ioc); | 186 | bfa_status_t (*ioc_pll_init) (struct bfa_ioc_s *ioc); |
187 | bfa_boolean_t (*ioc_firmware_lock) (struct bfa_ioc_s *ioc); | 187 | bfa_boolean_t (*ioc_firmware_lock) (struct bfa_ioc_s *ioc); |
188 | void (*ioc_firmware_unlock) (struct bfa_ioc_s *ioc); | 188 | void (*ioc_firmware_unlock) (struct bfa_ioc_s *ioc); |
189 | u32 * (*ioc_fwimg_get_chunk) (struct bfa_ioc_s *ioc, | ||
190 | u32 off); | ||
191 | u32 (*ioc_fwimg_get_size) (struct bfa_ioc_s *ioc); | ||
192 | void (*ioc_reg_init) (struct bfa_ioc_s *ioc); | 189 | void (*ioc_reg_init) (struct bfa_ioc_s *ioc); |
193 | void (*ioc_map_port) (struct bfa_ioc_s *ioc); | 190 | void (*ioc_map_port) (struct bfa_ioc_s *ioc); |
194 | void (*ioc_isr_mode_set) (struct bfa_ioc_s *ioc, | 191 | void (*ioc_isr_mode_set) (struct bfa_ioc_s *ioc, |
@@ -214,6 +211,10 @@ struct bfa_ioc_hwif_s { | |||
214 | 211 | ||
215 | #define bfa_ioc_stats(_ioc, _stats) ((_ioc)->stats._stats++) | 212 | #define bfa_ioc_stats(_ioc, _stats) ((_ioc)->stats._stats++) |
216 | #define BFA_IOC_FWIMG_MINSZ (16 * 1024) | 213 | #define BFA_IOC_FWIMG_MINSZ (16 * 1024) |
214 | #define BFA_IOC_FWIMG_TYPE(__ioc) \ | ||
215 | (((__ioc)->ctdev) ? \ | ||
216 | (((__ioc)->fcmode) ? BFI_IMAGE_CT_FC : BFI_IMAGE_CT_CNA) : \ | ||
217 | BFI_IMAGE_CB_FC) | ||
217 | 218 | ||
218 | #define BFA_IOC_FLASH_CHUNK_NO(off) (off / BFI_FLASH_CHUNK_SZ_WORDS) | 219 | #define BFA_IOC_FLASH_CHUNK_NO(off) (off / BFI_FLASH_CHUNK_SZ_WORDS) |
219 | #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) | 220 | #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) |
@@ -296,14 +297,17 @@ void bfa_ioc_fwver_get(struct bfa_ioc_s *ioc, | |||
296 | struct bfi_ioc_image_hdr_s *fwhdr); | 297 | struct bfi_ioc_image_hdr_s *fwhdr); |
297 | bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc, | 298 | bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc, |
298 | struct bfi_ioc_image_hdr_s *fwhdr); | 299 | struct bfi_ioc_image_hdr_s *fwhdr); |
300 | void bfa_ioc_aen_post(struct bfa_ioc_s *ioc, enum bfa_ioc_aen_event event); | ||
299 | 301 | ||
300 | /* | 302 | /* |
301 | * bfa mfg wwn API functions | 303 | * bfa mfg wwn API functions |
302 | */ | 304 | */ |
303 | wwn_t bfa_ioc_get_pwwn(struct bfa_ioc_s *ioc); | 305 | wwn_t bfa_ioc_get_pwwn(struct bfa_ioc_s *ioc); |
304 | wwn_t bfa_ioc_get_nwwn(struct bfa_ioc_s *ioc); | 306 | wwn_t bfa_ioc_get_nwwn(struct bfa_ioc_s *ioc); |
305 | wwn_t bfa_ioc_get_wwn_naa5(struct bfa_ioc_s *ioc, u16 inst); | ||
306 | mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc); | 307 | mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc); |
308 | wwn_t bfa_ioc_get_mfg_pwwn(struct bfa_ioc_s *ioc); | ||
309 | wwn_t bfa_ioc_get_mfg_nwwn(struct bfa_ioc_s *ioc); | ||
310 | mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc_s *ioc); | ||
307 | u64 bfa_ioc_get_adid(struct bfa_ioc_s *ioc); | 311 | u64 bfa_ioc_get_adid(struct bfa_ioc_s *ioc); |
308 | 312 | ||
309 | #endif /* __BFA_IOC_H__ */ | 313 | #endif /* __BFA_IOC_H__ */ |