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

Go to the source code of this file.

Macros

#define bfa_ioc_firmware_lock(__ioc)   ((__ioc)->ioc_hwif->ioc_firmware_lock(__ioc))
 
#define bfa_ioc_firmware_unlock(__ioc)   ((__ioc)->ioc_hwif->ioc_firmware_unlock(__ioc))
 
#define bfa_ioc_reg_init(__ioc)   ((__ioc)->ioc_hwif->ioc_reg_init(__ioc))
 
#define bfa_ioc_map_port(__ioc)   ((__ioc)->ioc_hwif->ioc_map_port(__ioc))
 
#define bfa_ioc_notify_fail(__ioc)   ((__ioc)->ioc_hwif->ioc_notify_fail(__ioc))
 
#define bfa_ioc_sync_start(__ioc)   ((__ioc)->ioc_hwif->ioc_sync_start(__ioc))
 
#define bfa_ioc_sync_join(__ioc)   ((__ioc)->ioc_hwif->ioc_sync_join(__ioc))
 
#define bfa_ioc_sync_leave(__ioc)   ((__ioc)->ioc_hwif->ioc_sync_leave(__ioc))
 
#define bfa_ioc_sync_ack(__ioc)   ((__ioc)->ioc_hwif->ioc_sync_ack(__ioc))
 
#define bfa_ioc_sync_complete(__ioc)   ((__ioc)->ioc_hwif->ioc_sync_complete(__ioc))
 
#define bfa_ioc_mbox_cmd_pending(__ioc)
 
#define BFA_SEM_SPINCNT   3000
 
#define PSS_LMEM_INIT_TIME   10000
 
#define BFA_MFG_NAME   "Brocade"
 
#define BFA_FLASH_SEG_SZ   2048
 
#define BFA_FLASH_DMA_BUF_SZ   roundup(0x010000 + sizeof(struct bfa_mfg_block), BFA_FLASH_SEG_SZ)
 

Enumerations

enum  ioc_event {
  IOC_E_RESET = 1, IOC_E_ENABLE = 2, IOC_E_DISABLE = 3, IOC_E_DETACH = 4,
  IOC_E_ENABLED = 5, IOC_E_FWRSP_GETATTR = 6, IOC_E_DISABLED = 7, IOC_E_PFFAILED = 8,
  IOC_E_HBFAIL = 9, IOC_E_HWERROR = 10, IOC_E_TIMEOUT = 11, IOC_E_HWFAILED = 12,
  IOC_E_RESET = 1, IOC_E_ENABLE = 2, IOC_E_DISABLE = 3, IOC_E_DETACH = 4,
  IOC_E_ENABLED = 5, IOC_E_FWRSP_GETATTR = 6, IOC_E_DISABLED = 7, IOC_E_PFFAILED = 8,
  IOC_E_HBFAIL = 9, IOC_E_HWERROR = 10, IOC_E_TIMEOUT = 11, IOC_E_HWFAILED = 12
}
 
enum  iocpf_event {
  IOCPF_E_ENABLE = 1, IOCPF_E_DISABLE = 2, IOCPF_E_STOP = 3, IOCPF_E_FWREADY = 4,
  IOCPF_E_FWRSP_ENABLE = 5, IOCPF_E_FWRSP_DISABLE = 6, IOCPF_E_FAIL = 7, IOCPF_E_INITFAIL = 8,
  IOCPF_E_GETATTRFAIL = 9, IOCPF_E_SEMLOCKED = 10, IOCPF_E_TIMEOUT = 11, IOCPF_E_SEM_ERROR = 12,
  IOCPF_E_ENABLE = 1, IOCPF_E_DISABLE = 2, IOCPF_E_STOP = 3, IOCPF_E_FWREADY = 4,
  IOCPF_E_FWRSP_ENABLE = 5, IOCPF_E_FWRSP_DISABLE = 6, IOCPF_E_FAIL = 7, IOCPF_E_INITFAIL = 8,
  IOCPF_E_GETATTRFAIL = 9, IOCPF_E_SEMLOCKED = 10, IOCPF_E_TIMEOUT = 11, IOCPF_E_SEM_ERROR = 12
}
 
enum  bfa_iocpf_state {
  BFA_IOCPF_RESET = 1, BFA_IOCPF_SEMWAIT = 2, BFA_IOCPF_HWINIT = 3, BFA_IOCPF_READY = 4,
  BFA_IOCPF_INITFAIL = 5, BFA_IOCPF_FAIL = 6, BFA_IOCPF_DISABLING = 7, BFA_IOCPF_DISABLED = 8,
  BFA_IOCPF_FWMISMATCH = 9, BFA_IOCPF_RESET = 1, BFA_IOCPF_SEMWAIT = 2, BFA_IOCPF_HWINIT = 3,
  BFA_IOCPF_READY = 4, BFA_IOCPF_INITFAIL = 5, BFA_IOCPF_FAIL = 6, BFA_IOCPF_DISABLING = 7,
  BFA_IOCPF_DISABLED = 8, BFA_IOCPF_FWMISMATCH = 9
}
 

Functions

 bfa_fsm_state_decl (bfa_ioc, uninit, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, reset, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, enabling, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, getattr, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, op, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, fail_retry, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, fail, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, disabling, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, disabled, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_ioc, hwfail, struct bfa_ioc, enum ioc_event)
 
 bfa_fsm_state_decl (bfa_iocpf, reset, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, fwcheck, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, mismatch, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, semwait, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, hwinit, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, enabling, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, ready, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, initfail_sync, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, initfail, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, fail_sync, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, fail, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, disabling, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, disabling_sync, struct bfa_iocpf, enum iocpf_event)
 
 bfa_fsm_state_decl (bfa_iocpf, disabled, struct bfa_iocpf, enum iocpf_event)
 
bool bfa_nw_ioc_sem_get (void __iomem *sem_reg)
 
void bfa_nw_ioc_sem_release (void __iomem *sem_reg)
 
void bfa_nw_ioc_hw_sem_release (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_fwver_get (struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr)
 
bool bfa_nw_ioc_fwver_cmp (struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr)
 
void bfa_nw_ioc_timeout (void *ioc_arg)
 
void bfa_nw_ioc_hb_check (void *cbarg)
 
int bfa_nw_ioc_debug_fwtrc (struct bfa_ioc *ioc, void *trcdata, int *trclen)
 
int bfa_nw_ioc_debug_fwsave (struct bfa_ioc *ioc, void *trcdata, int *trclen)
 
void bfa_nw_ioc_auto_recover (bool auto_recover)
 
void bfa_nw_ioc_attach (struct bfa_ioc *ioc, void *bfa, struct bfa_ioc_cbfn *cbfn)
 
void bfa_nw_ioc_detach (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_pci_init (struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, enum bfi_pcifn_class clscode)
 
void bfa_nw_ioc_mem_claim (struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa)
 
u32 bfa_nw_ioc_meminfo (void)
 
void bfa_nw_ioc_enable (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_disable (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_debug_memclaim (struct bfa_ioc *ioc, void *dbg_fwsave)
 
void bfa_nw_ioc_mbox_regisr (struct bfa_ioc *ioc, enum bfi_mclass mc, bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg)
 
bool bfa_nw_ioc_mbox_queue (struct bfa_ioc *ioc, struct bfa_mbox_cmd *cmd, bfa_mbox_cmd_cbfn_t cbfn, void *cbarg)
 
void bfa_nw_ioc_mbox_isr (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_error_isr (struct bfa_ioc *ioc)
 
bool bfa_nw_ioc_is_disabled (struct bfa_ioc *ioc)
 
bool bfa_nw_ioc_is_operational (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_notify_register (struct bfa_ioc *ioc, struct bfa_ioc_notify *notify)
 
void bfa_nw_ioc_get_attr (struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr)
 
mac_t bfa_nw_ioc_get_mac (struct bfa_ioc *ioc)
 
void bfa_nw_iocpf_timeout (void *ioc_arg)
 
void bfa_nw_iocpf_sem_timeout (void *ioc_arg)
 
u32 bfa_nw_flash_meminfo (void)
 
void bfa_nw_flash_attach (struct bfa_flash *flash, struct bfa_ioc *ioc, void *dev)
 
void bfa_nw_flash_memclaim (struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa)
 
enum bfa_status bfa_nw_flash_get_attr (struct bfa_flash *flash, struct bfa_flash_attr *attr, bfa_cb_flash cbfn, void *cbarg)
 
enum bfa_status bfa_nw_flash_update_part (struct bfa_flash *flash, u32 type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash cbfn, void *cbarg)
 
enum bfa_status bfa_nw_flash_read_part (struct bfa_flash *flash, u32 type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash cbfn, void *cbarg)
 

Macro Definition Documentation

#define BFA_FLASH_DMA_BUF_SZ   roundup(0x010000 + sizeof(struct bfa_mfg_block), BFA_FLASH_SEG_SZ)

Definition at line 2505 of file bfa_ioc.c.

#define BFA_FLASH_SEG_SZ   2048

Definition at line 2504 of file bfa_ioc.c.

#define bfa_ioc_firmware_lock (   __ioc)    ((__ioc)->ioc_hwif->ioc_firmware_lock(__ioc))

Definition at line 27 of file bfa_ioc.c.

#define bfa_ioc_firmware_unlock (   __ioc)    ((__ioc)->ioc_hwif->ioc_firmware_unlock(__ioc))

Definition at line 29 of file bfa_ioc.c.

#define bfa_ioc_map_port (   __ioc)    ((__ioc)->ioc_hwif->ioc_map_port(__ioc))

Definition at line 32 of file bfa_ioc.c.

#define bfa_ioc_mbox_cmd_pending (   __ioc)
Value:
(!list_empty(&((__ioc)->mbox_mod.cmd_q)) || \
readl((__ioc)->ioc_regs.hfn_mbox_cmd))

Definition at line 46 of file bfa_ioc.c.

#define bfa_ioc_notify_fail (   __ioc)    ((__ioc)->ioc_hwif->ioc_notify_fail(__ioc))

Definition at line 33 of file bfa_ioc.c.

#define bfa_ioc_reg_init (   __ioc)    ((__ioc)->ioc_hwif->ioc_reg_init(__ioc))

Definition at line 31 of file bfa_ioc.c.

#define bfa_ioc_sync_ack (   __ioc)    ((__ioc)->ioc_hwif->ioc_sync_ack(__ioc))

Definition at line 41 of file bfa_ioc.c.

#define bfa_ioc_sync_complete (   __ioc)    ((__ioc)->ioc_hwif->ioc_sync_complete(__ioc))

Definition at line 43 of file bfa_ioc.c.

#define bfa_ioc_sync_join (   __ioc)    ((__ioc)->ioc_hwif->ioc_sync_join(__ioc))

Definition at line 37 of file bfa_ioc.c.

#define bfa_ioc_sync_leave (   __ioc)    ((__ioc)->ioc_hwif->ioc_sync_leave(__ioc))

Definition at line 39 of file bfa_ioc.c.

#define bfa_ioc_sync_start (   __ioc)    ((__ioc)->ioc_hwif->ioc_sync_start(__ioc))

Definition at line 35 of file bfa_ioc.c.

#define BFA_MFG_NAME   "Brocade"

Definition at line 2219 of file bfa_ioc.c.

#define BFA_SEM_SPINCNT   3000
#define PSS_LMEM_INIT_TIME   10000

Enumeration Type Documentation

Enumerator:
BFA_IOCPF_RESET 

IOC is in reset state

BFA_IOCPF_SEMWAIT 

Waiting for IOC h/w semaphore

BFA_IOCPF_HWINIT 

IOC h/w is being initialized

BFA_IOCPF_READY 

IOCPF is initialized

BFA_IOCPF_INITFAIL 

IOCPF failed

BFA_IOCPF_FAIL 

IOCPF failed

BFA_IOCPF_DISABLING 

IOCPF is being disabled

BFA_IOCPF_DISABLED 

IOCPF is disabled

BFA_IOCPF_FWMISMATCH 

IOC f/w different from drivers

BFA_IOCPF_RESET 
BFA_IOCPF_SEMWAIT 
BFA_IOCPF_HWINIT 
BFA_IOCPF_READY 
BFA_IOCPF_INITFAIL 
BFA_IOCPF_FAIL 
BFA_IOCPF_DISABLING 
BFA_IOCPF_DISABLED 
BFA_IOCPF_FWMISMATCH 

Definition at line 162 of file bfa_ioc.c.

enum ioc_event
Enumerator:
IOC_E_RESET 

IOC reset request

IOC_E_ENABLE 

IOC enable request

IOC_E_DISABLE 

IOC disable request

IOC_E_DETACH 

driver detach cleanup

IOC_E_ENABLED 

f/w enabled

IOC_E_FWRSP_GETATTR 

IOC get attribute response

IOC_E_DISABLED 

f/w disabled

IOC_E_PFFAILED 

failure notice by iocpf sm

IOC_E_HBFAIL 

heartbeat failure

IOC_E_HWERROR 

hardware error interrupt

IOC_E_TIMEOUT 

timeout

IOC_E_HWFAILED 

PCI mapping failure notice

IOC_E_RESET 
IOC_E_ENABLE 
IOC_E_DISABLE 
IOC_E_DETACH 
IOC_E_ENABLED 
IOC_E_FWRSP_GETATTR 
IOC_E_DISABLED 
IOC_E_PFFAILED 
IOC_E_HBFAIL 
IOC_E_HWERROR 
IOC_E_TIMEOUT 
IOC_E_HWFAILED 

Definition at line 96 of file bfa_ioc.c.

Enumerator:
IOCPF_E_ENABLE 

IOCPF enable request

IOCPF_E_DISABLE 

IOCPF disable request

IOCPF_E_STOP 

stop on driver detach

IOCPF_E_FWREADY 

f/w initialization done

IOCPF_E_FWRSP_ENABLE 

enable f/w response

IOCPF_E_FWRSP_DISABLE 

disable f/w response

IOCPF_E_FAIL 

failure notice by ioc sm

IOCPF_E_INITFAIL 

init fail notice by ioc sm

IOCPF_E_GETATTRFAIL 

init fail notice by ioc sm

IOCPF_E_SEMLOCKED 

h/w semaphore is locked

IOCPF_E_TIMEOUT 

f/w response timeout

IOCPF_E_SEM_ERROR 

h/w sem mapping error

IOCPF_E_ENABLE 
IOCPF_E_DISABLE 
IOCPF_E_STOP 
IOCPF_E_FWREADY 
IOCPF_E_FWRSP_ENABLE 
IOCPF_E_FWRSP_DISABLE 
IOCPF_E_FAIL 
IOCPF_E_INITFAIL 
IOCPF_E_GETATTRFAIL 
IOCPF_E_SEMLOCKED 
IOCPF_E_TIMEOUT 
IOCPF_E_SEM_ERROR 

Definition at line 146 of file bfa_ioc.c.

Function Documentation

bfa_fsm_state_decl ( bfa_ioc  ,
uninit  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
reset  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
enabling  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
getattr  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
op  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
fail_retry  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
fail  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
disabling  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
disabled  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_ioc  ,
hwfail  ,
struct bfa_ioc  ,
enum  ioc_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
reset  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
fwcheck  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
mismatch  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
semwait  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
hwinit  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
enabling  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
ready  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
initfail_sync  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
initfail  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
fail_sync  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
fail  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
disabling  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
disabling_sync  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
bfa_fsm_state_decl ( bfa_iocpf  ,
disabled  ,
struct bfa_iocpf  ,
enum  iocpf_event 
)
void bfa_nw_flash_attach ( struct bfa_flash flash,
struct bfa_ioc ioc,
void dev 
)

bfa_nw_flash_attach - Flash attach API.

: flash structure : ioc structure : device structure

Definition at line 2695 of file bfa_ioc.c.

enum bfa_status bfa_nw_flash_get_attr ( struct bfa_flash flash,
struct bfa_flash_attr attr,
bfa_cb_flash  cbfn,
void cbarg 
)

bfa_nw_flash_get_attr - Get flash attribute.

: flash structure : flash attribute structure : callback function : callback argument

Return status.

Definition at line 2736 of file bfa_ioc.c.

void bfa_nw_flash_memclaim ( struct bfa_flash flash,
u8 dm_kva,
u64  dm_pa 
)

bfa_nw_flash_memclaim - Claim memory for flash

: flash structure : pointer to virtual memory address : physical memory address

Definition at line 2716 of file bfa_ioc.c.

u32 bfa_nw_flash_meminfo ( void  )

Definition at line 2682 of file bfa_ioc.c.

enum bfa_status bfa_nw_flash_read_part ( struct bfa_flash flash,
u32  type,
u8  instance,
void buf,
u32  len,
u32  offset,
bfa_cb_flash  cbfn,
void cbarg 
)

bfa_nw_flash_read_part - Read flash partition.

: flash structure : flash partition type : flash partition instance : read data buffer : data buffer length : offset relative to the partition starting address : callback function : callback argument

Return status.

Definition at line 2825 of file bfa_ioc.c.

enum bfa_status bfa_nw_flash_update_part ( struct bfa_flash flash,
u32  type,
u8  instance,
void buf,
u32  len,
u32  offset,
bfa_cb_flash  cbfn,
void cbarg 
)

bfa_nw_flash_update_part - Update flash partition.

: flash structure : flash partition type : flash partition instance : update data buffer : data buffer length : offset relative to the partition starting address : callback function : callback argument

Return status.

Definition at line 2776 of file bfa_ioc.c.

void bfa_nw_ioc_attach ( struct bfa_ioc ioc,
void bfa,
struct bfa_ioc_cbfn cbfn 
)

bfa_nw_ioc_attach - IOC attach time initialization and setup.

: memory for IOC : driver instance structure

Definition at line 1951 of file bfa_ioc.c.

void bfa_nw_ioc_auto_recover ( bool  auto_recover)

Definition at line 1876 of file bfa_ioc.c.

int bfa_nw_ioc_debug_fwsave ( struct bfa_ioc ioc,
void trcdata,
int trclen 
)

Definition at line 1761 of file bfa_ioc.c.

int bfa_nw_ioc_debug_fwtrc ( struct bfa_ioc ioc,
void trcdata,
int trclen 
)

Definition at line 1730 of file bfa_ioc.c.

void bfa_nw_ioc_debug_memclaim ( struct bfa_ioc ioc,
void dbg_fwsave 
)

Definition at line 2088 of file bfa_ioc.c.

void bfa_nw_ioc_detach ( struct bfa_ioc ioc)

Definition at line 1969 of file bfa_ioc.c.

void bfa_nw_ioc_disable ( struct bfa_ioc ioc)

Definition at line 2080 of file bfa_ioc.c.

void bfa_nw_ioc_enable ( struct bfa_ioc ioc)

Definition at line 2071 of file bfa_ioc.c.

void bfa_nw_ioc_error_isr ( struct bfa_ioc ioc)

Definition at line 2187 of file bfa_ioc.c.

bool bfa_nw_ioc_fwver_cmp ( struct bfa_ioc ioc,
struct bfi_ioc_image_hdr fwhdr 
)

Definition at line 1314 of file bfa_ioc.c.

void bfa_nw_ioc_fwver_get ( struct bfa_ioc ioc,
struct bfi_ioc_image_hdr fwhdr 
)

Definition at line 1294 of file bfa_ioc.c.

void bfa_nw_ioc_get_attr ( struct bfa_ioc ioc,
struct bfa_ioc_attr ioc_attr 
)

Definition at line 2373 of file bfa_ioc.c.

mac_t bfa_nw_ioc_get_mac ( struct bfa_ioc ioc)

Definition at line 2401 of file bfa_ioc.c.

void bfa_nw_ioc_hb_check ( void cbarg)

Definition at line 1487 of file bfa_ioc.c.

void bfa_nw_ioc_hw_sem_release ( struct bfa_ioc ioc)

Definition at line 1216 of file bfa_ioc.c.

bool bfa_nw_ioc_is_disabled ( struct bfa_ioc ioc)

Definition at line 2196 of file bfa_ioc.c.

bool bfa_nw_ioc_is_operational ( struct bfa_ioc ioc)

Definition at line 2204 of file bfa_ioc.c.

void bfa_nw_ioc_mbox_isr ( struct bfa_ioc ioc)

Treat IOC message class as special.

Try to send pending mailbox commands

Definition at line 2156 of file bfa_ioc.c.

bool bfa_nw_ioc_mbox_queue ( struct bfa_ioc ioc,
struct bfa_mbox_cmd cmd,
bfa_mbox_cmd_cbfn_t  cbfn,
void cbarg 
)

bfa_nw_ioc_mbox_queue - Queue a mailbox command request to firmware.

: IOC instance : Mailbox command

Waits if mailbox is busy. Responsibility of caller to serialize

If a previous command is pending, queue new command

If mailbox is busy, queue command for poll timer

mailbox is free – queue command to firmware

Definition at line 2120 of file bfa_ioc.c.

void bfa_nw_ioc_mbox_regisr ( struct bfa_ioc ioc,
enum bfi_mclass  mc,
bfa_ioc_mbox_mcfunc_t  cbfn,
void cbarg 
)

Definition at line 2102 of file bfa_ioc.c.

void bfa_nw_ioc_mem_claim ( struct bfa_ioc ioc,
u8 dm_kva,
u64  dm_pa 
)

bfa_nw_ioc_mem_claim - Initialize IOC dma memory

: kernel virtual address of IOC dma memory : physical address of IOC dma memory

dma memory for firmware attribute

Definition at line 2053 of file bfa_ioc.c.

u32 bfa_nw_ioc_meminfo ( void  )

Definition at line 2065 of file bfa_ioc.c.

void bfa_nw_ioc_notify_register ( struct bfa_ioc ioc,
struct bfa_ioc_notify notify 
)

Definition at line 2213 of file bfa_ioc.c.

void bfa_nw_ioc_pci_init ( struct bfa_ioc ioc,
struct bfa_pcidev pcidev,
enum bfi_pcifn_class  clscode 
)

bfa_nw_ioc_pci_init - Setup IOC PCI properties.

: PCI device information for this IOC

Initialize IOC and device personality

Set asic specific interfaces.

Definition at line 1983 of file bfa_ioc.c.

bool bfa_nw_ioc_sem_get ( void __iomem sem_reg)

Definition at line 1107 of file bfa_ioc.c.

void bfa_nw_ioc_sem_release ( void __iomem sem_reg)

Definition at line 1128 of file bfa_ioc.c.

void bfa_nw_ioc_timeout ( void ioc_arg)

Definition at line 1419 of file bfa_ioc.c.

void bfa_nw_iocpf_sem_timeout ( void ioc_arg)

Definition at line 2469 of file bfa_ioc.c.

void bfa_nw_iocpf_timeout ( void ioc_arg)

Definition at line 2455 of file bfa_ioc.c.