|
#define | BFA_IOC_TOV 3000 /* msecs */ |
|
#define | BFA_IOC_HWSEM_TOV 500 /* msecs */ |
|
#define | BFA_IOC_HB_TOV 500 /* msecs */ |
|
#define | BFA_IOC_POLL_TOV 200 /* msecs */ |
|
#define | BNA_DBG_FWTRC_LEN |
|
#define | BFA_DMA_ALIGN_SZ 256 |
|
#define | BFI_SMEM_CB_SIZE 0x200000U /* ! 2MB for crossbow */ |
|
#define | BFI_SMEM_CT_SIZE 0x280000U /* ! 2.5MB for catapult */ |
|
#define | bfa_dma_be_addr_set(dma_addr, pa) __bfa_dma_be_addr_set(&dma_addr, (u64)pa) |
|
#define | bfa_alen_set(__alen, __len, __pa) __bfa_alen_set(__alen, __len, (u64)__pa) |
|
#define | bfa_ioc_notify_init(__notify, __cbfn, __cbarg) |
|
#define | bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func) |
|
#define | bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id) |
|
#define | bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva) |
|
#define | bfa_ioc_portid(__ioc) ((__ioc)->port_id) |
|
#define | bfa_ioc_asic_gen(__ioc) ((__ioc)->asic_gen) |
|
#define | bfa_ioc_fetch_stats(__ioc, __stats) (((__stats)->drv_stats) = (__ioc)->stats) |
|
#define | bfa_ioc_clr_stats(__ioc) memset(&(__ioc)->stats, 0, sizeof((__ioc)->stats)) |
|
#define | bfa_ioc_maxfrsize(__ioc) ((__ioc)->attr->maxfrsize) |
|
#define | bfa_ioc_rx_bbcredit(__ioc) ((__ioc)->attr->rx_bbcredit) |
|
#define | bfa_ioc_speed_sup(__ioc) BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop) |
|
#define | bfa_ioc_get_nports(__ioc) BFI_ADAPTER_GETP(NPORTS, (__ioc)->attr->adapter_prop) |
|
#define | bfa_ioc_stats(_ioc, _stats) ((_ioc)->stats._stats++) |
|
#define | bfa_ioc_stats_hb_count(_ioc, _hb_count) ((_ioc)->stats.hb_count = (_hb_count)) |
|
#define | BFA_IOC_FWIMG_MINSZ (16 * 1024) |
|
#define | BFA_IOC_FW_SMEM_SIZE(__ioc) |
|
#define | BFA_IOC_FLASH_CHUNK_NO(off) (off / BFI_FLASH_CHUNK_SZ_WORDS) |
|
#define | BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) |
|
#define | BFA_IOC_FLASH_CHUNK_ADDR(chunkno) (chunkno * BFI_FLASH_CHUNK_SZ_WORDS) |
|
#define | bfa_ioc_pll_init_asic(__ioc) |
|
#define | bfa_ioc_isr_mode_set(__ioc, __msix) |
|
#define | bfa_ioc_ownership_reset(__ioc) ((__ioc)->ioc_hwif->ioc_ownership_reset(__ioc)) |
|
#define | bfa_ioc_lpu_read_stat(__ioc) |
|
|
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_mbox_regisr (struct bfa_ioc *ioc, enum bfi_mclass mc, bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg) |
|
void | bfa_nw_ioc_set_ct_hwif (struct bfa_ioc *ioc) |
|
void | bfa_nw_ioc_set_ct2_hwif (struct bfa_ioc *ioc) |
|
void | bfa_nw_ioc_ct2_poweron (struct bfa_ioc *ioc) |
|
void | bfa_nw_ioc_attach (struct bfa_ioc *ioc, void *bfa, struct bfa_ioc_cbfn *cbfn) |
|
void | bfa_nw_ioc_auto_recover (bool auto_recover) |
|
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) |
|
u32 | bfa_nw_ioc_meminfo (void) |
|
void | bfa_nw_ioc_mem_claim (struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa) |
|
void | bfa_nw_ioc_enable (struct bfa_ioc *ioc) |
|
void | bfa_nw_ioc_disable (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_get_attr (struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr) |
|
void | bfa_nw_ioc_notify_register (struct bfa_ioc *ioc, struct bfa_ioc_notify *notify) |
|
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) |
|
mac_t | bfa_nw_ioc_get_mac (struct bfa_ioc *ioc) |
|
void | bfa_nw_ioc_debug_memclaim (struct bfa_ioc *ioc, void *dbg_fwsave) |
|
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_timeout (void *ioc) |
|
void | bfa_nw_ioc_hb_check (void *ioc) |
|
void | bfa_nw_iocpf_timeout (void *ioc) |
|
void | bfa_nw_iocpf_sem_timeout (void *ioc) |
|
u32 * | bfa_cb_image_get_chunk (enum bfi_asic_gen asic_gen, u32 off) |
|
u32 | bfa_cb_image_get_size (enum bfi_asic_gen asic_gen) |
|
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) |
|
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) |
|
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.