bfa: bfa header file changes
Subsystems (2)
PATCH 4/8 bfa: bfa header file changes
Updates to bfa header files.
Signed-off-by Jing Huang <[email protected]>
--- drivers/scsi/bfa/bfa_cb_ioim_macros.h | 2 +- drivers/scsi/bfa/bfa_fcpim_priv.h | 46 +++++++++--------- drivers/scsi/bfa/bfa_fcxp_priv.h | 34 +++++++------- drivers/scsi/bfa/bfa_ioc.h | 80 +++++++++++++++++++++++++++----- drivers/scsi/bfa/bfa_iocfc.h | 26 ++++++----- drivers/scsi/bfa/bfa_modules_priv.h | 18 ++++---- drivers/scsi/bfa/bfa_port_priv.h | 57 ++++++++++++----------- drivers/scsi/bfa/bfa_priv.h | 4 +- drivers/scsi/bfa/bfa_sgpg_priv.h | 10 ++-- drivers/scsi/bfa/bfa_trcmod_priv.h | 62 ++++++++++++------------- 10 files changed, 197 insertions(+), 142 deletions(-)
drivers/scsi/bfa/bfa_cb_ioim_macros.h +1 -1
@@ -129,7 +129,7 @@ bfa_cb_ioim_get_sgaddr(struct bfad_ioim_s *dio, int sgeid) sge = (struct scatterlist *)scsi_sglist (cmnd) + sgeid; addr = (u64 )sg_dma_address (sge); -return *((union bfi_addr_u *) &addr); +return *(union bfi_addr_u *) &addr; } static inline u32
drivers/scsi/bfa/bfa_fcpim_priv.h +23 -23
64 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcxp_priv.h +17 -17
@@ -29,15 +29,15 @@struct bfa_fcxp_mod_s {struct bfa_s *bfa;/* backpointer to BFA */ -struct bfa_fcxp_s *fcxp_list;/* array of FCXPs */ +struct bfa_fcxp_s *fcxp_list;/* array of FCXPs */ u16 num_fcxps;/* max num FCXP requests */ -struct list_head fcxp_free_q;/* free FCXPs */ -struct list_head fcxp_active_q;/* active FCXPs */ -void *req_pld_list_kva;/* list of FCXP req pld */ -u64 req_pld_list_pa;/* list of FCXP req pld */ -void *rsp_pld_list_kva;/* list of FCXP resp pld */ -u64 rsp_pld_list_pa;/* list of FCXP resp pld */ -struct list_head wait_q;/* wait queue for free fcxp */ +struct list_head fcxp_free_q;/* free FCXPs */ +struct list_head fcxp_active_q;/* active FCXPs */ +void *req_pld_list_kva;/* list of FCXP req pld */ +u64 req_pld_list_pa;/* list of FCXP req pld */ +void *rsp_pld_list_kva;/* list of FCXP resp pld */ +u64 rsp_pld_list_pa;/* list of FCXP resp pld */ +struct list_head wait_q;/* wait queue for free fcxp */ u32 req_pld_sz;u32 rsp_pld_sz; };
@@ -60,18 +60,18 @@ struct bfa_fcxp_req_info_s {*FCXP interactions before the rport *nexus is established */ -struct fchs_s fchs;/* request FC header structure */ -u8 cts;/* continous sequence */ -u8 class;/* FC class for the request/response */ -u16 max_frmsz;/* max send frame size */ -u16 vf_id;/* vsan tag if applicable */ -u8 lp_tag;/* lport tag */ -u32 req_tot_len;/* request payload total length */ +struct fchs_s fchs;/* request FC header structure */ +u8 cts;/* continous sequence */ +u8 class;/* FC class for the request/response */ +u16 max_frmsz;/* max send frame size */ +u16 vf_id;/* vsan tag if applicable */ +u8 lp_tag;/* lport tag */ +u32 req_tot_len;/* request payload total length */ };struct bfa_fcxp_rsp_info_s { -struct fchs_s rsp_fchs;/* Response frame's FC header will -* be *sent back in this field */ +struct fchs_s rsp_fchs;/* Response frame's FC header will +*be *sent back in this field */ u8 rsp_timeout;/* timeout in seconds, 0-no response */ u8 rsvd2[3 ];
drivers/scsi/bfa/bfa_ioc.h +67 -13
174 lines not on this page · raw message
drivers/scsi/bfa/bfa_iocfc.h +14 -12
@@ -54,6 +54,7 @@ struct bfa_msix_s {*/ struct bfa_hwif_s {void (*hw_reginit)(struct bfa_s *bfa); +void (*hw_reqq_ack)(struct bfa_s *bfa,int reqq);void (*hw_rspq_ack)(struct bfa_s *bfa,int rspq);void (*hw_msix_init)(struct bfa_s *bfa,int nvecs);void (*hw_msix_install)(struct bfa_s *bfa);
@@ -69,8 +70,8 @@ struct bfa_iocfc_s {struct bfa_iocfc_cfg_s cfg;int action; -u32 req_cq_pi[BFI_IOC_MAX_CQS ]; -u32 rsp_cq_ci[BFI_IOC_MAX_CQS ]; +u32 req_cq_pi[BFI_IOC_MAX_CQS ]; +u32 rsp_cq_ci[BFI_IOC_MAX_CQS ];struct bfa_cb_qe_s init_hcb_qe;struct bfa_cb_qe_s stop_hcb_qe;
@@ -92,7 +93,7 @@ struct bfa_iocfc_s {bfa_status_t stats_status;/* stats/statsclr status */ bfa_boolean_t stats_busy;/* outstanding stats */ bfa_cb_ioc_t stats_cbfn;/* driver callback function */ -void *stats_cbarg;/* user callback arg */ +void *stats_cbarg;/* user callback arg */ struct bfa_dma_s req_cq_ba[BFI_IOC_MAX_CQS ];struct bfa_dma_s req_cq_shadow_ci[BFI_IOC_MAX_CQS ];
@@ -102,7 +103,7 @@ struct bfa_iocfc_s {struct bfa_hwif_s hwif;bfa_cb_iocfc_t updateq_cbfn;/* bios callback function */ -void *updateq_cbarg;/* bios callback arg */ +void *updateq_cbarg;/* bios callback arg */ };#define bfa_lpuid (__bfa) bfa_ioc_portid(&(__bfa)->ioc)
@@ -115,7 +116,8 @@ struct bfa_iocfc_s {#define bfa_isr_mode_set (__bfa, __msix) \ ((__bfa)->iocfc.hwif.hw_isr_mode_set(__bfa, __msix))#define bfa_msix_getvecs (__bfa, __vecmap, __nvecs, __maxvec) \ - (__bfa)->iocfc.hwif.hw_msix_getvecs(__bfa, __vecmap, __nvecs, __maxvec) + ((__bfa)->iocfc.hwif.hw_msix_getvecs(__bfa, __vecmap, \ + __nvecs, __maxvec))/* * FC specific IOC functions.
@@ -134,8 +136,7 @@ void bfa_iocfc_set_snsbase(struct bfa_s *bfa, u64 snsbase_pa);bfa_boolean_t bfa_iocfc_is_operational (struct bfa_s *bfa);void bfa_iocfc_reset_queues (struct bfa_s *bfa);void bfa_iocfc_updateq (struct bfa_s *bfa,u32 reqq_ba,u32 rspq_ba, -u32 reqq_sci,u32 rspq_spi, -bfa_cb_iocfc_t cbfn,void *cbarg); +u32 reqq_sci,u32 rspq_spi,bfa_cb_iocfc_t cbfn,void *cbarg);void bfa_msix_all (struct bfa_s *bfa,int vec);void bfa_msix_reqq (struct bfa_s *bfa,int vec);
@@ -143,21 +144,23 @@ void bfa_msix_rspq(struct bfa_s *bfa, int vec);void bfa_msix_lpu_err (struct bfa_s *bfa,int vec);void bfa_hwcb_reginit (struct bfa_s *bfa); +void bfa_hwcb_reqq_ack (struct bfa_s *bfa,int rspq);void bfa_hwcb_rspq_ack (struct bfa_s *bfa,int rspq);void bfa_hwcb_msix_init (struct bfa_s *bfa,int nvecs);void bfa_hwcb_msix_install (struct bfa_s *bfa);void bfa_hwcb_msix_uninstall (struct bfa_s *bfa);void bfa_hwcb_isr_mode_set (struct bfa_s *bfa,bfa_boolean_t msix); -void bfa_hwcb_msix_getvecs (struct bfa_s *bfa,u32 *vecmap, -u32 *nvecs,u32 *maxvec); +void bfa_hwcb_msix_getvecs (struct bfa_s *bfa,u32 *vecmap,u32 *nvecs, +u32 *maxvec);void bfa_hwct_reginit (struct bfa_s *bfa); +void bfa_hwct_reqq_ack (struct bfa_s *bfa,int rspq);void bfa_hwct_rspq_ack (struct bfa_s *bfa,int rspq);void bfa_hwct_msix_init (struct bfa_s *bfa,int nvecs);void bfa_hwct_msix_install (struct bfa_s *bfa);void bfa_hwct_msix_uninstall (struct bfa_s *bfa);void bfa_hwct_isr_mode_set (struct bfa_s *bfa,bfa_boolean_t msix); -void bfa_hwct_msix_getvecs (struct bfa_s *bfa,u32 *vecmap, -u32 *nvecs,u32 *maxvec); +void bfa_hwct_msix_getvecs (struct bfa_s *bfa,u32 *vecmap,u32 *nvecs, +u32 *maxvec);void bfa_com_meminfo (bfa_boolean_t mincfg,u32 *dm_len); void bfa_com_attach(struct bfa_s *bfa, struct bfa_meminfo_s *mi,
@@ -165,4 +168,3 @@ void bfa_com_attach(struct bfa_s *bfa, struct bfa_meminfo_s *mi,void bfa_iocfc_get_bootwwns (struct bfa_s *bfa,u8 *nwwns,wwn_t **wwns);#endif /* __BFA_IOCFC_H__ */ -
drivers/scsi/bfa/bfa_modules_priv.h +9 -9
@@ -29,15 +29,15 @@struct bfa_modules_s { -struct bfa_pport_s pport;/* physical port module */ -struct bfa_fcxp_mod_s fcxp_mod;/* fcxp module */ -struct bfa_lps_mod_s lps_mod;/* fcxp module */ -struct bfa_uf_mod_s uf_mod;/* unsolicited frame module */ -struct bfa_rport_mod_s rport_mod;/* remote port module */ -struct bfa_fcpim_mod_s fcpim_mod;/* FCP initiator module */ -struct bfa_sgpg_mod_s sgpg_mod;/* SG page module */ -struct bfa_cee_s cee;/* CEE Module */ -struct bfa_port_s port;/* Physical port module */ +struct bfa_fcport_s fcport;/* fc port module */ +struct bfa_fcxp_mod_s fcxp_mod;/* fcxp module */ +struct bfa_lps_mod_s lps_mod;/* fcxp module */ +struct bfa_uf_mod_s uf_mod;/* unsolicited frame module */ +struct bfa_rport_mod_s rport_mod;/* remote port module */ +struct bfa_fcpim_mod_s fcpim_mod;/* FCP initiator module */ +struct bfa_sgpg_mod_s sgpg_mod;/* SG page module */ +struct bfa_cee_s cee;/* CEE Module */ +struct bfa_port_s port;/* Physical port module */ };#endif /* __BFA_MODULES_PRIV_H__ */
drivers/scsi/bfa/bfa_port_priv.h +29 -28
86 lines not on this page · raw message
drivers/scsi/bfa/bfa_priv.h +2 -2
@@ -88,7 +88,7 @@ struct bfa_s {struct bfa_iocfc_s iocfc;/* IOCFC module */ struct bfa_timer_mod_s timer_mod;/* timer module */ struct bfa_modules_s modules;/* BFA modules */ -struct list_head comp_q;/* pending completions */ +struct list_head comp_q;/* pending completions */ bfa_boolean_t rme_process;/* RME processing enabled */ struct list_head reqq_waitq[BFI_IOC_MAX_CQS ];bfa_boolean_t fcs;/* FCS is attached to BFA */
@@ -101,7 +101,7 @@ extern bfa_boolean_t bfa_auto_recover;extern struct bfa_module_s hal_mod_flash;extern struct bfa_module_s hal_mod_fcdiag;extern struct bfa_module_s hal_mod_sgpg; -extern struct bfa_module_s hal_mod_pport; +extern struct bfa_module_s hal_mod_fcport;extern struct bfa_module_s hal_mod_fcxp;extern struct bfa_module_s hal_mod_lps;extern struct bfa_module_s hal_mod_uf;
drivers/scsi/bfa/bfa_sgpg_priv.h +5 -5
@@ -33,7 +33,7 @@ & ~(sizeof(struct bfi_sgpg_s) - 1))struct bfa_sgpg_wqe_s { -struct list_head qe;/* queue sg page element */ +struct list_head qe;/* queue sg page element */ int nsgpg;/* pages to be allocated */ int nsgpg_total;/* total pages required */ void (*cbfn) (void *cbarg);
@@ -44,7 +44,7 @@ struct bfa_sgpg_wqe_s {struct bfa_sgpg_s {struct list_head qe;/* queue sg page element */ -struct bfi_sgpg_s *sgpg;/* va of SG page */ +struct bfi_sgpg_s *sgpg;/* va of SG page */ union bfi_addr_u sgpg_pa;/* pa of SG page */ };
@@ -58,11 +58,11 @@ struct bfa_sgpg_mod_s {struct bfa_s *bfa;int num_sgpgs;/* number of SG pages */ int free_sgpgs;/* number of free SG pages */ -struct bfa_sgpg_s *hsgpg_arr;/* BFA SG page array */ +struct bfa_sgpg_s *hsgpg_arr;/* BFA SG page array */ struct bfi_sgpg_s *sgpg_arr;/* actual SG page array */ u64 sgpg_arr_pa;/* SG page array DMA addr */ -struct list_head sgpg_q;/* queue of free SG pages */ -struct list_head sgpg_wait_q;/* wait queue for SG pages */ +struct list_head sgpg_q;/* queue of free SG pages */ +struct list_head sgpg_wait_q;/* wait queue for SG pages */ };#define BFA_SGPG_MOD (__bfa) (&(__bfa)->modules.sgpg_mod)
drivers/scsi/bfa/bfa_trcmod_priv.h +30 -32
68 lines not on this page · raw message
Signature · 1 line
1.6.5.2