|
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. | |
| #define | ICE_QRX_CTRL 0x120000 |
| Global Receive Queue Control Register. | |
| #define | ICE_QRX_CONTEXT(x) |
| Receive Queue Context Registers. | |
| #define | ICE_QRX_TAIL 0x290000 |
| Receive Queue Tail Register. | |
| #define | ICE_QTX_COMM_DBELL 0x2c0000 |
| Transmit Comm Scheduler Queue Doorbell Register. | |
| #define | ICE_GLCOMM_QTX_CNTX_DATA(x) |
| Transmit Comm Scheduler Queue Context Data Registers. | |
| #define | ICE_GLCOMM_QTX_CNTX_CTL 0x2d2dc8 |
| Transmit Comm Scheduler Queue Context Control Register. | |
| #define | ICE_GLCOMM_QTX_CNTX_CTL_CMD(x) |
| Command. | |
| #define | ICE_GLCOMM_QTX_CNTX_CTL_CMD_READ ICE_GLCOMM_QTX_CNTX_CTL_CMD ( 0 ) |
| Read context. | |
| #define | ICE_GLCOMM_QTX_CNTX_CTL_EXEC 0x00080000UL |
| Execute. | |
| #define | ICE_GLCOMM_QTX_CNTX_STAT 0x2d2dcc |
| Transmit Comm Scheduler Queue Context Status Register. | |
| #define | ICE_GLCOMM_QTX_CNTX_BUSY 0x00000001UL |
| In progress. | |
| #define | ICE_QRX_FLXP_CNTXT 0x480000 |
| Queue Context Flex Extension Register. | |
| #define | ICE_QRX_FLXP_CNTXT_RXDID_IDX(x) |
| RX profile. | |
| #define | ICE_QRX_FLXP_CNTXT_RXDID_IDX_LEGACY_32 ICE_QRX_FLXP_CNTXT_RXDID_IDX ( 1 ) |
| 32-byte legacy | |
| #define | ICE_QRX_FLXP_CNTXT_RXDID_PRIO(x) |
| Priority. | |
| #define | ICE_QRX_FLXP_CNTXT_RXDID_PRIO_MAX ICE_QRX_FLXP_CNTXT_RXDID_PRIO ( 7 ) |
| Maximum priority. | |
| #define | ICE_ADMIN_MAC_READ_TYPE_LAN 0 |
| LAN MAC address type. | |
| #define | ICE_ADMIN_SWITCH_TYPE_MASK 0xc000 |
| Switching element ID type mask. | |
| #define | ICE_ADMIN_SWITCH_TYPE_VSI 0x8000 |
| Virtual Station Interface element type. | |
| #define | ICE_ADMIN_ADD_RULES 0x02a0 |
| Admin queue Add Switch Rules command. | |
| #define | ICE_ADMIN_RULES_RECIPE_PROMISC 0x0003 |
| Switch rule promiscuous recipe ID. | |
| #define | ICE_ADMIN_RULES_ACTION_VALID 0x00020000UL |
| Switch rule action valid. | |
| #define | ICE_ADMIN_RULES_ACTION_VSI(x) |
| Switch rule VSI number. | |
| #define | ICE_ADMIN_SCHEDULE 0x0400 |
| Admin queue Query Default Scheduling Tree Topology command. | |
| #define | ICE_SCHEDULE_GENERIC 0x01 |
| Transmit scheduler configuration generic section is valid. | |
| #define | ICE_SCHEDULE_COMMIT 0x02 |
| Transmit scheduler configuration committed bandwidth section is valid. | |
| #define | ICE_SCHEDULE_EXCESS 0x04 |
| Transmit scheduler configuration excess bandwidth section is valid. | |
| #define | ICE_SCHEDULE_WEIGHT 0x0004 |
| Transmit scheduler configuration default weight. | |
| #define | ICE_ADMIN_ADD_TXQ 0x0c30 |
| Admin queue Add Transmit Queues command. | |
| #define | ICE_TXQ_BASE_PORT(addr, port) |
| Transmit queue base address and port number. | |
| #define | ICE_TXQ_PF_TYPE(pf) |
| Transmit queue PF number. | |
| #define | ICE_TXQ_LEN(count) |
| Transmit queue length. | |
| #define | ICE_TXQ_FL_TSO 0x0001 |
| Transmit queue uses TSO. | |
| #define | ICE_TXQ_FL_LEGACY 0x1000 |
| Transmit queue uses legacy mode. | |
| #define | ICE_ADMIN_DISABLE_TXQ 0x0c31 |
| Admin queue Disable Transmit Queues command. | |
| #define | ICE_TXQ_FL_FLUSH 0x08 |
| Disable queue and flush pipe. | |
| #define | ICE_TXQ_TIMEOUT 0xc8 |
| Disable queue timeout. | |
| #define | ICE_PFFUNC_RID 0x09e880 |
| Function Requester ID Information Register. | |
| #define | ICE_PFFUNC_RID_FUNC_NUM(x) |
| Function number. | |
| #define | ICE_PFGEN_PORTNUM 0x1d2400 |
| PF LAN Port Number Register. | |
| #define | ICE_PFGEN_PORTNUM_PORT_NUM(x) |
| Port number. | |
| #define | ICE_QINT_TQCTL 0x140000 |
| Transmit Queue Interrupt Cause Control Register. | |
| #define | ICE_QINT_TQCTL_ITR_INDX(x) |
| Throttling. | |
| #define | ICE_QINT_TQCTL_ITR_INDX_NONE ICE_QINT_TQCTL_ITR_INDX ( 0x3 ) |
| No throttling. | |
| #define | ICE_QINT_TQCTL_CAUSE_ENA 0x40000000UL |
| Enable. | |
| #define | ICE_QINT_RQCTL 0x150000 |
| Receive Queue Interrupt Cause Control Register. | |
| #define | ICE_QINT_RQCTL_ITR_INDX(x) |
| Throttling. | |
| #define | ICE_QINT_RQCTL_ITR_INDX_NONE ICE_QINT_RQCTL_ITR_INDX ( 0x3 ) |
| No throttling. | |
| #define | ICE_QINT_RQCTL_CAUSE_ENA 0x40000000UL |
| Enable. | |
| #define | ICE_GLINT_DYN_CTL 0x160000 |
| Global Interrupt Dynamic Control Register. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| struct ice_admin_descriptor * | ice_admin_command_descriptor (struct intelxl_nic *intelxl) |
| Get next admin command queue descriptor. | |
| static union ice_admin_buffer * | ice_admin_command_buffer (struct intelxl_nic *intelxl) |
| Get next admin command queue data buffer. | |
Intel 100 Gigabit Ethernet network card driver.
Definition in file ice.h.
| #define ICE_BAR_SIZE 0x800000 |
| #define ICE_QRX_CTRL 0x120000 |
Global Receive Queue Control Register.
Definition at line 69 of file ice.h.
Referenced by ice_probe().
| #define ICE_QRX_CONTEXT | ( | x | ) |
Receive Queue Context Registers.
Definition at line 72 of file ice.h.
Referenced by ice_context_rx(), and ice_dump_rx().
| #define ICE_QRX_TAIL 0x290000 |
| #define ICE_QTX_COMM_DBELL 0x2c0000 |
Transmit Comm Scheduler Queue Doorbell Register.
Definition at line 78 of file ice.h.
Referenced by ice_probe().
| #define ICE_GLCOMM_QTX_CNTX_DATA | ( | x | ) |
Transmit Comm Scheduler Queue Context Data Registers.
Definition at line 81 of file ice.h.
Referenced by ice_dump_tx().
| #define ICE_GLCOMM_QTX_CNTX_CTL 0x2d2dc8 |
Transmit Comm Scheduler Queue Context Control Register.
Definition at line 84 of file ice.h.
Referenced by ice_dump_tx().
| #define ICE_GLCOMM_QTX_CNTX_CTL_CMD | ( | x | ) |
| #define ICE_GLCOMM_QTX_CNTX_CTL_CMD_READ ICE_GLCOMM_QTX_CNTX_CTL_CMD ( 0 ) |
Read context.
Definition at line 86 of file ice.h.
Referenced by ice_dump_tx().
| #define ICE_GLCOMM_QTX_CNTX_CTL_EXEC 0x00080000UL |
| #define ICE_GLCOMM_QTX_CNTX_STAT 0x2d2dcc |
Transmit Comm Scheduler Queue Context Status Register.
Definition at line 91 of file ice.h.
Referenced by ice_dump_tx().
| #define ICE_GLCOMM_QTX_CNTX_BUSY 0x00000001UL |
| #define ICE_QRX_FLXP_CNTXT 0x480000 |
Queue Context Flex Extension Register.
Definition at line 95 of file ice.h.
Referenced by ice_probe().
| #define ICE_QRX_FLXP_CNTXT_RXDID_IDX | ( | x | ) |
| #define ICE_QRX_FLXP_CNTXT_RXDID_IDX_LEGACY_32 ICE_QRX_FLXP_CNTXT_RXDID_IDX ( 1 ) |
32-byte legacy
Definition at line 97 of file ice.h.
Referenced by ice_probe().
| #define ICE_QRX_FLXP_CNTXT_RXDID_PRIO | ( | x | ) |
| #define ICE_QRX_FLXP_CNTXT_RXDID_PRIO_MAX ICE_QRX_FLXP_CNTXT_RXDID_PRIO ( 7 ) |
Maximum priority.
Definition at line 100 of file ice.h.
Referenced by ice_probe().
| #define ICE_ADMIN_MAC_READ_TYPE_LAN 0 |
| #define ICE_ADMIN_SWITCH_TYPE_MASK 0xc000 |
Switching element ID type mask.
Definition at line 200 of file ice.h.
Referenced by ice_admin_switch().
| #define ICE_ADMIN_SWITCH_TYPE_VSI 0x8000 |
Virtual Station Interface element type.
Definition at line 203 of file ice.h.
Referenced by ice_admin_switch().
| #define ICE_ADMIN_ADD_RULES 0x02a0 |
Admin queue Add Switch Rules command.
Definition at line 212 of file ice.h.
Referenced by ice_admin_rules().
| #define ICE_ADMIN_RULES_RECIPE_PROMISC 0x0003 |
Switch rule promiscuous recipe ID.
Definition at line 248 of file ice.h.
Referenced by ice_admin_rules().
| #define ICE_ADMIN_RULES_ACTION_VALID 0x00020000UL |
| #define ICE_ADMIN_RULES_ACTION_VSI | ( | x | ) |
Switch rule VSI number.
Definition at line 254 of file ice.h.
Referenced by ice_admin_rules().
| #define ICE_ADMIN_SCHEDULE 0x0400 |
Admin queue Query Default Scheduling Tree Topology command.
Definition at line 257 of file ice.h.
Referenced by ice_admin_schedule().
| #define ICE_SCHEDULE_GENERIC 0x01 |
Transmit scheduler configuration generic section is valid.
Definition at line 270 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_SCHEDULE_COMMIT 0x02 |
Transmit scheduler configuration committed bandwidth section is valid.
Definition at line 273 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_SCHEDULE_EXCESS 0x04 |
Transmit scheduler configuration excess bandwidth section is valid.
Definition at line 276 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_SCHEDULE_WEIGHT 0x0004 |
Transmit scheduler configuration default weight.
Definition at line 279 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_ADMIN_ADD_TXQ 0x0c30 |
Admin queue Add Transmit Queues command.
Definition at line 350 of file ice.h.
Referenced by ice_admin_add_txq().
Transmit queue base address and port number.
Definition at line 381 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_TXQ_PF_TYPE | ( | pf | ) |
Transmit queue PF number.
Definition at line 385 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_TXQ_LEN | ( | count | ) |
Transmit queue length.
Definition at line 388 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_TXQ_FL_TSO 0x0001 |
| #define ICE_TXQ_FL_LEGACY 0x1000 |
Transmit queue uses legacy mode.
Definition at line 394 of file ice.h.
Referenced by ice_admin_add_txq().
| #define ICE_ADMIN_DISABLE_TXQ 0x0c31 |
Admin queue Disable Transmit Queues command.
Definition at line 397 of file ice.h.
Referenced by ice_admin_disable_txq().
| #define ICE_TXQ_FL_FLUSH 0x08 |
Disable queue and flush pipe.
Definition at line 414 of file ice.h.
Referenced by ice_admin_disable_txq().
| #define ICE_TXQ_TIMEOUT 0xc8 |
| #define ICE_PFFUNC_RID 0x09e880 |
Function Requester ID Information Register.
Definition at line 540 of file ice.h.
Referenced by ice_probe().
| #define ICE_PFFUNC_RID_FUNC_NUM | ( | x | ) |
Function number.
Definition at line 541 of file ice.h.
Referenced by ice_probe().
| #define ICE_PFGEN_PORTNUM 0x1d2400 |
| #define ICE_PFGEN_PORTNUM_PORT_NUM | ( | x | ) |
Port number.
Definition at line 546 of file ice.h.
Referenced by ice_probe().
| #define ICE_QINT_TQCTL 0x140000 |
Transmit Queue Interrupt Cause Control Register.
Definition at line 550 of file ice.h.
Referenced by ice_probe().
| #define ICE_QINT_TQCTL_ITR_INDX | ( | x | ) |
| #define ICE_QINT_TQCTL_ITR_INDX_NONE ICE_QINT_TQCTL_ITR_INDX ( 0x3 ) |
No throttling.
Definition at line 552 of file ice.h.
Referenced by ice_probe().
| #define ICE_QINT_TQCTL_CAUSE_ENA 0x40000000UL |
| #define ICE_QINT_RQCTL 0x150000 |
Receive Queue Interrupt Cause Control Register.
Definition at line 557 of file ice.h.
Referenced by ice_probe().
| #define ICE_QINT_RQCTL_ITR_INDX | ( | x | ) |
| #define ICE_QINT_RQCTL_ITR_INDX_NONE ICE_QINT_RQCTL_ITR_INDX ( 0x3 ) |
No throttling.
Definition at line 559 of file ice.h.
Referenced by ice_probe().
| #define ICE_QINT_RQCTL_CAUSE_ENA 0x40000000UL |
| #define ICE_GLINT_DYN_CTL 0x160000 |
Global Interrupt Dynamic Control Register.
Definition at line 564 of file ice.h.
Referenced by ice_probe().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| 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 511 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 525 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().