aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.h')
-rw-r--r--drivers/scsi/bfa/bfa_ioc.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h
index ff012f7f0757..3c5bdd1c0c7f 100644
--- a/drivers/scsi/bfa/bfa_ioc.h
+++ b/drivers/scsi/bfa/bfa_ioc.h
@@ -22,6 +22,11 @@
22#include "bfa_cs.h" 22#include "bfa_cs.h"
23#include "bfi.h" 23#include "bfi.h"
24 24
25#define BFA_DBG_FWTRC_ENTS (BFI_IOC_TRC_ENTS)
26#define BFA_DBG_FWTRC_LEN \
27 (BFA_DBG_FWTRC_ENTS * sizeof(struct bfa_trc_s) + \
28 (sizeof(struct bfa_trc_mod_s) - \
29 BFA_TRC_MAX * sizeof(struct bfa_trc_s)))
25/* 30/*
26 * BFA timer declarations 31 * BFA timer declarations
27 */ 32 */
@@ -47,7 +52,6 @@ struct bfa_timer_mod_s {
47#define BFA_TIMER_FREQ 200 /* specified in millisecs */ 52#define BFA_TIMER_FREQ 200 /* specified in millisecs */
48 53
49void bfa_timer_beat(struct bfa_timer_mod_s *mod); 54void bfa_timer_beat(struct bfa_timer_mod_s *mod);
50void bfa_timer_init(struct bfa_timer_mod_s *mod);
51void bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer, 55void bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer,
52 bfa_timer_cbfn_t timercb, void *arg, 56 bfa_timer_cbfn_t timercb, void *arg,
53 unsigned int timeout); 57 unsigned int timeout);
@@ -325,7 +329,6 @@ void bfa_ioc_auto_recover(bfa_boolean_t auto_recover);
325void bfa_ioc_detach(struct bfa_ioc_s *ioc); 329void bfa_ioc_detach(struct bfa_ioc_s *ioc);
326void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev, 330void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev,
327 enum bfi_mclass mc); 331 enum bfi_mclass mc);
328u32 bfa_ioc_meminfo(void);
329void bfa_ioc_mem_claim(struct bfa_ioc_s *ioc, u8 *dm_kva, u64 dm_pa); 332void bfa_ioc_mem_claim(struct bfa_ioc_s *ioc, u8 *dm_kva, u64 dm_pa);
330void bfa_ioc_enable(struct bfa_ioc_s *ioc); 333void bfa_ioc_enable(struct bfa_ioc_s *ioc);
331void bfa_ioc_disable(struct bfa_ioc_s *ioc); 334void bfa_ioc_disable(struct bfa_ioc_s *ioc);
@@ -353,7 +356,6 @@ enum bfa_ioc_state bfa_ioc_get_state(struct bfa_ioc_s *ioc);
353void bfa_ioc_get_attr(struct bfa_ioc_s *ioc, struct bfa_ioc_attr_s *ioc_attr); 356void bfa_ioc_get_attr(struct bfa_ioc_s *ioc, struct bfa_ioc_attr_s *ioc_attr);
354void bfa_ioc_get_adapter_attr(struct bfa_ioc_s *ioc, 357void bfa_ioc_get_adapter_attr(struct bfa_ioc_s *ioc,
355 struct bfa_adapter_attr_s *ad_attr); 358 struct bfa_adapter_attr_s *ad_attr);
356int bfa_ioc_debug_trcsz(bfa_boolean_t auto_recover);
357void bfa_ioc_debug_memclaim(struct bfa_ioc_s *ioc, void *dbg_fwsave); 359void bfa_ioc_debug_memclaim(struct bfa_ioc_s *ioc, void *dbg_fwsave);
358bfa_status_t bfa_ioc_debug_fwsave(struct bfa_ioc_s *ioc, void *trcdata, 360bfa_status_t bfa_ioc_debug_fwsave(struct bfa_ioc_s *ioc, void *trcdata,
359 int *trclen); 361 int *trclen);
@@ -361,15 +363,9 @@ bfa_status_t bfa_ioc_debug_fwtrc(struct bfa_ioc_s *ioc, void *trcdata,
361 int *trclen); 363 int *trclen);
362bfa_status_t bfa_ioc_debug_fwcore(struct bfa_ioc_s *ioc, void *buf, 364bfa_status_t bfa_ioc_debug_fwcore(struct bfa_ioc_s *ioc, void *buf,
363 u32 *offset, int *buflen); 365 u32 *offset, int *buflen);
364u32 bfa_ioc_smem_pgnum(struct bfa_ioc_s *ioc, u32 fmaddr);
365u32 bfa_ioc_smem_pgoff(struct bfa_ioc_s *ioc, u32 fmaddr);
366void bfa_ioc_set_fcmode(struct bfa_ioc_s *ioc); 366void bfa_ioc_set_fcmode(struct bfa_ioc_s *ioc);
367bfa_boolean_t bfa_ioc_get_fcmode(struct bfa_ioc_s *ioc); 367bfa_boolean_t bfa_ioc_get_fcmode(struct bfa_ioc_s *ioc);
368void bfa_ioc_hbfail_register(struct bfa_ioc_s *ioc,
369 struct bfa_ioc_hbfail_notify_s *notify);
370bfa_boolean_t bfa_ioc_sem_get(void __iomem *sem_reg); 368bfa_boolean_t bfa_ioc_sem_get(void __iomem *sem_reg);
371void bfa_ioc_sem_release(void __iomem *sem_reg);
372void bfa_ioc_hw_sem_release(struct bfa_ioc_s *ioc);
373void bfa_ioc_fwver_get(struct bfa_ioc_s *ioc, 369void bfa_ioc_fwver_get(struct bfa_ioc_s *ioc,
374 struct bfi_ioc_image_hdr_s *fwhdr); 370 struct bfi_ioc_image_hdr_s *fwhdr);
375bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc, 371bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc,
@@ -380,13 +376,8 @@ bfa_status_t bfa_ioc_fw_stats_clear(struct bfa_ioc_s *ioc);
380/* 376/*
381 * bfa mfg wwn API functions 377 * bfa mfg wwn API functions
382 */ 378 */
383wwn_t bfa_ioc_get_pwwn(struct bfa_ioc_s *ioc);
384wwn_t bfa_ioc_get_nwwn(struct bfa_ioc_s *ioc);
385mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc); 379mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc);
386wwn_t bfa_ioc_get_mfg_pwwn(struct bfa_ioc_s *ioc);
387wwn_t bfa_ioc_get_mfg_nwwn(struct bfa_ioc_s *ioc);
388mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc_s *ioc); 380mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc_s *ioc);
389u64 bfa_ioc_get_adid(struct bfa_ioc_s *ioc);
390 381
391/* 382/*
392 * F/W Image Size & Chunk 383 * F/W Image Size & Chunk