#include "bfad_drv.h"
#include "bfa_modules.h"
#include "bfi_reg.h"
BFA_TRC_FILE(…);
static bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = …;
static bfa_ioc_mbox_mcfunc_t bfa_mbox_isrs[BFI_MC_MAX] = …;
void
__bfa_trc(struct bfa_trc_mod_s *trcm, int fileno, int line, u64 data)
{ … }
static void
bfa_com_port_attach(struct bfa_s *bfa)
{ … }
static void
bfa_com_ablk_attach(struct bfa_s *bfa)
{ … }
static void
bfa_com_cee_attach(struct bfa_s *bfa)
{ … }
static void
bfa_com_sfp_attach(struct bfa_s *bfa)
{ … }
static void
bfa_com_flash_attach(struct bfa_s *bfa, bfa_boolean_t mincfg)
{ … }
static void
bfa_com_diag_attach(struct bfa_s *bfa)
{ … }
static void
bfa_com_phy_attach(struct bfa_s *bfa, bfa_boolean_t mincfg)
{ … }
static void
bfa_com_fru_attach(struct bfa_s *bfa, bfa_boolean_t mincfg)
{ … }
#define BFA_IOCFC_TOV …
enum { … };
#define DEF_CFG_NUM_FABRICS …
#define DEF_CFG_NUM_LPORTS …
#define DEF_CFG_NUM_CQS …
#define DEF_CFG_NUM_IOIM_REQS …
#define DEF_CFG_NUM_TSKIM_REQS …
#define DEF_CFG_NUM_FCXP_REQS …
#define DEF_CFG_NUM_UF_BUFS …
#define DEF_CFG_NUM_RPORTS …
#define DEF_CFG_NUM_ITNIMS …
#define DEF_CFG_NUM_TINS …
#define DEF_CFG_NUM_SGPGS …
#define DEF_CFG_NUM_REQQ_ELEMS …
#define DEF_CFG_NUM_RSPQ_ELEMS …
#define DEF_CFG_NUM_SBOOT_TGTS …
#define DEF_CFG_NUM_SBOOT_LUNS …
bfa_fsm_state_decl(bfa_iocfc, stopped, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, initing, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, dconf_read, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, init_cfg_wait,
struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, init_cfg_done,
struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, operational,
struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, dconf_write,
struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, stopping, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, enabling, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, cfg_wait, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, disabling, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, disabled, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, failed, struct bfa_iocfc_s, enum iocfc_event);
bfa_fsm_state_decl(bfa_iocfc, init_failed,
struct bfa_iocfc_s, enum iocfc_event);
static void bfa_iocfc_start_submod(struct bfa_s *bfa);
static void bfa_iocfc_disable_submod(struct bfa_s *bfa);
static void bfa_iocfc_send_cfg(void *bfa_arg);
static void bfa_iocfc_enable_cbfn(void *bfa_arg, enum bfa_status status);
static void bfa_iocfc_disable_cbfn(void *bfa_arg);
static void bfa_iocfc_hbfail_cbfn(void *bfa_arg);
static void bfa_iocfc_reset_cbfn(void *bfa_arg);
static struct bfa_ioc_cbfn_s bfa_iocfc_cbfn;
static void bfa_iocfc_init_cb(void *bfa_arg, bfa_boolean_t complete);
static void bfa_iocfc_stop_cb(void *bfa_arg, bfa_boolean_t compl);
static void bfa_iocfc_enable_cb(void *bfa_arg, bfa_boolean_t compl);
static void bfa_iocfc_disable_cb(void *bfa_arg, bfa_boolean_t compl);
static void
bfa_iocfc_sm_stopped_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_stopped(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_initing_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_initing(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_dconf_read_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_dconf_read(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_init_cfg_wait_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_init_cfg_wait(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_init_cfg_done_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_init_cfg_done(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_operational_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_operational(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_dconf_write_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_dconf_write(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_stopping_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_stopping(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_enabling_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_enabling(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_cfg_wait_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_cfg_wait(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_disabling_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_disabling(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_disabled_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_disabled(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_failed_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_failed(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_iocfc_sm_init_failed_entry(struct bfa_iocfc_s *iocfc)
{ … }
static void
bfa_iocfc_sm_init_failed(struct bfa_iocfc_s *iocfc, enum iocfc_event event)
{ … }
static void
bfa_reqq_resume(struct bfa_s *bfa, int qid)
{ … }
static bfa_boolean_t
bfa_isr_rspq(struct bfa_s *bfa, int qid)
{ … }
static inline void
bfa_isr_reqq(struct bfa_s *bfa, int qid)
{ … }
void
bfa_msix_all(struct bfa_s *bfa, int vec)
{ … }
bfa_boolean_t
bfa_intx(struct bfa_s *bfa)
{ … }
void
bfa_isr_enable(struct bfa_s *bfa)
{ … }
void
bfa_isr_disable(struct bfa_s *bfa)
{ … }
void
bfa_msix_reqq(struct bfa_s *bfa, int vec)
{ … }
void
bfa_isr_unhandled(struct bfa_s *bfa, struct bfi_msg_s *m)
{ … }
void
bfa_msix_rspq(struct bfa_s *bfa, int vec)
{ … }
void
bfa_msix_lpu_err(struct bfa_s *bfa, int vec)
{ … }
static void
bfa_iocfc_send_cfg(void *bfa_arg)
{ … }
static void
bfa_iocfc_init_mem(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
struct bfa_pcidev_s *pcidev)
{ … }
static void
bfa_iocfc_mem_claim(struct bfa_s *bfa, struct bfa_iocfc_cfg_s *cfg)
{ … }
static void
bfa_iocfc_start_submod(struct bfa_s *bfa)
{ … }
static void
bfa_iocfc_disable_submod(struct bfa_s *bfa)
{ … }
static void
bfa_iocfc_init_cb(void *bfa_arg, bfa_boolean_t complete)
{ … }
static void
bfa_iocfc_stop_cb(void *bfa_arg, bfa_boolean_t compl)
{ … }
static void
bfa_iocfc_enable_cb(void *bfa_arg, bfa_boolean_t compl)
{ … }
static void
bfa_iocfc_disable_cb(void *bfa_arg, bfa_boolean_t compl)
{ … }
static void
bfa_iocfc_qreg(struct bfa_s *bfa, struct bfi_iocfc_qreg_s *qreg)
{ … }
static void
bfa_iocfc_res_recfg(struct bfa_s *bfa, struct bfa_iocfc_fwcfg_s *fwcfg)
{ … }
static void
bfa_iocfc_cfgrsp(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_reset_queues(struct bfa_s *bfa)
{ … }
static void
bfa_iocfc_process_faa_addr(struct bfa_s *bfa, struct bfi_faa_addr_msg_s *msg)
{ … }
static bfa_status_t
bfa_faa_validate_request(struct bfa_s *bfa)
{ … }
bfa_status_t
bfa_faa_query(struct bfa_s *bfa, struct bfa_faa_attr_s *attr,
bfa_cb_iocfc_t cbfn, void *cbarg)
{ … }
static void
bfa_faa_query_reply(struct bfa_iocfc_s *iocfc,
bfi_faa_query_rsp_t *rsp)
{ … }
static void
bfa_iocfc_enable_cbfn(void *bfa_arg, enum bfa_status status)
{ … }
static void
bfa_iocfc_disable_cbfn(void *bfa_arg)
{ … }
static void
bfa_iocfc_hbfail_cbfn(void *bfa_arg)
{ … }
static void
bfa_iocfc_reset_cbfn(void *bfa_arg)
{ … }
void
bfa_iocfc_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *meminfo,
struct bfa_s *bfa)
{ … }
void
bfa_iocfc_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
struct bfa_pcidev_s *pcidev)
{ … }
void
bfa_iocfc_init(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_start(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_stop(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_isr(void *bfaarg, struct bfi_mbmsg_s *m)
{ … }
void
bfa_iocfc_get_attr(struct bfa_s *bfa, struct bfa_iocfc_attr_s *attr)
{ … }
bfa_status_t
bfa_iocfc_israttr_set(struct bfa_s *bfa, struct bfa_iocfc_intr_attr_s *attr)
{ … }
void
bfa_iocfc_set_snsbase(struct bfa_s *bfa, int seg_no, u64 snsbase_pa)
{ … }
void
bfa_iocfc_enable(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_disable(struct bfa_s *bfa)
{ … }
bfa_boolean_t
bfa_iocfc_is_operational(struct bfa_s *bfa)
{ … }
void
bfa_iocfc_get_bootwwns(struct bfa_s *bfa, u8 *nwwns, wwn_t *wwns)
{ … }
int
bfa_iocfc_get_pbc_vports(struct bfa_s *bfa, struct bfi_pbc_vport_s *pbc_vport)
{ … }
void
bfa_cfg_get_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *meminfo,
struct bfa_s *bfa)
{ … }
void
bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
struct bfa_meminfo_s *meminfo, struct bfa_pcidev_s *pcidev)
{ … }
void
bfa_detach(struct bfa_s *bfa)
{ … }
void
bfa_comp_deq(struct bfa_s *bfa, struct list_head *comp_q)
{ … }
void
bfa_comp_process(struct bfa_s *bfa, struct list_head *comp_q)
{ … }
void
bfa_comp_free(struct bfa_s *bfa, struct list_head *comp_q)
{ … }
void
bfa_get_pciids(struct bfa_pciid_s **pciids, int *npciids)
{ … }
void
bfa_cfg_get_default(struct bfa_iocfc_cfg_s *cfg)
{ … }
void
bfa_cfg_get_min(struct bfa_iocfc_cfg_s *cfg)
{ … }