Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
bna_types.h File Reference
#include "cna.h"
#include "bna_hw_defs.h"
#include "bfa_cee.h"
#include "bfa_msgq.h"

Go to the source code of this file.

Data Structures

struct  bna_ident
 
struct  bna_mac
 
struct  bna_mem_descr
 
struct  bna_mem_info
 
struct  bna_intr_descr
 
struct  bna_intr_info
 
union  bna_res_u
 
struct  bna_res_info
 
struct  bna_qpt
 
struct  bna_attr
 
struct  bna_ioceth
 
struct  bna_pause_config
 
struct  bna_enet
 
struct  bna_ethport
 
struct  bna_ib_dbell
 
struct  bna_ib
 
struct  bna_tcb
 
struct  bna_txq
 
struct  bna_tx
 
struct  bna_tx_config
 
struct  bna_tx_event_cbfn
 
struct  bna_tx_mod
 
struct  bna_rcb
 
struct  bna_rxq
 
union  bna_rxq_u
 
struct  bna_pkt_rate
 
struct  bna_ccb
 
struct  bna_cq
 
struct  bna_rss_config
 
struct  bna_hds_config
 
struct  bna_rx_config
 
struct  bna_rxp
 
struct  bna_rxf
 
struct  bna_rx
 
struct  bna_rx_event_cbfn
 
struct  bna_rx_mod
 
struct  bna_ucam_mod
 
struct  bna_mcam_handle
 
struct  bna_mcam_mod
 
struct  bna_stats
 
struct  bna_stats_mod
 
struct  bna
 

Macros

#define BNA_MAX_NAME_SIZE   64
 
#define BNA_Q_NAME_SIZE   16
 

Enumerations

enum  bna_status { BNA_STATUS_T_DISABLED = 0, BNA_STATUS_T_ENABLED = 1 }
 
enum  bna_cleanup_type { BNA_HARD_CLEANUP = 0, BNA_SOFT_CLEANUP = 1 }
 
enum  bna_cb_status {
  BNA_CB_SUCCESS = 0, BNA_CB_FAIL = 1, BNA_CB_INTERRUPT = 2, BNA_CB_BUSY = 3,
  BNA_CB_INVALID_MAC = 4, BNA_CB_MCAST_LIST_FULL = 5, BNA_CB_UCAST_CAM_FULL = 6, BNA_CB_WAITING = 7,
  BNA_CB_NOT_EXEC = 8
}
 
enum  bna_res_type { BNA_RES_T_MEM = 1, BNA_RES_T_INTR = 2 }
 
enum  bna_mem_type { BNA_MEM_T_KVA = 1, BNA_MEM_T_DMA = 2 }
 
enum  bna_intr_type { BNA_INTR_T_INTX = 1, BNA_INTR_T_MSIX = 2 }
 
enum  bna_res_req_type {
  BNA_RES_MEM_T_COM = 0, BNA_RES_MEM_T_ATTR = 1, BNA_RES_MEM_T_FWTRC = 2, BNA_RES_MEM_T_STATS = 3,
  BNA_RES_T_MAX
}
 
enum  bna_mod_res_req_type {
  BNA_MOD_RES_MEM_T_TX_ARRAY = 0, BNA_MOD_RES_MEM_T_TXQ_ARRAY = 1, BNA_MOD_RES_MEM_T_RX_ARRAY = 2, BNA_MOD_RES_MEM_T_RXP_ARRAY = 3,
  BNA_MOD_RES_MEM_T_RXQ_ARRAY = 4, BNA_MOD_RES_MEM_T_UCMAC_ARRAY = 5, BNA_MOD_RES_MEM_T_MCMAC_ARRAY = 6, BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY = 7,
  BNA_MOD_RES_T_MAX
}
 
enum  bna_tx_res_req_type {
  BNA_TX_RES_MEM_T_TCB = 0, BNA_TX_RES_MEM_T_UNMAPQ = 1, BNA_TX_RES_MEM_T_QPT = 2, BNA_TX_RES_MEM_T_SWQPT = 3,
  BNA_TX_RES_MEM_T_PAGE = 4, BNA_TX_RES_MEM_T_IBIDX = 5, BNA_TX_RES_INTR_T_TXCMPL = 6, BNA_TX_RES_T_MAX
}
 
enum  bna_rx_mem_type {
  BNA_RX_RES_MEM_T_CCB = 0, BNA_RX_RES_MEM_T_RCB = 1, BNA_RX_RES_MEM_T_UNMAPQ = 2, BNA_RX_RES_MEM_T_CQPT = 3,
  BNA_RX_RES_MEM_T_CSWQPT = 4, BNA_RX_RES_MEM_T_CQPT_PAGE = 5, BNA_RX_RES_MEM_T_HQPT = 6, BNA_RX_RES_MEM_T_DQPT = 7,
  BNA_RX_RES_MEM_T_HSWQPT = 8, BNA_RX_RES_MEM_T_DSWQPT = 9, BNA_RX_RES_MEM_T_DPAGE = 10, BNA_RX_RES_MEM_T_HPAGE = 11,
  BNA_RX_RES_MEM_T_IBIDX = 12, BNA_RX_RES_MEM_T_RIT = 13, BNA_RX_RES_T_INTR = 14, BNA_RX_RES_T_MAX = 15
}
 
enum  bna_tx_type { BNA_TX_T_REGULAR = 0, BNA_TX_T_LOOPBACK = 1 }
 
enum  bna_tx_flags { BNA_TX_F_ENET_STARTED = 1, BNA_TX_F_ENABLED = 2, BNA_TX_F_PRIO_CHANGED = 4, BNA_TX_F_BW_UPDATED = 8 }
 
enum  bna_tx_mod_flags { BNA_TX_MOD_F_ENET_STARTED = 1, BNA_TX_MOD_F_ENET_LOOPBACK = 2 }
 
enum  bna_rx_type { BNA_RX_T_REGULAR = 0, BNA_RX_T_LOOPBACK = 1 }
 
enum  bna_rxp_type { BNA_RXP_SINGLE = 1, BNA_RXP_SLR = 2, BNA_RXP_HDS = 3 }
 
enum  bna_rxmode { BNA_RXMODE_PROMISC = 1, BNA_RXMODE_DEFAULT = 2, BNA_RXMODE_ALLMULTI = 4 }
 
enum  bna_rx_event {
  RX_E_START = 1, RX_E_STOP = 2, RX_E_FAIL = 3, RX_E_STARTED = 4,
  RX_E_STOPPED = 5, RX_E_RXF_STARTED = 6, RX_E_RXF_STOPPED = 7, RX_E_CLEANUP_DONE = 8
}
 
enum  bna_rx_flags { BNA_RX_F_ENET_STARTED = 1, BNA_RX_F_ENABLED = 2 }
 
enum  bna_rx_mod_flags { BNA_RX_MOD_F_ENET_STARTED = 1, BNA_RX_MOD_F_ENET_LOOPBACK = 2 }
 
enum  bna_rxf_flags { BNA_RXF_F_PAUSED = 1 }
 
enum  bna_rxf_event {
  RXF_E_START = 1, RXF_E_STOP = 2, RXF_E_FAIL = 3, RXF_E_CONFIG = 4,
  RXF_E_PAUSE = 5, RXF_E_RESUME = 6, RXF_E_FW_RESP = 7
}
 
enum  bna_enet_type { BNA_ENET_T_REGULAR = 0, BNA_ENET_T_LOOPBACK_INTERNAL = 1, BNA_ENET_T_LOOPBACK_EXTERNAL = 2 }
 
enum  bna_link_status { BNA_LINK_DOWN = 0, BNA_LINK_UP = 1, BNA_CEE_UP = 2 }
 
enum  bna_ethport_flags { BNA_ETHPORT_F_ADMIN_UP = 1, BNA_ETHPORT_F_PORT_ENABLED = 2, BNA_ETHPORT_F_RX_STARTED = 4 }
 
enum  bna_enet_flags { BNA_ENET_F_IOCETH_READY = 1, BNA_ENET_F_ENABLED = 2, BNA_ENET_F_PAUSE_CHANGED = 4, BNA_ENET_F_MTU_CHANGED = 8 }
 
enum  bna_rss_flags { BNA_RSS_F_RIT_PENDING = 1, BNA_RSS_F_CFG_PENDING = 2, BNA_RSS_F_STATUS_PENDING = 4 }
 
enum  bna_mod_flags { BNA_MOD_F_INIT_DONE = 1 }
 
enum  bna_pkt_rates {
  BNA_PKT_RATE_10K = 10000, BNA_PKT_RATE_20K = 20000, BNA_PKT_RATE_30K = 30000, BNA_PKT_RATE_40K = 40000,
  BNA_PKT_RATE_50K = 50000, BNA_PKT_RATE_60K = 60000, BNA_PKT_RATE_70K = 70000, BNA_PKT_RATE_80K = 80000
}
 
enum  bna_dim_load_types {
  BNA_LOAD_T_HIGH_4 = 0, BNA_LOAD_T_HIGH_3 = 1, BNA_LOAD_T_HIGH_2 = 2, BNA_LOAD_T_HIGH_1 = 3,
  BNA_LOAD_T_LOW_1 = 4, BNA_LOAD_T_LOW_2 = 5, BNA_LOAD_T_LOW_3 = 6, BNA_LOAD_T_LOW_4 = 7,
  BNA_LOAD_T_MAX = 8
}
 
enum  bna_dim_bias_types { BNA_BIAS_T_SMALL = 0, BNA_BIAS_T_LARGE = 1, BNA_BIAS_T_MAX = 2 }
 

Macro Definition Documentation

#define BNA_MAX_NAME_SIZE   64

Definition at line 261 of file bna_types.h.

#define BNA_Q_NAME_SIZE   16

Definition at line 429 of file bna_types.h.

Enumeration Type Documentation

Enumerator:
BNA_CB_SUCCESS 
BNA_CB_FAIL 
BNA_CB_INTERRUPT 
BNA_CB_BUSY 
BNA_CB_INVALID_MAC 
BNA_CB_MCAST_LIST_FULL 
BNA_CB_UCAST_CAM_FULL 
BNA_CB_WAITING 
BNA_CB_NOT_EXEC 

Definition at line 51 of file bna_types.h.

Enumerator:
BNA_HARD_CLEANUP 
BNA_SOFT_CLEANUP 

Definition at line 46 of file bna_types.h.

Enumerator:
BNA_BIAS_T_SMALL 
BNA_BIAS_T_LARGE 
BNA_BIAS_T_MAX 

Definition at line 255 of file bna_types.h.

Enumerator:
BNA_LOAD_T_HIGH_4 
BNA_LOAD_T_HIGH_3 
BNA_LOAD_T_HIGH_2 
BNA_LOAD_T_HIGH_1 
BNA_LOAD_T_LOW_1 
BNA_LOAD_T_LOW_2 
BNA_LOAD_T_LOW_3 
BNA_LOAD_T_LOW_4 
BNA_LOAD_T_MAX 

Definition at line 243 of file bna_types.h.

Enumerator:
BNA_ENET_F_IOCETH_READY 
BNA_ENET_F_ENABLED 
BNA_ENET_F_PAUSE_CHANGED 
BNA_ENET_F_MTU_CHANGED 

Definition at line 215 of file bna_types.h.

Enumerator:
BNA_ENET_T_REGULAR 
BNA_ENET_T_LOOPBACK_INTERNAL 
BNA_ENET_T_LOOPBACK_EXTERNAL 

Definition at line 197 of file bna_types.h.

Enumerator:
BNA_ETHPORT_F_ADMIN_UP 
BNA_ETHPORT_F_PORT_ENABLED 
BNA_ETHPORT_F_RX_STARTED 

Definition at line 209 of file bna_types.h.

Enumerator:
BNA_INTR_T_INTX 
BNA_INTR_T_MSIX 

Definition at line 73 of file bna_types.h.

Enumerator:
BNA_LINK_DOWN 
BNA_LINK_UP 
BNA_CEE_UP 

Definition at line 203 of file bna_types.h.

Enumerator:
BNA_MEM_T_KVA 
BNA_MEM_T_DMA 

Definition at line 68 of file bna_types.h.

Enumerator:
BNA_MOD_F_INIT_DONE 

Definition at line 228 of file bna_types.h.

Enumerator:
BNA_MOD_RES_MEM_T_TX_ARRAY 
BNA_MOD_RES_MEM_T_TXQ_ARRAY 
BNA_MOD_RES_MEM_T_RX_ARRAY 
BNA_MOD_RES_MEM_T_RXP_ARRAY 
BNA_MOD_RES_MEM_T_RXQ_ARRAY 
BNA_MOD_RES_MEM_T_UCMAC_ARRAY 
BNA_MOD_RES_MEM_T_MCMAC_ARRAY 
BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY 
BNA_MOD_RES_T_MAX 

Definition at line 86 of file bna_types.h.

Enumerator:
BNA_PKT_RATE_10K 
BNA_PKT_RATE_20K 
BNA_PKT_RATE_30K 
BNA_PKT_RATE_40K 
BNA_PKT_RATE_50K 
BNA_PKT_RATE_60K 
BNA_PKT_RATE_70K 
BNA_PKT_RATE_80K 

Definition at line 232 of file bna_types.h.

Enumerator:
BNA_RES_MEM_T_COM 
BNA_RES_MEM_T_ATTR 
BNA_RES_MEM_T_FWTRC 
BNA_RES_MEM_T_STATS 
BNA_RES_T_MAX 

Definition at line 78 of file bna_types.h.

Enumerator:
BNA_RES_T_MEM 
BNA_RES_T_INTR 

Definition at line 63 of file bna_types.h.

Enumerator:
BNA_RSS_F_RIT_PENDING 
BNA_RSS_F_CFG_PENDING 
BNA_RSS_F_STATUS_PENDING 

Definition at line 222 of file bna_types.h.

Enumerator:
RX_E_START 
RX_E_STOP 
RX_E_FAIL 
RX_E_STARTED 
RX_E_STOPPED 
RX_E_RXF_STARTED 
RX_E_RXF_STOPPED 
RX_E_CLEANUP_DONE 

Definition at line 162 of file bna_types.h.

Enumerator:
BNA_RX_F_ENET_STARTED 
BNA_RX_F_ENABLED 

Definition at line 173 of file bna_types.h.

Enumerator:
BNA_RX_RES_MEM_T_CCB 
BNA_RX_RES_MEM_T_RCB 
BNA_RX_RES_MEM_T_UNMAPQ 
BNA_RX_RES_MEM_T_CQPT 
BNA_RX_RES_MEM_T_CSWQPT 
BNA_RX_RES_MEM_T_CQPT_PAGE 
BNA_RX_RES_MEM_T_HQPT 
BNA_RX_RES_MEM_T_DQPT 
BNA_RX_RES_MEM_T_HSWQPT 
BNA_RX_RES_MEM_T_DSWQPT 
BNA_RX_RES_MEM_T_DPAGE 
BNA_RX_RES_MEM_T_HPAGE 
BNA_RX_RES_MEM_T_IBIDX 
BNA_RX_RES_MEM_T_RIT 
BNA_RX_RES_T_INTR 
BNA_RX_RES_T_MAX 

Definition at line 109 of file bna_types.h.

Enumerator:
BNA_RX_MOD_F_ENET_STARTED 
BNA_RX_MOD_F_ENET_LOOPBACK 

Definition at line 178 of file bna_types.h.

Enumerator:
BNA_RX_T_REGULAR 
BNA_RX_T_LOOPBACK 

Definition at line 145 of file bna_types.h.

Enumerator:
RXF_E_START 
RXF_E_STOP 
RXF_E_FAIL 
RXF_E_CONFIG 
RXF_E_PAUSE 
RXF_E_RESUME 
RXF_E_FW_RESP 

Definition at line 187 of file bna_types.h.

Enumerator:
BNA_RXF_F_PAUSED 

Definition at line 183 of file bna_types.h.

enum bna_rxmode
Enumerator:
BNA_RXMODE_PROMISC 
BNA_RXMODE_DEFAULT 
BNA_RXMODE_ALLMULTI 

Definition at line 156 of file bna_types.h.

Enumerator:
BNA_RXP_SINGLE 
BNA_RXP_SLR 
BNA_RXP_HDS 

Definition at line 150 of file bna_types.h.

enum bna_status
Enumerator:
BNA_STATUS_T_DISABLED 
BNA_STATUS_T_ENABLED 

Definition at line 41 of file bna_types.h.

Enumerator:
BNA_TX_F_ENET_STARTED 
BNA_TX_F_ENABLED 
BNA_TX_F_PRIO_CHANGED 
BNA_TX_F_BW_UPDATED 

Definition at line 133 of file bna_types.h.

Enumerator:
BNA_TX_MOD_F_ENET_STARTED 
BNA_TX_MOD_F_ENET_LOOPBACK 

Definition at line 140 of file bna_types.h.

Enumerator:
BNA_TX_RES_MEM_T_TCB 
BNA_TX_RES_MEM_T_UNMAPQ 
BNA_TX_RES_MEM_T_QPT 
BNA_TX_RES_MEM_T_SWQPT 
BNA_TX_RES_MEM_T_PAGE 
BNA_TX_RES_MEM_T_IBIDX 
BNA_TX_RES_INTR_T_TXCMPL 
BNA_TX_RES_T_MAX 

Definition at line 98 of file bna_types.h.

Enumerator:
BNA_TX_T_REGULAR 
BNA_TX_T_LOOPBACK 

Definition at line 128 of file bna_types.h.