iPXE
|
Intel 100 Gigabit Ethernet network card driver. More...
Go to the source code of this file.
Data Structures | |
struct | ice_context_tx |
Transmit queue context. More... | |
struct | ice_schedule_tx |
Transmit scheduler configuration. More... | |
struct | ice_admin_version |
Admin queue version number. More... | |
struct | ice_admin_version_params |
Admin queue Get Version command parameters. More... | |
struct | ice_admin_mac_read_params |
Admin queue Manage MAC Address Read command parameters. More... | |
struct | ice_admin_mac_read_address |
MAC Address description. More... | |
struct | ice_admin_mac_read_buffer |
Admin queue Manage MAC Address Read data buffer. More... | |
struct | ice_admin_mac_write_params |
Admin queue Manage MAC Address Write command parameters. More... | |
struct | ice_admin_switch_params |
Admin queue Get Switch Configuration command parameters. More... | |
struct | ice_admin_switch_config |
Switching element configuration. More... | |
struct | ice_admin_switch_buffer |
Admin queue Get Switch Configuration data buffer. More... | |
struct | ice_admin_rules_params |
Admin queue Add Switch Rules command parameters. More... | |
struct | ice_admin_rules_buffer |
Admin queue Add Switch Rules data buffer. More... | |
struct | ice_admin_schedule_params |
Admin queue Query Default Scheduling Tree Topology command parameters. More... | |
struct | ice_admin_schedule_node |
Admin queue Query Default Scheduling Tree Topology node. More... | |
struct | ice_admin_schedule_branch |
Admin queue Query Default Scheduling Tree Topology branch. More... | |
union | ice_admin_schedule_buffer |
Admin queue Query Default Scheduling Tree Topology data buffer. More... | |
struct | ice_admin_autoneg_params |
Admin queue Restart Autonegotiation command parameters. More... | |
struct | ice_admin_link_params |
Admin queue Get Link Status command parameters. More... | |
struct | ice_admin_link_buffer |
Admin queue Get Link Status data buffer. More... | |
struct | ice_admin_add_txq_params |
Admin queue Add Transmit Queues command parameters. More... | |
struct | ice_admin_add_txq_buffer |
Admin queue Add Transmit Queues data buffer. More... | |
struct | ice_admin_disable_txq_params |
Admin queue Disable Transmit Queues command parameters. More... | |
struct | ice_admin_disable_txq_buffer |
Admin queue Disable Transmit Queues data buffer. More... | |
union | ice_admin_params |
Admin queue command parameters. More... | |
union | ice_admin_buffer |
Admin queue data buffer. More... | |
struct | ice_admin_descriptor |
Admin queue descriptor. More... | |
Macros | |
#define | ICE_BAR_SIZE 0x800000 |
BAR size. More... | |
#define | ICE_QRX_CTRL 0x120000 |
Global Receive Queue Control Register. More... | |
#define | ICE_QRX_CONTEXT(x) ( 0x280000 + ( 0x2000 * (x) ) ) |
Receive Queue Context Registers. More... | |
#define | ICE_QRX_TAIL 0x290000 |
Receive Queue Tail Register. More... | |
#define | ICE_QTX_COMM_DBELL 0x2c0000 |
Transmit Comm Scheduler Queue Doorbell Register. More... | |
#define | ICE_GLCOMM_QTX_CNTX_DATA(x) ( 0x2d2d40 + ( 0x4 * (x) ) ) |
Transmit Comm Scheduler Queue Context Data Registers. More... | |
#define | ICE_GLCOMM_QTX_CNTX_CTL 0x2d2dc8 |
Transmit Comm Scheduler Queue Context Control Register. More... | |
#define | ICE_GLCOMM_QTX_CNTX_CTL_CMD(x) ( (x) << 16 ) |
Command. More... | |
#define | ICE_GLCOMM_QTX_CNTX_CTL_CMD_READ ICE_GLCOMM_QTX_CNTX_CTL_CMD ( 0 ) |
Read context. More... | |
#define | ICE_GLCOMM_QTX_CNTX_CTL_EXEC 0x00080000UL |
Execute. More... | |
#define | ICE_GLCOMM_QTX_CNTX_STAT 0x2d2dcc |
Transmit Comm Scheduler Queue Context Status Register. More... | |
#define | ICE_GLCOMM_QTX_CNTX_BUSY 0x00000001UL |
In progress. More... | |
#define | ICE_QRX_FLXP_CNTXT 0x480000 |
Queue Context Flex Extension Register. More... | |
#define | ICE_QRX_FLXP_CNTXT_RXDID_IDX(x) ( (x) << 0 ) |
RX profile. More... | |
#define | ICE_QRX_FLXP_CNTXT_RXDID_IDX_LEGACY_32 ICE_QRX_FLXP_CNTXT_RXDID_IDX ( 1 ) |
32-byte legacy More... | |
#define | ICE_QRX_FLXP_CNTXT_RXDID_PRIO(x) ( (x) << 8 ) |
Priority. More... | |
#define | ICE_QRX_FLXP_CNTXT_RXDID_PRIO_MAX ICE_QRX_FLXP_CNTXT_RXDID_PRIO ( 7 ) |
Maximum priority. More... | |
#define | ICE_ADMIN_MAC_READ_TYPE_LAN 0 |
LAN MAC address type. More... | |
#define | ICE_ADMIN_SWITCH_TYPE_MASK 0xc000 |
Switching element ID type mask. More... | |
#define | ICE_ADMIN_SWITCH_TYPE_VSI 0x8000 |
Virtual Station Interface element type. More... | |
#define | ICE_ADMIN_ADD_RULES 0x02a0 |
Admin queue Add Switch Rules command. More... | |
#define | ICE_ADMIN_RULES_RECIPE_PROMISC 0x0003 |
Switch rule promiscuous recipe ID. More... | |
#define | ICE_ADMIN_RULES_ACTION_VALID 0x00020000UL |
Switch rule action valid. More... | |
#define | ICE_ADMIN_RULES_ACTION_VSI(x) ( (x) << 4 ) |
Switch rule VSI number. More... | |
#define | ICE_ADMIN_SCHEDULE 0x0400 |
Admin queue Query Default Scheduling Tree Topology command. More... | |
#define | ICE_SCHEDULE_GENERIC 0x01 |
Transmit scheduler configuration generic section is valid. More... | |
#define | ICE_SCHEDULE_COMMIT 0x02 |
Transmit scheduler configuration committed bandwidth section is valid. More... | |
#define | ICE_SCHEDULE_EXCESS 0x04 |
Transmit scheduler configuration excess bandwidth section is valid. More... | |
#define | ICE_SCHEDULE_WEIGHT 0x0004 |
Transmit scheduler configuration default weight. More... | |
#define | ICE_ADMIN_ADD_TXQ 0x0c30 |
Admin queue Add Transmit Queues command. More... | |
#define | ICE_TXQ_BASE_PORT(addr, port) ( ( (addr) >> 7 ) | ( ( ( uint64_t ) (port) ) << 57 ) ) |
Transmit queue base address and port number. More... | |
#define | ICE_TXQ_PF_TYPE(pf) ( ( (pf) << 1 ) | ( 0x2 << 14 ) ) |
Transmit queue PF number. More... | |
#define | ICE_TXQ_LEN(count) ( (count) >> 1 ) |
Transmit queue length. More... | |
#define | ICE_TXQ_FL_TSO 0x0001 |
Transmit queue uses TSO. More... | |
#define | ICE_TXQ_FL_LEGACY 0x1000 |
Transmit queue uses legacy mode. More... | |
#define | ICE_ADMIN_DISABLE_TXQ 0x0c31 |
Admin queue Disable Transmit Queues command. More... | |
#define | ICE_TXQ_FL_FLUSH 0x08 |
Disable queue and flush pipe. More... | |
#define | ICE_TXQ_TIMEOUT 0xc8 |
Disable queue timeout. More... | |
#define | ICE_PFFUNC_RID 0x09e880 |
Function Requester ID Information Register. More... | |
#define | ICE_PFFUNC_RID_FUNC_NUM(x) ( ( (x) >> 0 ) & 0x7 ) |
Function number. More... | |
#define | ICE_PFGEN_PORTNUM 0x1d2400 |
PF LAN Port Number Register. More... | |
#define | ICE_PFGEN_PORTNUM_PORT_NUM(x) ( ( (x) >> 0 ) & 0x7 ) |
Port number. More... | |
#define | ICE_QINT_TQCTL 0x140000 |
Transmit Queue Interrupt Cause Control Register. More... | |
#define | ICE_QINT_TQCTL_ITR_INDX(x) ( (x) << 11 ) |
Throttling. More... | |
#define | ICE_QINT_TQCTL_ITR_INDX_NONE ICE_QINT_TQCTL_ITR_INDX ( 0x3 ) |
No throttling. More... | |
#define | ICE_QINT_TQCTL_CAUSE_ENA 0x40000000UL |
Enable. More... | |
#define | ICE_QINT_RQCTL 0x150000 |
Receive Queue Interrupt Cause Control Register. More... | |
#define | ICE_QINT_RQCTL_ITR_INDX(x) ( (x) << 11 ) |
Throttling. More... | |
#define | ICE_QINT_RQCTL_ITR_INDX_NONE ICE_QINT_RQCTL_ITR_INDX ( 0x3 ) |
No throttling. More... | |
#define | ICE_QINT_RQCTL_CAUSE_ENA 0x40000000UL |
Enable. More... | |
#define | ICE_GLINT_DYN_CTL 0x160000 |
Global Interrupt Dynamic Control Register. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
struct ice_admin_descriptor * | ice_admin_command_descriptor (struct intelxl_nic *intelxl) |
Get next admin command queue descriptor. More... | |
static union ice_admin_buffer * | ice_admin_command_buffer (struct intelxl_nic *intelxl) |
Get next admin command queue data buffer. More... | |
Intel 100 Gigabit Ethernet network card driver.
Definition in file ice.h.
#define ICE_QRX_CTRL 0x120000 |
#define ICE_QRX_CONTEXT | ( | x | ) | ( 0x280000 + ( 0x2000 * (x) ) ) |
#define ICE_QTX_COMM_DBELL 0x2c0000 |
#define ICE_GLCOMM_QTX_CNTX_DATA | ( | x | ) | ( 0x2d2d40 + ( 0x4 * (x) ) ) |
#define ICE_GLCOMM_QTX_CNTX_CTL 0x2d2dc8 |
#define ICE_GLCOMM_QTX_CNTX_CTL_CMD | ( | x | ) | ( (x) << 16 ) |
#define ICE_GLCOMM_QTX_CNTX_CTL_CMD_READ ICE_GLCOMM_QTX_CNTX_CTL_CMD ( 0 ) |
#define ICE_GLCOMM_QTX_CNTX_STAT 0x2d2dcc |
#define ICE_QRX_FLXP_CNTXT 0x480000 |
#define ICE_QRX_FLXP_CNTXT_RXDID_IDX | ( | x | ) | ( (x) << 0 ) |
#define ICE_QRX_FLXP_CNTXT_RXDID_IDX_LEGACY_32 ICE_QRX_FLXP_CNTXT_RXDID_IDX ( 1 ) |
#define ICE_QRX_FLXP_CNTXT_RXDID_PRIO | ( | x | ) | ( (x) << 8 ) |
#define ICE_QRX_FLXP_CNTXT_RXDID_PRIO_MAX ICE_QRX_FLXP_CNTXT_RXDID_PRIO ( 7 ) |
#define ICE_ADMIN_SWITCH_TYPE_MASK 0xc000 |
#define ICE_ADMIN_SWITCH_TYPE_VSI 0x8000 |
#define ICE_ADMIN_ADD_RULES 0x02a0 |
#define ICE_ADMIN_RULES_RECIPE_PROMISC 0x0003 |
#define ICE_ADMIN_RULES_ACTION_VALID 0x00020000UL |
#define ICE_ADMIN_RULES_ACTION_VSI | ( | x | ) | ( (x) << 4 ) |
#define ICE_ADMIN_SCHEDULE 0x0400 |
#define ICE_SCHEDULE_GENERIC 0x01 |
#define ICE_SCHEDULE_COMMIT 0x02 |
#define ICE_SCHEDULE_EXCESS 0x04 |
#define ICE_SCHEDULE_WEIGHT 0x0004 |
#define ICE_ADMIN_ADD_TXQ 0x0c30 |
#define ICE_TXQ_PF_TYPE | ( | pf | ) | ( ( (pf) << 1 ) | ( 0x2 << 14 ) ) |
#define ICE_TXQ_FL_LEGACY 0x1000 |
#define ICE_ADMIN_DISABLE_TXQ 0x0c31 |
#define ICE_PFFUNC_RID 0x09e880 |
#define ICE_PFFUNC_RID_FUNC_NUM | ( | x | ) | ( ( (x) >> 0 ) & 0x7 ) |
#define ICE_PFGEN_PORTNUM 0x1d2400 |
#define ICE_PFGEN_PORTNUM_PORT_NUM | ( | x | ) | ( ( (x) >> 0 ) & 0x7 ) |
#define ICE_QINT_TQCTL 0x140000 |
#define ICE_QINT_TQCTL_ITR_INDX | ( | x | ) | ( (x) << 11 ) |
#define ICE_QINT_TQCTL_ITR_INDX_NONE ICE_QINT_TQCTL_ITR_INDX ( 0x3 ) |
#define ICE_QINT_RQCTL 0x150000 |
#define ICE_QINT_RQCTL_ITR_INDX | ( | x | ) | ( (x) << 11 ) |
#define ICE_QINT_RQCTL_ITR_INDX_NONE ICE_QINT_RQCTL_ITR_INDX ( 0x3 ) |
#define ICE_GLINT_DYN_CTL 0x160000 |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
struct ice_admin_descriptor* ice_admin_command_descriptor | ( | struct intelxl_nic * | intelxl | ) |
Get next admin command queue descriptor.
intelxl | Intel device |
cmd | Command descriptor |
Definition at line 510 of file ice.h.
References container_of, and intelxl_admin_command_descriptor().
Referenced by ice_admin_add_txq(), ice_admin_autoneg(), ice_admin_disable_txq(), ice_admin_link(), ice_admin_mac_read(), ice_admin_mac_write(), ice_admin_rules(), ice_admin_schedule(), ice_admin_switch(), and ice_admin_version().
|
static |
Get next admin command queue data buffer.
intelxl | Intel device |
buf | Data buffer |
Definition at line 524 of file ice.h.
References container_of, and intelxl_admin_command_buffer().
Referenced by ice_admin_add_txq(), ice_admin_disable_txq(), ice_admin_link(), ice_admin_mac_read(), ice_admin_rules(), ice_admin_schedule(), and ice_admin_switch().