|
iPXE
|
#include "bnxt_hsi.h"Go to the source code of this file.
Data Structures | |
| struct | tx_doorbell |
| struct | rx_doorbell |
| struct | cmpl_doorbell |
| struct | dbc_dbc |
| struct | tx_bd_short |
| struct | tx_cmpl |
| struct | tx_info |
| struct | cmpl_base |
| struct | cmp_info |
| struct | nq_base |
| struct | nq_info |
| struct | rx_pkt_cmpl |
| struct | rx_pkt_cmpl_hi |
| struct | rx_pkt_v3_cmpl |
| struct | rx_pkt_v3_cmpl_hi |
| struct | rx_prod_pkt_bd |
| struct | rx_info |
| struct | lm_error_recovery |
| struct | bnxt |
| #define ERRFILE ERRFILE_tg3 |
Definition at line 24 of file bnxt.h.
Referenced by __attribute(), golan_handle_pages(), golan_provide_pages(), and golan_take_pages().
Definition at line 25 of file bnxt.h.
Referenced by golan_eq_update_ci().
Definition at line 26 of file bnxt.h.
Referenced by golan_post_send(), and shomron_tx_uar_send_db().
| #define IPXE_VERSION_MAJOR 1 |
Definition at line 31 of file bnxt.h.
Referenced by bnxt_hwrm_func_drv_rgtr().
| #define IPXE_VERSION_MINOR 0 |
Definition at line 32 of file bnxt.h.
Referenced by bnxt_hwrm_func_drv_rgtr().
| #define IPXE_VERSION_UPDATE 0 |
Definition at line 33 of file bnxt.h.
Referenced by bnxt_hwrm_func_drv_rgtr().
| #define FLAG_SET | ( | f, | |
| b ) |
Definition at line 38 of file bnxt.h.
Referenced by bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_func_drv_rgtr(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_func_resource_qcaps(), bnxt_hwrm_port_phy_qcaps_req(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_stat_ctx_alloc(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_alloc(), and bnxt_post_rx_buffers().
| #define FLAG_TEST | ( | f, | |
| b ) |
Definition at line 39 of file bnxt.h.
Referenced by bnxt_db_cq(), bnxt_db_nq(), bnxt_db_rx(), bnxt_db_tx(), bnxt_free_rx_iob(), bnxt_get_link_speed(), bnxt_hwrm_assign_resources(), bnxt_hwrm_backing_store_cfg(), bnxt_hwrm_backing_store_qcfg(), bnxt_hwrm_cfa_l2_filter_free(), bnxt_hwrm_func_cfg_req(), bnxt_hwrm_func_drv_unrgtr(), bnxt_hwrm_port_phy_cfg(), bnxt_hwrm_port_phy_qcfg(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_ring_alloc_nq(), bnxt_hwrm_ring_free_cq(), bnxt_hwrm_ring_free_grp(), bnxt_hwrm_ring_free_nq(), bnxt_hwrm_ring_free_rx(), bnxt_hwrm_ring_free_tx(), bnxt_hwrm_set_async_event(), bnxt_hwrm_stat_ctx_free(), bnxt_hwrm_vnic_cfg(), bnxt_hwrm_vnic_free(), bnxt_is_pci_vf(), bnxt_query_phy_link(), and bnxt_service_nq().
| #define FLAG_RESET | ( | f, | |
| b ) |
Definition at line 40 of file bnxt.h.
Referenced by bnxt_free_rx_iob(), bnxt_hwrm_cfa_l2_filter_free(), bnxt_hwrm_func_drv_unrgtr(), bnxt_hwrm_ring_free_cq(), bnxt_hwrm_ring_free_grp(), bnxt_hwrm_ring_free_nq(), bnxt_hwrm_ring_free_rx(), bnxt_hwrm_ring_free_tx(), bnxt_hwrm_stat_ctx_free(), and bnxt_hwrm_vnic_free().
| #define BNXT_FLAG_HWRM_SHORT_CMD_SUPP 0x0001 |
Definition at line 41 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define BNXT_FLAG_RESOURCE_QCAPS_SUPPORT 0x0004 |
Definition at line 43 of file bnxt.h.
Referenced by bnxt_hwrm_assign_resources(), and bnxt_hwrm_func_resource_qcaps().
| #define BNXT_FLAG_MULTI_HOST 0x0008 |
Definition at line 44 of file bnxt.h.
Referenced by bnxt_hwrm_func_qcfg_req().
| #define BNXT_FLAG_NPAR_MODE 0x0010 |
Definition at line 45 of file bnxt.h.
Referenced by bnxt_hwrm_func_qcfg_req().
| #define BNXT_FLAG_PCI_VF 0x0040 |
Definition at line 47 of file bnxt.h.
Referenced by bnxt_is_pci_vf().
| #define BNXT_FLAG_LINK_SPEEDS2 0x0080 |
Definition at line 48 of file bnxt.h.
Referenced by bnxt_hwrm_port_phy_cfg(), bnxt_hwrm_port_phy_qcaps_req(), and bnxt_hwrm_port_phy_qcfg().
| #define BNXT_FLAG_IS_CHIP_P5 0x0100 |
Definition at line 49 of file bnxt.h.
Referenced by bnxt_db_cq(), bnxt_db_nq(), bnxt_db_rx(), bnxt_db_tx(), and bnxt_hwrm_ver_get().
| #define BNXT_FLAG_IS_CHIP_P5_PLUS 0x0200 |
Definition at line 50 of file bnxt.h.
Referenced by bnxt_hwrm_backing_store_cfg(), bnxt_hwrm_backing_store_qcfg(), bnxt_hwrm_func_cfg_req(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_ring_alloc_nq(), bnxt_hwrm_ring_free_nq(), bnxt_hwrm_set_async_event(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_cfg(), and bnxt_service_nq().
| #define BNXT_FLAG_IS_CHIP_P7 0x0400 |
Definition at line 51 of file bnxt.h.
Referenced by bnxt_db_cq(), bnxt_db_nq(), bnxt_db_rx(), bnxt_db_tx(), bnxt_get_link_speed(), bnxt_hwrm_ring_alloc(), and bnxt_hwrm_ver_get().
| #define STATUS_SUCCESS 0 |
Definition at line 55 of file bnxt.h.
Referenced by bnxt_alloc_hwrm_mem(), bnxt_alloc_rings_mem(), bnxt_free_rx_iob(), bnxt_get_device_address(), bnxt_get_link_speed(), bnxt_get_pci_info(), bnxt_get_phy_link(), bnxt_hwrm_backing_store_cfg(), bnxt_hwrm_backing_store_qcfg(), bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_cfa_l2_filter_free(), bnxt_hwrm_error_recovery_req(), bnxt_hwrm_func_cfg_req(), bnxt_hwrm_func_drv_rgtr(), bnxt_hwrm_func_drv_unrgtr(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_func_resource_qcaps(), bnxt_hwrm_port_mac_cfg(), bnxt_hwrm_port_phy_qcaps_req(), bnxt_hwrm_port_phy_qcfg(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_ring_alloc_nq(), bnxt_hwrm_ring_free_cq(), bnxt_hwrm_ring_free_grp(), bnxt_hwrm_ring_free_nq(), bnxt_hwrm_ring_free_rx(), bnxt_hwrm_ring_free_tx(), bnxt_hwrm_run(), bnxt_hwrm_stat_ctx_alloc(), bnxt_hwrm_stat_ctx_free(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_alloc(), bnxt_hwrm_vnic_free(), bnxt_link_speed_chg_evt(), bnxt_link_speed_evt(), bnxt_port_phy_chg_evt(), bnxt_post_rx_buffers(), and bnxt_query_phy_link().
| #define STATUS_FAILURE 1 |
Definition at line 56 of file bnxt.h.
Referenced by bnxt_get_link_speed(), bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_cfa_l2_filter_free(), bnxt_hwrm_error_recovery_req(), bnxt_hwrm_func_drv_rgtr(), bnxt_hwrm_func_drv_unrgtr(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_port_phy_qcaps_req(), bnxt_hwrm_port_phy_qcfg(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_ring_free_grp(), bnxt_hwrm_run(), bnxt_hwrm_stat_ctx_alloc(), bnxt_hwrm_stat_ctx_free(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_alloc(), bnxt_hwrm_vnic_free(), and bnxt_query_phy_link().
| #define STATUS_LINK_ACTIVE 4 |
Definition at line 59 of file bnxt.h.
Referenced by bnxt_get_phy_link(), bnxt_hwrm_port_phy_qcfg(), bnxt_link_evt(), bnxt_query_phy_link(), and bnxt_set_link().
| #define STATUS_LINK_DOWN 5 |
Definition at line 60 of file bnxt.h.
Referenced by bnxt_hwrm_port_phy_qcfg(), bnxt_init_one(), bnxt_link_evt(), and bnxt_mm_init_rings().
| #define STATUS_TIMEOUT 0xffff |
Definition at line 79 of file bnxt.h.
Referenced by wait_resp().
| #define RX_MASK_ACCEPT_NONE 0x0000 |
Definition at line 83 of file bnxt.h.
Referenced by set_rx_mask().
| #define RX_MASK_ACCEPT_MULTICAST 0x0002 |
Definition at line 85 of file bnxt.h.
Referenced by set_rx_mask().
| #define RX_MASK_ACCEPT_ALL_MULTICAST 0x0004 |
Definition at line 86 of file bnxt.h.
Referenced by set_rx_mask().
| #define RX_MASK_PROMISCUOUS_MODE 0x10000 |
Definition at line 89 of file bnxt.h.
Referenced by set_rx_mask().
| #define MEDIUM_SPEED_AUTONEG 0x0000L |
Definition at line 93 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define MEDIUM_SPEED_1000MBPS 0x0300L |
Definition at line 97 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_2500MBPS 0x0400L |
Definition at line 98 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define MEDIUM_SPEED_10GBPS 0x0600L |
Definition at line 99 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_25GBPS 0x0800L |
Definition at line 101 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_40GBPS 0x0900L |
Definition at line 102 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_50GBPS 0x0a00L |
Definition at line 103 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_100GBPS 0x0b00L |
Definition at line 104 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_200GBPS 0x0c00L |
Definition at line 105 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_50PAM4GBPS 0x0d00L |
Definition at line 106 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_100PAM4GBPS 0x0e00L |
Definition at line 107 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_100PAM4_112GBPS 0x0f00L |
Definition at line 108 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_200PAM4_112GBPS 0x1000L |
Definition at line 109 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_400PAM4GBPS 0x2000L |
Definition at line 110 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_400PAM4_112GBPS 0x3000L |
Definition at line 111 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_port_phy_cfg().
| #define MEDIUM_SPEED_AUTONEG_1G_FALLBACK 0x8000L /* Serdes */ |
| #define MEDIUM_SPEED_AUTONEG_2_5G_FALLBACK 0x8100L /* Serdes */ |
| #define MEDIUM_SPEED_HARDWARE_DEFAULT 0xff00L /* Serdes nvram def.*/ |
| #define GET_MEDIUM_SPEED | ( | m | ) |
Definition at line 116 of file bnxt.h.
Referenced by bnxt_hwrm_port_phy_cfg().
| #define SET_MEDIUM_SPEED | ( | bp, | |
| s ) |
Definition at line 117 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define MEDIUM_FULL_DUPLEX 0x00000L |
Definition at line 119 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define GET_MEDIUM_DUPLEX | ( | m | ) |
| #define SET_MEDIUM_DUPLEX | ( | bp, | |
| d ) |
Definition at line 122 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define GET_MEDIUM_AUTONEG_MODE | ( | m | ) |
| #define PCICFG_ME_REGISTER 0x98 |
Definition at line 125 of file bnxt.h.
Referenced by bnxt_get_pci_info().
| #define GRC_COM_CHAN_BASE 0 |
Definition at line 126 of file bnxt.h.
Referenced by hwrm_write_req().
| #define GRC_COM_CHAN_TRIG 0x100 |
Definition at line 127 of file bnxt.h.
Referenced by hwrm_write_req().
| #define HWRM_CMD_DEFAULT_TIMEOUT 500 /* in Miliseconds */ |
Definition at line 134 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get(), and bnxt_mm_init_hwrm().
| #define HWRM_CMD_POLL_WAIT_TIME 100 /* In MicroeSconds */ |
Definition at line 135 of file bnxt.h.
Referenced by wait_resp().
| #define HWRM_CMD_DEFAULT_MULTIPLAYER | ( | a | ) |
| #define HWRM_CMD_FLASH_MULTIPLAYER | ( | a | ) |
Definition at line 137 of file bnxt.h.
Referenced by bnxt_hwrm_nvm_get_variable_req().
| #define HWRM_CMD_FLASH_ERASE_MULTIPLAYER | ( | a | ) |
| #define HWRM_CMD_WAIT | ( | b | ) |
Definition at line 139 of file bnxt.h.
Referenced by bnxt_hwrm_backing_store_cfg(), bnxt_hwrm_error_recovery_req(), and bnxt_hwrm_func_reset_req().
| #define MAX_ETHERNET_PACKET_BUFFER_SIZE 1536 |
Definition at line 140 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), bnxt_mm_init_rings(), bnxt_mm_nic(), and bnxt_set_rx_desc().
| #define DEFAULT_NUMBER_OF_CMPL_RINGS 0x01 |
Definition at line 141 of file bnxt.h.
Referenced by bnxt_set_ring_info().
| #define DEFAULT_NUMBER_OF_TX_RINGS 0x01 |
Definition at line 142 of file bnxt.h.
Referenced by bnxt_set_ring_info().
| #define DEFAULT_NUMBER_OF_RX_RINGS 0x01 |
Definition at line 143 of file bnxt.h.
Referenced by bnxt_set_ring_info().
| #define DEFAULT_NUMBER_OF_RING_GRPS 0x01 |
Definition at line 144 of file bnxt.h.
Referenced by bnxt_set_ring_info().
| #define DEFAULT_NUMBER_OF_STAT_CTXS 0x01 |
Definition at line 145 of file bnxt.h.
Referenced by bnxt_set_ring_info().
| #define NUM_RX_BUFFERS 8 |
Definition at line 146 of file bnxt.h.
Referenced by bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define MAX_CQ_DESC_CNT 128 |
Definition at line 149 of file bnxt.h.
Referenced by bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define TX_RING_BUFFER_SIZE (MAX_TX_DESC_CNT * sizeof(struct tx_bd_short)) |
Definition at line 150 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem(), bnxt_free_rings_mem(), bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define RX_RING_BUFFER_SIZE (MAX_RX_DESC_CNT * sizeof(struct rx_prod_pkt_bd)) |
Definition at line 151 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem(), bnxt_free_rings_mem(), bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define CQ_RING_BUFFER_SIZE (MAX_CQ_DESC_CNT * sizeof(struct cmpl_base)) |
Definition at line 153 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem(), bnxt_free_rings_mem(), bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define BNXT_DMA_ALIGNMENT 256 |
Definition at line 154 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem().
| #define DMA_ALIGN_4K 4096 |
Definition at line 155 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem().
| #define REQ_BUFFER_SIZE 1024 |
Definition at line 156 of file bnxt.h.
Referenced by bnxt_alloc_hwrm_mem(), bnxt_free_hwrm_mem(), bnxt_hwrm_run(), and bnxt_mm_init_hwrm().
| #define RESP_BUFFER_SIZE 1024 |
Definition at line 157 of file bnxt.h.
Referenced by bnxt_alloc_hwrm_mem(), bnxt_free_hwrm_mem(), bnxt_hwrm_run(), and bnxt_mm_init_hwrm().
| #define DMA_BUFFER_SIZE 1024 |
Definition at line 158 of file bnxt.h.
Referenced by bnxt_alloc_hwrm_mem(), bnxt_free_hwrm_mem(), and bnxt_mm_init_hwrm().
| #define LM_PAGE_BITS | ( | a | ) |
| #define BNXT_RX_STD_DMA_SZ (1536 + 64 + 2) |
Definition at line 160 of file bnxt.h.
Referenced by bnxt_alloc_rx_iob().
| #define NEXT_IDX | ( | N, | |
| S ) |
Definition at line 161 of file bnxt.h.
Referenced by bnxt_post_rx_buffers(), bnxt_tx(), and bnxt_tx_complete().
| #define BD_NOW | ( | bd, | |
| entry, | |||
| len ) |
Definition at line 162 of file bnxt.h.
Referenced by bnxt_service_cq(), bnxt_service_nq(), and bnxt_set_txq().
| #define BNXT_CQ_INTR_MODE | ( | vf | ) |
Definition at line 163 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc().
| #define LINK_DEFAULT_TIMEOUT 1000 |
Definition at line 166 of file bnxt.h.
Referenced by bnxt_init_one(), and bnxt_mm_init_rings().
| #define LINK_POLL_WAIT_TIME 100 /* In Miliseconds */ |
Definition at line 167 of file bnxt.h.
Referenced by bnxt_get_phy_link().
| #define RX_MASK |
Definition at line 168 of file bnxt.h.
Referenced by bnxt_set_rx_mask().
| #define MAX_NQ_DESC_CNT 64 |
Definition at line 172 of file bnxt.h.
Referenced by bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define NQ_RING_BUFFER_SIZE (MAX_NQ_DESC_CNT * sizeof(struct cmpl_base)) |
Definition at line 173 of file bnxt.h.
Referenced by bnxt_alloc_rings_mem(), bnxt_free_rings_mem(), bnxt_mm_init_rings(), and bnxt_mm_nic().
| #define RX_RING_QID (FLAG_TEST(bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS) ? bp->queue_id : 0) |
Definition at line 174 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc().
| #define STAT_CTX_ID ((bp->vf || FLAG_TEST(bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS)) ? bp->stat_ctx_id : 0) |
Definition at line 175 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc().
| #define TX_AVAIL | ( | r | ) |
| #define TX_IN_USE | ( | a, | |
| b, | |||
| c ) |
| #define NQ_DMA_ADDR | ( | bp | ) |
Definition at line 178 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), and bnxt_service_nq().
| #define CQ_DMA_ADDR | ( | bp | ) |
Definition at line 179 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), bnxt_rx_complete(), and bnxt_service_cq().
| #define TX_DMA_ADDR | ( | bp | ) |
| #define RX_DMA_ADDR | ( | bp | ) |
| #define REQ_DMA_ADDR | ( | bp | ) |
Definition at line 182 of file bnxt.h.
Referenced by bnxt_hwrm_assign_resources(), bnxt_hwrm_backing_store_cfg(), bnxt_hwrm_backing_store_qcfg(), bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_cfa_l2_filter_free(), bnxt_hwrm_error_recovery_req(), bnxt_hwrm_func_cfg_req(), bnxt_hwrm_func_drv_rgtr(), bnxt_hwrm_func_drv_unrgtr(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_func_reset_req(), bnxt_hwrm_func_resource_qcaps(), bnxt_hwrm_nvm_get_variable_req(), bnxt_hwrm_port_mac_cfg(), bnxt_hwrm_port_phy_cfg(), bnxt_hwrm_port_phy_qcaps_req(), bnxt_hwrm_port_phy_qcfg(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_ring_free(), bnxt_hwrm_ring_free_grp(), bnxt_hwrm_run(), bnxt_hwrm_set_async_event(), bnxt_hwrm_set_rx_mask(), bnxt_hwrm_stat_ctx_alloc(), bnxt_hwrm_stat_ctx_free(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_alloc(), bnxt_hwrm_vnic_cfg(), bnxt_hwrm_vnic_free(), short_hwrm_cmd_req(), and wait_resp().
| #define RESP_DMA_ADDR | ( | bp | ) |
Definition at line 183 of file bnxt.h.
Referenced by bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_error_recovery_req(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_func_resource_qcaps(), bnxt_hwrm_port_phy_qcaps_req(), bnxt_hwrm_port_phy_qcfg(), bnxt_hwrm_queue_qportcfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_alloc_grp(), bnxt_hwrm_run(), bnxt_hwrm_stat_ctx_alloc(), bnxt_hwrm_ver_get(), bnxt_hwrm_vnic_alloc(), hwrm_init(), and wait_resp().
| #define DMA_DMA_ADDR | ( | bp | ) |
Definition at line 184 of file bnxt.h.
Referenced by bnxt_get_link_speed(), and bnxt_hwrm_nvm_get_variable_req().
| #define NO_MORE_NQ_BD_TO_SERVICE 1 |
Definition at line 185 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define SERVICE_NEXT_NQ_BD 0 |
Definition at line 186 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define NO_MORE_CQ_BD_TO_SERVICE 1 |
Definition at line 187 of file bnxt.h.
Referenced by bnxt_rx_complete(), and bnxt_service_cq().
| #define SERVICE_NEXT_CQ_BD 0 |
Definition at line 188 of file bnxt.h.
Referenced by bnxt_rx_complete(), and bnxt_service_cq().
| #define MAC_HDR_SIZE 12 |
Definition at line 189 of file bnxt.h.
Referenced by bnxt_add_vlan(), and bnxt_get_pkt_vlan().
| #define VLAN_HDR_SIZE 4 |
Definition at line 190 of file bnxt.h.
Referenced by bnxt_add_vlan().
| #define ETHERTYPE_VLAN 0x8100 |
Definition at line 191 of file bnxt.h.
Referenced by bnxt_add_vlan(), and bnxt_get_pkt_vlan().
| #define BYTE_SWAP_S | ( | w | ) |
Definition at line 192 of file bnxt.h.
Referenced by bnxt_add_vlan(), and bnxt_get_pkt_vlan().
| #define DB_OFFSET_PF 0x10000 |
Definition at line 195 of file bnxt.h.
Referenced by dev_p5_db().
| #define DB_OFFSET_VF 0x4000 |
Definition at line 196 of file bnxt.h.
Referenced by dev_p5_db().
| #define DBC_MSG_IDX | ( | idx | ) |
Definition at line 197 of file bnxt.h.
Referenced by dev_p5_db(), and dev_p7_db().
| #define DBC_MSG_XID | ( | xid, | |
| flg ) |
Definition at line 199 of file bnxt.h.
Referenced by dev_p5_db(), and dev_p7_db().
| #define DBC_MSG_EPCH | ( | idx | ) |
Definition at line 202 of file bnxt.h.
Referenced by dev_p7_db().
| #define DBC_MSG_TOGGLE | ( | idx | ) |
Definition at line 204 of file bnxt.h.
Referenced by dev_p7_db().
| #define PHY_STATUS 0x0001 |
Definition at line 206 of file bnxt.h.
Referenced by bnxt_get_link_state(), bnxt_get_phy_link(), bnxt_hwrm_port_phy_qcfg(), and bnxt_query_phy_link().
| #define PHY_SPEED 0x0002 |
Definition at line 207 of file bnxt.h.
Referenced by bnxt_get_phy_link(), bnxt_hwrm_port_phy_qcfg(), and bnxt_query_phy_link().
| #define DETECT_MEDIA 0x0004 |
Definition at line 208 of file bnxt.h.
Referenced by bnxt_get_phy_link(), bnxt_hwrm_port_phy_qcfg(), and bnxt_query_phy_link().
| #define SUPPORT_SPEEDS 0x0008 |
Definition at line 209 of file bnxt.h.
Referenced by bnxt_hwrm_port_phy_qcfg().
| #define SUPPORT_SPEEDS2 0x0010 |
Definition at line 210 of file bnxt.h.
Referenced by bnxt_hwrm_port_phy_qcfg().
| #define QCFG_PHY_ALL |
Definition at line 211 of file bnxt.h.
Referenced by bnxt_link_speed_chg_evt(), bnxt_link_speed_evt(), bnxt_port_phy_chg_evt(), and bnxt_query_phy_link().
| #define LINK_SPEED_DRV_NUM 203 |
Definition at line 220 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_NUM 205 |
Definition at line 286 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_MASK 0x00000780 |
Definition at line 287 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_AUTONEG (0x0L << 7) |
Definition at line 289 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_1G (0x1L << 7) |
Definition at line 291 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_10G (0x2L << 7) |
Definition at line 293 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_25G (0x3L << 7) |
Definition at line 295 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_40G (0x4L << 7) |
Definition at line 297 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_50G (0x5L << 7) |
Definition at line 299 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_100G (0x6L << 7) |
Definition at line 301 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_200G (0x7L << 7) |
Definition at line 303 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_50G_PAM4 (0x8L << 7) |
Definition at line 305 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_100G_PAM4 (0x9L << 7) |
Definition at line 307 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_100G_PAM4_112 (0xAL << 7) |
Definition at line 309 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_200G_PAM4_112 (0xBL << 7) |
Definition at line 311 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_400G_PAM4 (0xCL << 7) |
Definition at line 313 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_400G_PAM4_112 (0xDL << 7) |
Definition at line 315 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define LINK_SPEED_FW_2_5G (0xEL << 7) |
Definition at line 317 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define D3_LINK_SPEED_FW_NUM 210 |
Definition at line 322 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_NUM 213 |
Definition at line 360 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_MASK 0x02000000 |
| #define PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_DISABLED (0x0L << 25) |
| #define NS_PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_DISABLED (0x0) |
| #define PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_ENABLED (0x1L << 25) |
| #define NS_PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_ENABLED (0x1) |
| #define TX_DOORBELL_KEY_TX (0x0UL << 28) |
Definition at line 386 of file bnxt.h.
Referenced by bnxt_db_tx().
| #define TX_DOORBELL_KEY_LAST TX_DOORBELL_KEY_TX |
| #define RX_DOORBELL_KEY_RX (0x1UL << 28) |
Definition at line 396 of file bnxt.h.
Referenced by bnxt_db_rx().
| #define RX_DOORBELL_KEY_LAST RX_DOORBELL_KEY_RX |
| #define CMPL_DOORBELL_KEY_CMPL (0x2UL << 28) |
Definition at line 408 of file bnxt.h.
Referenced by bnxt_db_nq().
| #define CMPL_DOORBELL_KEY_LAST CMPL_DOORBELL_KEY_CMPL |
| #define DBC_DBC_PATH_LAST DBC_DBC_PATH_ENGINE |
| #define DBC_DBC_TYPE_SQ (0x0UL << 28) |
Definition at line 434 of file bnxt.h.
Referenced by bnxt_db_tx().
| #define DBC_DBC_TYPE_SRQ (0x2UL << 28) |
Definition at line 436 of file bnxt.h.
Referenced by bnxt_db_rx().
| #define DBC_DBC_TYPE_CQ (0x4UL << 28) |
Definition at line 438 of file bnxt.h.
Referenced by bnxt_db_cq().
| #define DBC_DBC_TYPE_NQ_ARM (0xbUL << 28) |
Definition at line 445 of file bnxt.h.
Referenced by bnxt_db_nq().
| #define DBC_DBC_TYPE_LAST DBC_DBC_TYPE_NULL |
| #define TX_BD_SHORT_TYPE_LAST TX_BD_SHORT_TYPE_TX_BD_SHORT |
| #define TX_BD_SHORT_FLAGS_LHINT_LT512 (0x0UL << 13) |
Definition at line 467 of file bnxt.h.
Referenced by bnxt_set_txq().
| #define TX_BD_SHORT_FLAGS_LHINT_LT1K (0x1UL << 13) |
Definition at line 468 of file bnxt.h.
Referenced by bnxt_set_txq().
| #define TX_BD_SHORT_FLAGS_LHINT_LT2K (0x2UL << 13) |
Definition at line 469 of file bnxt.h.
Referenced by bnxt_set_txq().
| #define TX_BD_SHORT_FLAGS_LHINT_GTE2K (0x3UL << 13) |
Definition at line 470 of file bnxt.h.
Referenced by bnxt_set_txq().
| #define TX_BD_SHORT_FLAGS_LHINT_LAST TX_BD_SHORT_FLAGS_LHINT_GTE2K |
| #define TX_CMPL_TYPE_LAST TX_CMPL_TYPE_TX_L2 |
| #define TX_CMPL_ERRORS_BUFFER_ERROR_LAST TX_CMPL_ERRORS_BUFFER_ERROR_BAD_FMT |
| #define CMPL_BASE_TYPE_MASK 0x3fUL |
Definition at line 522 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define CMPL_BASE_TYPE_TX_L2 0x0UL |
Definition at line 524 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define CMPL_BASE_TYPE_RX_L2 0x11UL |
Definition at line 525 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define CMPL_BASE_TYPE_RX_L2_V3 0x17UL |
Definition at line 529 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define CMPL_BASE_TYPE_STAT_EJECT 0x1aUL |
Definition at line 530 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define CMPL_BASE_TYPE_HWRM_ASYNC_EVENT 0x2eUL |
Definition at line 534 of file bnxt.h.
Referenced by bnxt_service_cq(), and bnxt_service_nq().
| #define CMPL_BASE_TYPE_LAST CMPL_BASE_TYPE_FUNC_EVENT |
| #define CMPL_BASE_V 0x1UL |
Definition at line 544 of file bnxt.h.
Referenced by bnxt_service_cq().
| #define NQ_CN_TYPE_MASK 0x3fUL |
Definition at line 570 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define NQ_CN_TOGGLE_MASK 0xc0UL |
Definition at line 572 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define NQ_CN_TOGGLE_SFT 6 |
Definition at line 573 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define NQ_CN_TYPE_CQ_NOTIFICATION 0x30UL |
Definition at line 575 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define NQ_CN_TYPE_LAST NQ_CN_TYPE_CQ_NOTIFICATION |
| #define NQ_CN_V 0x1UL |
Definition at line 589 of file bnxt.h.
Referenced by bnxt_service_nq().
| #define RX_PKT_CMPL_TYPE_LAST RX_PKT_CMPL_TYPE_RX_L2 |
| #define RX_PKT_CMPL_FLAGS_PLACEMENT_LAST RX_PKT_CMPL_FLAGS_PLACEMENT_HDS |
| #define RX_PKT_CMPL_FLAGS_ITYPE_PTP_WO_TIMESTAMP (0x8UL << 12) |
| #define RX_PKT_CMPL_FLAGS_ITYPE_PTP_W_TIMESTAMP (0x9UL << 12) |
| #define RX_PKT_CMPL_FLAGS_ITYPE_LAST RX_PKT_CMPL_FLAGS_ITYPE_PTP_W_TIMESTAMP |
| #define RX_PKT_CMPL_FLAGS2_META_FORMAT_LAST RX_PKT_CMPL_FLAGS2_META_FORMAT_VLAN |
| #define RX_PKT_CMPL_V2 0x1UL |
Definition at line 672 of file bnxt.h.
Referenced by bnxt_rx_complete().
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_SFT 1 |
Definition at line 676 of file bnxt.h.
Referenced by bnxt_rx_drop().
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_NO_BUFFER (0x0UL << 1) |
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_DID_NOT_FIT (0x1UL << 1) |
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_NOT_ON_CHIP (0x2UL << 1) |
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_BAD_FORMAT (0x3UL << 1) |
| #define RX_PKT_CMPL_ERRORS_BUFFER_ERROR_LAST RX_PKT_CMPL_ERRORS_BUFFER_ERROR_BAD_FORMAT |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_L3_BAD_VERSION (0x1UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_L3_BAD_HDR_LEN (0x2UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_TUNNEL_TOTAL_ERROR (0x3UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_IP_TOTAL_ERROR (0x4UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_UDP_TOTAL_ERROR (0x5UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_L3_BAD_TTL (0x6UL << 9) |
| #define RX_PKT_CMPL_ERRORS_T_PKT_ERROR_LAST RX_PKT_CMPL_ERRORS_T_PKT_ERROR_T_L3_BAD_TTL |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L3_BAD_VERSION (0x1UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L3_BAD_HDR_LEN (0x2UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L3_BAD_TTL (0x3UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_IP_TOTAL_ERROR (0x4UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_UDP_TOTAL_ERROR (0x5UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L4_BAD_HDR_LEN (0x6UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L4_BAD_HDR_LEN_TOO_SMALL (0x7UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_L4_BAD_OPT_LEN (0x8UL << 12) |
| #define RX_PKT_CMPL_ERRORS_PKT_ERROR_LAST RX_PKT_CMPL_ERRORS_PKT_ERROR_L4_BAD_OPT_LEN |
| #define RX_PKT_V3_CMPL_TYPE_MASK 0x3fUL |
Definition at line 720 of file bnxt.h.
Referenced by bnxt_rx_drop().
| #define RX_PKT_V3_CMPL_TYPE_RX_L2_V3 0x17UL |
Definition at line 728 of file bnxt.h.
Referenced by bnxt_rx_drop().
| #define RX_PKT_V3_CMPL_TYPE_LAST RX_PKT_V3_CMPL_TYPE_RX_L2_V3 |
| #define RX_PKT_V3_CMPL_FLAGS_PLACEMENT_TRUNCATION (0x3UL << 7) |
| #define RX_PKT_V3_CMPL_FLAGS_PLACEMENT_LAST RX_PKT_V3_CMPL_FLAGS_PLACEMENT_TRUNCATION |
| #define RX_PKT_V3_CMPL_FLAGS_ITYPE_PTP_WO_TIMESTAMP (0x8UL << 12) |
| #define RX_PKT_V3_CMPL_FLAGS_ITYPE_PTP_W_TIMESTAMP (0x9UL << 12) |
| #define RX_PKT_V3_CMPL_FLAGS_ITYPE_LAST RX_PKT_V3_CMPL_FLAGS_ITYPE_PTP_W_TIMESTAMP |
| #define RX_PKT_V3_CMPL_RSS_HASH_TYPE_LAST RX_PKT_V3_CMPL_RSS_HASH_TYPE_ENUM_14 |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPID88A8 (0x0UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPID8100 (0x1UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPID9100 (0x2UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPID9200 (0x3UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPID9300 (0x4UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPIDCFG (0x5UL << 12) |
| #define RX_PKT_V3_CMPL_METADATA1_TPID_SEL_LAST RX_PKT_V3_CMPL_METADATA1_TPID_SEL_TPIDCFG |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_NONE (0x0UL << 4) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_ACT_REC_PTR (0x1UL << 4) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_TUNNEL_ID (0x2UL << 4) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_CHDR_DATA (0x3UL << 4) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_HDR_OFFSET (0x4UL << 4) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_LAST RX_PKT_V3_CMPL_HI_FLAGS2_META_FORMAT_HDR_OFFSET |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_COMPLETE_CHECKSUM_CALC 0x200UL |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_T_IP_TYPE_IPV4 (0x0UL << 10) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_T_IP_TYPE_IPV6 (0x1UL << 10) |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_T_IP_TYPE_LAST RX_PKT_V3_CMPL_HI_FLAGS2_T_IP_TYPE_IPV6 |
| #define RX_PKT_V3_CMPL_HI_FLAGS2_COMPLETE_CHECKSUM_MASK 0xffff0000UL |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_SFT 1 |
Definition at line 824 of file bnxt.h.
Referenced by bnxt_rx_drop().
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_NO_BUFFER (0x0UL << 1) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_DID_NOT_FIT (0x1UL << 1) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_NOT_ON_CHIP (0x2UL << 1) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_BAD_FORMAT (0x3UL << 1) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_FLUSH (0x5UL << 1) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_LAST RX_PKT_V3_CMPL_HI_ERRORS_BUFFER_ERROR_FLUSH |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_NO_ERROR (0x0UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_L3_BAD_VERSION (0x1UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_L3_BAD_HDR_LEN (0x2UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_IP_TOTAL_ERROR (0x3UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_UDP_TOTAL_ERROR (0x4UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_L3_BAD_TTL (0x5UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_TOTAL_ERROR (0x6UL << 9) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_LAST RX_PKT_V3_CMPL_HI_ERRORS_T_PKT_ERROR_T_TOTAL_ERROR |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_NO_ERROR (0x0UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L3_BAD_VERSION (0x1UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L3_BAD_HDR_LEN (0x2UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L3_BAD_TTL (0x3UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_IP_TOTAL_ERROR (0x4UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_UDP_TOTAL_ERROR (0x5UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L4_BAD_HDR_LEN (0x6UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L4_BAD_HDR_LEN_TOO_SMALL (0x7UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L4_BAD_OPT_LEN (0x8UL << 12) |
| #define RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_LAST RX_PKT_V3_CMPL_HI_ERRORS_PKT_ERROR_L4_BAD_OPT_LEN |
| #define RX_PROD_PKT_BD_TYPE_RX_PROD_PKT 0x4UL |
Definition at line 872 of file bnxt.h.
Referenced by bnxt_set_rx_desc().
| #define RX_PROD_PKT_BD_TYPE_LAST RX_PROD_PKT_BD_TYPE_RX_PROD_PKT |
| #define VALID_DRIVER_REG 0x0001 |
Definition at line 901 of file bnxt.h.
Referenced by bnxt_hwrm_func_drv_rgtr(), and bnxt_hwrm_func_drv_unrgtr().
| #define VALID_STAT_CTX 0x0002 |
Definition at line 902 of file bnxt.h.
Referenced by bnxt_hwrm_stat_ctx_alloc(), and bnxt_hwrm_stat_ctx_free().
| #define VALID_RING_CQ 0x0004 |
Definition at line 903 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), and bnxt_hwrm_ring_free_cq().
| #define VALID_RING_TX 0x0008 |
Definition at line 904 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), and bnxt_hwrm_ring_free_tx().
| #define VALID_RING_RX 0x0010 |
Definition at line 905 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), and bnxt_hwrm_ring_free_rx().
| #define VALID_RING_GRP 0x0020 |
Definition at line 906 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc_grp(), and bnxt_hwrm_ring_free_grp().
| #define VALID_VNIC_ID 0x0040 |
Definition at line 907 of file bnxt.h.
Referenced by bnxt_hwrm_vnic_alloc(), and bnxt_hwrm_vnic_free().
| #define VALID_RX_IOB 0x0080 |
Definition at line 908 of file bnxt.h.
Referenced by bnxt_free_rx_iob(), and bnxt_post_rx_buffers().
| #define VALID_L2_FILTER 0x0100 |
Definition at line 909 of file bnxt.h.
Referenced by bnxt_hwrm_cfa_l2_filter_alloc(), and bnxt_hwrm_cfa_l2_filter_free().
| #define VALID_RING_NQ 0x0200 |
Definition at line 910 of file bnxt.h.
Referenced by bnxt_hwrm_ring_alloc(), and bnxt_hwrm_ring_free_nq().
| #define ER_DFLT_FW_RST_MIN_DSECS 20 |
Definition at line 942 of file bnxt.h.
Referenced by bnxt_process_reset_notify_event().
| #define ER_DFLT_FW_RST_MAX_DSECS 60 |
Definition at line 943 of file bnxt.h.
Referenced by bnxt_process_reset_notify_event().
| #define FW_STATUS_REG_CODE_READY 0x8000UL |
Definition at line 944 of file bnxt.h.
Referenced by bnxt_er_task().
| #define SHORT_CMD_SUPPORTED VER_GET_RESP_DEV_CAPS_CFG_SHORT_CMD_SUPPORTED |
Definition at line 1064 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define SHORT_CMD_REQUIRED VER_GET_RESP_DEV_CAPS_CFG_SHORT_CMD_REQUIRED |
Definition at line 1065 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define CQ_DOORBELL_KEY_MASK | ( | a | ) |
| #define CQ_DOORBELL_KEY_IDX | ( | a | ) |
Definition at line 1071 of file bnxt.h.
Referenced by bnxt_db_cq().
| #define TX_BD_FLAGS |
Definition at line 1075 of file bnxt.h.
Referenced by bnxt_set_txq().
| #define PORT_PHY_FLAGS |
Definition at line 1080 of file bnxt.h.
Referenced by bnxt_query_phy_link().
Definition at line 1083 of file bnxt.h.
Referenced by bnxt_hwrm_ring_free_cq(), bnxt_hwrm_ring_free_nq(), bnxt_hwrm_ring_free_rx(), and bnxt_hwrm_ring_free_tx().
| #define SET_LINK | ( | p, | |
| m, | |||
| s ) |
Definition at line 1084 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define SPEED_DRV_MASK LINK_SPEED_DRV_MASK |
Definition at line 1086 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define SPEED_DRV_SHIFT LINK_SPEED_DRV_SHIFT |
Definition at line 1087 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define SPEED_FW_MASK LINK_SPEED_FW_MASK |
Definition at line 1088 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define SPEED_FW_SHIFT LINK_SPEED_FW_SHIFT |
Definition at line 1089 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define D3_SPEED_FW_MASK D3_LINK_SPEED_FW_MASK |
Definition at line 1090 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define D3_SPEED_FW_SHIFT D3_LINK_SPEED_FW_SHIFT |
Definition at line 1091 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define MEDIA_AUTO_DETECT_MASK PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_MASK |
Definition at line 1092 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define MEDIA_AUTO_DETECT_SHIFT PORT_CFG_LINK_SETTINGS_MEDIA_AUTO_DETECT_SHIFT |
Definition at line 1093 of file bnxt.h.
Referenced by bnxt_get_link_speed().
| #define VLAN_MASK FUNC_CFG_PRE_BOOT_MBA_VLAN_MASK |
| #define VLAN_SHIFT FUNC_CFG_PRE_BOOT_MBA_VLAN_SHIFT |
| #define VLAN_VALUE_MASK FUNC_CFG_PRE_BOOT_MBA_VLAN_VALUE_MASK |
| #define VLAN_VALUE_SHIFT FUNC_CFG_PRE_BOOT_MBA_VLAN_VALUE_SHIFT |
| #define VF_CFG_ENABLE_FLAGS |
Definition at line 1098 of file bnxt.h.
Referenced by bnxt_hwrm_set_async_event().
| #define CHIP_NUM_57508 0x1750 |
Definition at line 1104 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define CHIP_NUM_57504 0x1751 |
Definition at line 1105 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define CHIP_NUM_57502 0x1752 |
Definition at line 1106 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define CHIP_NUM_57608 0x1760 |
Definition at line 1108 of file bnxt.h.
Referenced by bnxt_hwrm_ver_get().
| #define BNXT_ER_TIMER_INTERVAL | ( | x | ) |
Definition at line 1109 of file bnxt.h.
Referenced by bnxt_er_task_timer(), and bnxt_process_er_event().
| #define BNXT_ER_WAIT_TIMER_INTERVAL | ( | x | ) |
Definition at line 1110 of file bnxt.h.
Referenced by bnxt_er_task().