Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
bfa_core.c File Reference
#include "bfad_drv.h"
#include "bfa_modules.h"
#include "bfi_reg.h"

Go to the source code of this file.

Macros

#define BFA_IOCFC_TOV   5000 /* msecs */
 
#define DEF_CFG_NUM_FABRICS   1
 
#define DEF_CFG_NUM_LPORTS   256
 
#define DEF_CFG_NUM_CQS   4
 
#define DEF_CFG_NUM_IOIM_REQS   (BFA_IOIM_MAX)
 
#define DEF_CFG_NUM_TSKIM_REQS   128
 
#define DEF_CFG_NUM_FCXP_REQS   64
 
#define DEF_CFG_NUM_UF_BUFS   64
 
#define DEF_CFG_NUM_RPORTS   1024
 
#define DEF_CFG_NUM_ITNIMS   (DEF_CFG_NUM_RPORTS)
 
#define DEF_CFG_NUM_TINS   256
 
#define DEF_CFG_NUM_SGPGS   2048
 
#define DEF_CFG_NUM_REQQ_ELEMS   256
 
#define DEF_CFG_NUM_RSPQ_ELEMS   64
 
#define DEF_CFG_NUM_SBOOT_TGTS   16
 
#define DEF_CFG_NUM_SBOOT_LUNS   16
 

Enumerations

enum  {
  BFA_IOCFC_ACT_NONE = 0, BFA_IOCFC_ACT_INIT = 1, BFA_IOCFC_ACT_STOP = 2, BFA_IOCFC_ACT_DISABLE = 3,
  BFA_IOCFC_ACT_ENABLE = 4
}
 

Functions

 BFA_TRC_FILE (HAL, CORE)
 
 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)
 
bfa_boolean_t bfa_isr_rspq (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)
 
void bfa_iocfc_reset_queues (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)
 
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)
 

Macro Definition Documentation

#define BFA_IOCFC_TOV   5000 /* msecs */

Definition at line 185 of file bfa_core.c.

#define DEF_CFG_NUM_CQS   4

Definition at line 197 of file bfa_core.c.

#define DEF_CFG_NUM_FABRICS   1

Definition at line 195 of file bfa_core.c.

#define DEF_CFG_NUM_FCXP_REQS   64

Definition at line 200 of file bfa_core.c.

#define DEF_CFG_NUM_IOIM_REQS   (BFA_IOIM_MAX)

Definition at line 198 of file bfa_core.c.

#define DEF_CFG_NUM_ITNIMS   (DEF_CFG_NUM_RPORTS)

Definition at line 203 of file bfa_core.c.

#define DEF_CFG_NUM_LPORTS   256

Definition at line 196 of file bfa_core.c.

#define DEF_CFG_NUM_REQQ_ELEMS   256

Definition at line 207 of file bfa_core.c.

#define DEF_CFG_NUM_RPORTS   1024

Definition at line 202 of file bfa_core.c.

#define DEF_CFG_NUM_RSPQ_ELEMS   64

Definition at line 208 of file bfa_core.c.

#define DEF_CFG_NUM_SBOOT_LUNS   16

Definition at line 210 of file bfa_core.c.

#define DEF_CFG_NUM_SBOOT_TGTS   16

Definition at line 209 of file bfa_core.c.

#define DEF_CFG_NUM_SGPGS   2048

Definition at line 206 of file bfa_core.c.

#define DEF_CFG_NUM_TINS   256

Definition at line 204 of file bfa_core.c.

#define DEF_CFG_NUM_TSKIM_REQS   128

Definition at line 199 of file bfa_core.c.

#define DEF_CFG_NUM_UF_BUFS   64

Definition at line 201 of file bfa_core.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
BFA_IOCFC_ACT_NONE 
BFA_IOCFC_ACT_INIT 
BFA_IOCFC_ACT_STOP 
BFA_IOCFC_ACT_DISABLE 
BFA_IOCFC_ACT_ENABLE 

Definition at line 187 of file bfa_core.c.

Function Documentation

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 
)

Definition at line 1821 of file bfa_core.c.

void bfa_cfg_get_default ( struct bfa_iocfc_cfg_s cfg)

Definition at line 1963 of file bfa_core.c.

void bfa_cfg_get_meminfo ( struct bfa_iocfc_cfg_s cfg,
struct bfa_meminfo_s meminfo,
struct bfa_s bfa 
)

Definition at line 1754 of file bfa_core.c.

void bfa_cfg_get_min ( struct bfa_iocfc_cfg_s cfg)

Definition at line 1987 of file bfa_core.c.

void bfa_comp_deq ( struct bfa_s bfa,
struct list_head comp_q 
)

Definition at line 1891 of file bfa_core.c.

void bfa_comp_free ( struct bfa_s bfa,
struct list_head comp_q 
)

Definition at line 1918 of file bfa_core.c.

void bfa_comp_process ( struct bfa_s bfa,
struct list_head comp_q 
)

Definition at line 1898 of file bfa_core.c.

void bfa_detach ( struct bfa_s bfa)

Definition at line 1881 of file bfa_core.c.

bfa_status_t bfa_faa_query ( struct bfa_s bfa,
struct bfa_faa_attr_s attr,
bfa_cb_iocfc_t  cbfn,
void cbarg 
)

Definition at line 1363 of file bfa_core.c.

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 
)
void bfa_get_pciids ( struct bfa_pciid_s **  pciids,
int npciids 
)

Definition at line 1936 of file bfa_core.c.

bfa_boolean_t bfa_intx ( struct bfa_s bfa)

Definition at line 805 of file bfa_core.c.

void bfa_iocfc_attach ( struct bfa_s bfa,
void bfad,
struct bfa_iocfc_cfg_s cfg,
struct bfa_pcidev_s pcidev 
)

Definition at line 1512 of file bfa_core.c.

void bfa_iocfc_disable ( struct bfa_s bfa)

Definition at line 1672 of file bfa_core.c.

void bfa_iocfc_enable ( struct bfa_s bfa)

Definition at line 1663 of file bfa_core.c.

void bfa_iocfc_get_attr ( struct bfa_s bfa,
struct bfa_iocfc_attr_s attr 
)

Definition at line 1604 of file bfa_core.c.

void bfa_iocfc_get_bootwwns ( struct bfa_s bfa,
u8 nwwns,
wwn_t wwns 
)

Definition at line 1692 of file bfa_core.c.

int bfa_iocfc_get_pbc_vports ( struct bfa_s bfa,
struct bfi_pbc_vport_s pbc_vport 
)

Definition at line 1712 of file bfa_core.c.

void bfa_iocfc_init ( struct bfa_s bfa)

Definition at line 1548 of file bfa_core.c.

bfa_boolean_t bfa_iocfc_is_operational ( struct bfa_s bfa)

Definition at line 1682 of file bfa_core.c.

void bfa_iocfc_isr ( void bfaarg,
struct bfi_mbmsg_s m 
)

Definition at line 1575 of file bfa_core.c.

bfa_status_t bfa_iocfc_israttr_set ( struct bfa_s bfa,
struct bfa_iocfc_intr_attr_s attr 
)

Definition at line 1622 of file bfa_core.c.

void bfa_iocfc_meminfo ( struct bfa_iocfc_cfg_s cfg,
struct bfa_meminfo_s meminfo,
struct bfa_s bfa 
)

Definition at line 1466 of file bfa_core.c.

void bfa_iocfc_reset_queues ( struct bfa_s bfa)

Definition at line 1312 of file bfa_core.c.

void bfa_iocfc_set_snsbase ( struct bfa_s bfa,
int  seg_no,
u64  snsbase_pa 
)

Definition at line 1652 of file bfa_core.c.

void bfa_iocfc_start ( struct bfa_s bfa)

Definition at line 1558 of file bfa_core.c.

void bfa_iocfc_stop ( struct bfa_s bfa)

Definition at line 1568 of file bfa_core.c.

void bfa_isr_disable ( struct bfa_s bfa)

Definition at line 879 of file bfa_core.c.

void bfa_isr_enable ( struct bfa_s bfa)

Definition at line 848 of file bfa_core.c.

bfa_boolean_t bfa_isr_rspq ( struct bfa_s bfa,
int  qid 
)

Definition at line 716 of file bfa_core.c.

void bfa_isr_unhandled ( struct bfa_s bfa,
struct bfi_msg_s m 
)

Definition at line 894 of file bfa_core.c.

void bfa_msix_all ( struct bfa_s bfa,
int  vec 
)

Definition at line 767 of file bfa_core.c.

void bfa_msix_lpu_err ( struct bfa_s bfa,
int  vec 
)

Definition at line 910 of file bfa_core.c.

void bfa_msix_reqq ( struct bfa_s bfa,
int  vec 
)

Definition at line 888 of file bfa_core.c.

void bfa_msix_rspq ( struct bfa_s bfa,
int  vec 
)

Definition at line 904 of file bfa_core.c.

BFA_TRC_FILE ( HAL  ,
CORE   
)