|
iPXE
|
Intel 40 Gigabit Ethernet network card driver. More...
Go to the source code of this file.
Data Structures | |
| struct | intelxl_admin_offsets |
| Admin queue register offsets. More... | |
| struct | intelxl_admin_buffer_params |
| Admin queue data buffer command parameters. More... | |
| struct | intelxl_admin_version |
| Admin queue version number. More... | |
| struct | intelxl_admin_version_params |
| Admin queue Get Version command parameters. More... | |
| struct | intelxl_admin_driver_params |
| Admin queue Driver Version command parameters. More... | |
| struct | intelxl_admin_driver_buffer |
| Admin queue Driver Version data buffer. More... | |
| struct | intelxl_admin_shutdown_params |
| Admin queue Shutdown command parameters. More... | |
| struct | intelxl_admin_mac_read_params |
| Admin queue Manage MAC Address Read command parameters. More... | |
| struct | intelxl_admin_mac_read_buffer |
| Admin queue Manage MAC Address Read data buffer. More... | |
| struct | intelxl_admin_mac_write_params |
| Admin queue Manage MAC Address Write command parameters. More... | |
| struct | intelxl_admin_clear_pxe_params |
| Admin queue Clear PXE Mode command parameters. More... | |
| struct | intelxl_admin_switch_config |
| Switching element configuration. More... | |
| struct | intelxl_admin_switch_params |
| Admin queue Get Switch Configuration command parameters. More... | |
| struct | intelxl_admin_switch_buffer |
| Admin queue Get Switch Configuration data buffer. More... | |
| struct | intelxl_admin_vsi_params |
| Admin queue Get VSI Parameters command parameters. More... | |
| struct | intelxl_admin_vsi_buffer |
| Admin queue Get VSI Parameters data buffer. More... | |
| struct | intelxl_admin_promisc_params |
| Admin queue Set VSI Promiscuous Modes command parameters. More... | |
| struct | intelxl_admin_mac_config_params |
| Admin queue Set MAC Configuration command parameters. More... | |
| struct | intelxl_admin_autoneg_params |
| Admin queue Restart Autonegotiation command parameters. More... | |
| struct | intelxl_admin_link_params |
| Admin queue Get Link Status command parameters. More... | |
| union | intelxl_admin_params |
| Admin queue command parameters. More... | |
| union | intelxl_admin_buffer |
| Admin queue data buffer. More... | |
| struct | intelxl_admin_descriptor |
| Admin queue descriptor. More... | |
| struct | intelxl_admin |
| Admin queue. More... | |
| struct | intelxl_context_line |
| Queue context line. More... | |
| struct | intelxl_context_tx |
| Transmit queue context. More... | |
| struct | intelxl_context_rx |
| Receive queue context. More... | |
| struct | intelxl_tx_data_descriptor |
| Transmit data descriptor. More... | |
| struct | intelxl_tx_writeback_descriptor |
| Transmit writeback descriptor. More... | |
| union | intelxl_tx_descriptor |
| Transmit descriptor. More... | |
| struct | intelxl_rx_data_descriptor |
| Receive data descriptor. More... | |
| struct | intelxl_rx_writeback_descriptor |
| Receive writeback descriptor. More... | |
| union | intelxl_rx_descriptor |
| Packet descriptor. More... | |
| struct | intelxl_ring |
| Descriptor ring. More... | |
| struct | intelxl_nic |
| An Intel 40 Gigabit network card. More... | |
Macros | |
| #define | INTELXL_BAR_SIZE 0x200000 |
| BAR size. | |
| #define | INTELXL_ALIGN 256 |
| Alignment. | |
| #define | INTELXL_ADMIN_CMD 0x080000 |
| PF Admin Command Queue register block. | |
| #define | INTELXL_ADMIN_EVT 0x080080 |
| PF Admin Event Queue register block. | |
| #define | INTELXL_ADMIN_BAL 0x000 |
| Admin Queue Base Address Low Register (offset) | |
| #define | INTELXL_ADMIN_BAH 0x100 |
| Admin Queue Base Address High Register (offset) | |
| #define | INTELXL_ADMIN_LEN 0x200 |
| Admin Queue Length Register (offset) | |
| #define | INTELXL_ADMIN_LEN_LEN(x) |
| Queue length. | |
| #define | INTELXL_ADMIN_LEN_ENABLE 0x80000000UL |
| Queue enable. | |
| #define | INTELXL_ADMIN_HEAD 0x300 |
| Admin Queue Head Register (offset) | |
| #define | INTELXL_ADMIN_TAIL 0x400 |
| Admin Queue Tail Register (offset) | |
| #define | INTELXL_ADMIN_VERSION 0x0001 |
| Admin queue Get Version command. | |
| #define | INTELXL_ADMIN_DRIVER 0x0002 |
| Admin queue Driver Version command. | |
| #define | INTELXL_ADMIN_SHUTDOWN 0x0003 |
| Admin queue Shutdown command. | |
| #define | INTELXL_ADMIN_SHUTDOWN_UNLOADING 0x01 |
| Driver is unloading. | |
| #define | INTELXL_ADMIN_MAC_READ 0x0107 |
| Admin queue Manage MAC Address Read command. | |
| #define | INTELXL_ADMIN_MAC_READ_VALID_LAN 0x10 |
| LAN MAC address is valid. | |
| #define | INTELXL_ADMIN_MAC_WRITE 0x0108 |
| Admin queue Manage MAC Address Write command. | |
| #define | INTELXL_ADMIN_CLEAR_PXE 0x0110 |
| Admin queue Clear PXE Mode command. | |
| #define | INTELXL_ADMIN_CLEAR_PXE_MAGIC 0x02 |
| Clear PXE Mode magic value. | |
| #define | INTELXL_ADMIN_SWITCH 0x0200 |
| Admin queue Get Switch Configuration command. | |
| #define | INTELXL_ADMIN_SWITCH_TYPE_VSI 19 |
| Virtual Station Inferface element type. | |
| #define | INTELXL_ADMIN_VSI 0x0212 |
| Admin queue Get VSI Parameters command. | |
| #define | INTELXL_ADMIN_PROMISC 0x0254 |
| Admin queue Set VSI Promiscuous Modes command. | |
| #define | INTELXL_ADMIN_PROMISC_FL_UNICAST 0x0001 |
| Promiscuous unicast mode. | |
| #define | INTELXL_ADMIN_PROMISC_FL_MULTICAST 0x0002 |
| Promiscuous multicast mode. | |
| #define | INTELXL_ADMIN_PROMISC_FL_BROADCAST 0x0004 |
| Promiscuous broadcast mode. | |
| #define | INTELXL_ADMIN_PROMISC_FL_VLAN 0x0010 |
| Promiscuous VLAN mode. | |
| #define | INTELXL_ADMIN_MAC_CONFIG 0x0603 |
| Admin queue Set MAC Configuration command. | |
| #define | INTELXL_ADMIN_MAC_CONFIG_FL_CRC 0x04 |
| Append CRC on transmit. | |
| #define | INTELXL_ADMIN_AUTONEG 0x0605 |
| Admin queue Restart Autonegotiation command. | |
| #define | INTELXL_ADMIN_AUTONEG_FL_RESTART 0x02 |
| Restart autonegotiation. | |
| #define | INTELXL_ADMIN_AUTONEG_FL_ENABLE 0x04 |
| Enable link. | |
| #define | INTELXL_ADMIN_LINK 0x0607 |
| Admin queue Get Link Status command. | |
| #define | INTELXL_ADMIN_LINK_NOTIFY 0x03 |
| Notify driver of link status changes. | |
| #define | INTELXL_ADMIN_LINK_UP 0x01 |
| Link is up. | |
| #define | INTELXL_ADMIN_BUFFER_SIZE 0x1000 |
| Maximum size of a data buffer. | |
| #define | INTELXL_ADMIN_FL_DD 0x0001 |
| Admin descriptor done. | |
| #define | INTELXL_ADMIN_FL_CMP 0x0002 |
| Admin descriptor contains a completion. | |
| #define | INTELXL_ADMIN_FL_ERR 0x0004 |
| Admin descriptor completed in error. | |
| #define | INTELXL_ADMIN_FL_RD 0x0400 |
| Admin descriptor uses data buffer for command parameters. | |
| #define | INTELXL_ADMIN_FL_BUF 0x1000 |
| Admin descriptor uses data buffer. | |
| #define | INTELXL_ADMIN_EEXIST 13 |
| Error: attempt to create something that already exists. | |
| #define | INTELXL_ADMIN_NUM_DESC 4 |
| Number of admin queue descriptors. | |
| #define | INTELXL_ADMIN_MAX_WAIT_MS 100 |
| Maximum time to wait for an admin request to complete. | |
| #define | INTELXL_ADMIN_API_MAJOR 1 |
| Admin queue API major version. | |
| #define | INTELXL_PFCM_LANCTXDATA(x) |
| CMLAN Context Data Register. | |
| #define | INTELXL_PFCM_LANCTXCTL 0x10c300 |
| CMLAN Context Control Register. | |
| #define | INTELXL_PFCM_LANCTXCTL_QUEUE_NUM(x) |
| Queue number. | |
| #define | INTELXL_PFCM_LANCTXCTL_SUB_LINE(x) |
| Sub-line. | |
| #define | INTELXL_PFCM_LANCTXCTL_TYPE(x) |
| Queue type. | |
| #define | INTELXL_PFCM_LANCTXCTL_TYPE_RX INTELXL_PFCM_LANCTXCTL_TYPE ( 0x0 ) |
| RX queue type. | |
| #define | INTELXL_PFCM_LANCTXCTL_TYPE_TX INTELXL_PFCM_LANCTXCTL_TYPE ( 0x1 ) |
| TX queue type. | |
| #define | INTELXL_PFCM_LANCTXCTL_OP_CODE(x) |
| Op code. | |
| #define | INTELXL_PFCM_LANCTXCTL_OP_CODE_READ INTELXL_PFCM_LANCTXCTL_OP_CODE ( 0x0 ) |
| Read context. | |
| #define | INTELXL_PFCM_LANCTXCTL_OP_CODE_WRITE INTELXL_PFCM_LANCTXCTL_OP_CODE ( 0x1 ) |
| Write context. | |
| #define | INTELXL_PFCM_LANCTXSTAT 0x10c380 |
| CMLAN Context Status Register. | |
| #define | INTELXL_PFCM_LANCTXSTAT_DONE 0x00000001UL |
| Complete. | |
| #define | INTELXL_CTX_TX_FL_NEW 0x4000 |
| New transmit queue context. | |
| #define | INTELXL_CTX_TX_BASE(base) |
| Transmit queue base address. | |
| #define | INTELXL_CTX_TX_COUNT(count) |
| Transmit queue count. | |
| #define | INTELXL_CTX_TX_QSET(qset) |
| Transmit queue set. | |
| #define | INTELXL_CTX_RX_BASE_COUNT(base, count) |
| Receive queue base address and queue count. | |
| #define | INTELXL_CTX_RX_LEN(len) |
| Receive queue data buffer length. | |
| #define | INTELXL_CTX_RX_FL_DSIZE 0x10 |
| Use 32-byte receive descriptors. | |
| #define | INTELXL_CTX_RX_FL_CRCSTRIP 0x20 |
| Strip CRC from received packets. | |
| #define | INTELXL_CTX_RX_MFS(mfs) |
| Receive queue maximum frame size. | |
| #define | INTELXL_CTX_MAX_WAIT_MS 100 |
| Maximum time to wait for a context operation to complete. | |
| #define | INTELXL_QUEUE_ENABLE_DELAY_US 20 |
| Time to wait for a queue to become enabled. | |
| #define | INTELXL_QUEUE_PRE_DISABLE_DELAY_US 400 |
| Time to wait for a transmit queue to become pre-disabled. | |
| #define | INTELXL_QUEUE_DISABLE_MAX_WAIT_MS 1000 |
| Maximum time to wait for a queue to become disabled. | |
| #define | INTELXL_QTX_HEAD(x) |
| Global Transmit Queue Head register. | |
| #define | INTELXL_GLLAN_TXPRE_QDIS(x) |
| Global Transmit Pre Queue Disable register. | |
| #define | INTELXL_GLLAN_TXPRE_QDIS_QINDX(x) |
| Queue index. | |
| #define | INTELXL_GLLAN_TXPRE_QDIS_SET_QDIS 0x40000000UL |
| Set disable. | |
| #define | INTELXL_GLLAN_TXPRE_QDIS_CLEAR_QDIS 0x80000000UL |
| Clear disable. | |
| #define | INTELXL_QTX(x) |
| Global Transmit Queue register block. | |
| #define | INTELXL_QRX(x) |
| Global Receive Queue register block. | |
| #define | INTELXL_QXX_ENA 0x0000 |
| Queue Enable Register (offset) | |
| #define | INTELXL_QXX_ENA_REQ 0x00000001UL |
| Enable request. | |
| #define | INTELXL_QXX_ENA_STAT 0x00000004UL |
| Enabled status. | |
| #define | INTELXL_QXX_CTL 0x4000 |
| Queue Control Register (offset) | |
| #define | INTELXL_QXX_CTL_PFVF_Q(x) |
| PF/VF queue. | |
| #define | INTELXL_QXX_CTL_PFVF_Q_PF INTELXL_QXX_CTL_PFVF_Q ( 0x2 ) |
| PF queue. | |
| #define | INTELXL_QXX_CTL_PFVF_PF_INDX(x) |
| PF index. | |
| #define | INTELXL_QXX_TAIL 0x8000 |
| Queue Tail Pointer Register (offset) | |
| #define | INTELXL_TX_DATA_DTYP 0x0 |
| Transmit data descriptor type. | |
| #define | INTELXL_TX_DATA_EOP 0x10 |
| Transmit data descriptor end of packet. | |
| #define | INTELXL_TX_DATA_RS 0x20 |
| Transmit data descriptor report status. | |
| #define | INTELXL_TX_DATA_JFDI 0x40 |
| Transmit data descriptor pretty please. | |
| #define | INTELXL_TX_DATA_LEN(len) |
| Transmit data descriptor length. | |
| #define | INTELXL_TX_WB_FL_DD 0x01 |
| Transmit writeback descriptor complete. | |
| #define | INTELXL_RX_WB_FL_DD 0x00000001UL |
| Receive writeback descriptor complete. | |
| #define | INTELXL_RX_WB_FL_VLAN 0x00000004UL |
| Receive writeback descriptor VLAN tag present. | |
| #define | INTELXL_RX_WB_FL_RXE 0x00080000UL |
| Receive writeback descriptor error. | |
| #define | INTELXL_RX_WB_LEN(len) |
| Receive writeback descriptor length. | |
| #define | INTELXL_TX_NUM_DESC 64 |
| Number of transmit descriptors. | |
| #define | INTELXL_TX_FILL ( INTELXL_TX_NUM_DESC - 1 ) |
| Transmit descriptor ring maximum fill level. | |
| #define | INTELXL_RX_NUM_DESC 64 |
| Number of receive descriptors. | |
| #define | INTELXL_RX_FILL 16 |
| Receive descriptor ring fill level. | |
| #define | INTELXL_MAX_PKT_LEN ( 9728 - 4 /* CRC */ ) |
| Maximum packet length (excluding CRC) | |
| #define | INTELXL_PFINT_DYN_CTL0 0x038480 |
| PF Interrupt Zero Dynamic Control Register. | |
| #define | INTELXL_INT_DYN_CTL_INTENA 0x00000001UL |
| Enable. | |
| #define | INTELXL_INT_DYN_CTL_CLEARPBA 0x00000002UL |
| Acknowledge. | |
| #define | INTELXL_INT_DYN_CTL_INTENA_MASK 0x80000000UL |
| Ignore enable. | |
| #define | INTELXL_PFINT_LNKLST0 0x038500 |
| PF Interrupt Zero Linked List Register. | |
| #define | INTELXL_PFINT_LNKLST0_FIRSTQ_INDX(x) |
| Queue index. | |
| #define | INTELXL_PFINT_LNKLST0_FIRSTQ_INDX_NONE INTELXL_PFINT_LNKLST0_FIRSTQ_INDX ( 0x7ff ) |
| End of list. | |
| #define | INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE(x) |
| Queue type. | |
| #define | INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE_RX INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE ( 0x0 ) |
| Receive queue. | |
| #define | INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE_TX INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE ( 0x1 ) |
| Transmit queue. | |
| #define | INTELXL_PFINT_ICR0_ENA 0x038800 |
| PF Interrupt Zero Cause Enablement Register. | |
| #define | INTELXL_PFINT_ICR0_ENA_ADMINQ 0x40000000UL |
| Admin event. | |
| #define | INTELXL_QINT_RQCTL(x) |
| Receive Queue Interrupt Cause Control Register. | |
| #define | INTELXL_QINT_RQCTL_NEXTQ_INDX(x) |
| Queue index. | |
| #define | INTELXL_QINT_RQCTL_NEXTQ_INDX_NONE INTELXL_QINT_RQCTL_NEXTQ_INDX ( 0x7ff ) |
| End of list. | |
| #define | INTELXL_QINT_RQCTL_NEXTQ_TYPE(x) |
| Queue type. | |
| #define | INTELXL_QINT_RQCTL_NEXTQ_TYPE_RX INTELXL_QINT_RQCTL_NEXTQ_TYPE ( 0x0 ) |
| Receive queue. | |
| #define | INTELXL_QINT_RQCTL_NEXTQ_TYPE_TX INTELXL_QINT_RQCTL_NEXTQ_TYPE ( 0x1 ) |
| Transmit queue. | |
| #define | INTELXL_QINT_RQCTL_CAUSE_ENA 0x40000000UL |
| Enable. | |
| #define | INTELXL_QINT_TQCTL(x) |
| Transmit Queue Interrupt Cause Control Register. | |
| #define | INTELXL_QINT_TQCTL_NEXTQ_INDX(x) |
| Queue index. | |
| #define | INTELXL_QINT_TQCTL_NEXTQ_INDX_NONE INTELXL_QINT_TQCTL_NEXTQ_INDX ( 0x7ff ) |
| End of list. | |
| #define | INTELXL_QINT_TQCTL_NEXTQ_TYPE(x) |
| Queue type. | |
| #define | INTELXL_QINT_TQCTL_NEXTQ_TYPE_RX INTELXL_QINT_TQCTL_NEXTQ_TYPE ( 0x0 ) |
| Receive queue. | |
| #define | INTELXL_QINT_TQCTL_NEXTQ_TYPE_TX INTELXL_QINT_TQCTL_NEXTQ_TYPE ( 0x1 ) |
| Transmit queue. | |
| #define | INTELXL_QINT_TQCTL_CAUSE_ENA 0x40000000UL |
| Enable. | |
| #define | INTELXL_PFFUNC_RID 0x09c000 |
| Function Requester ID Information Register. | |
| #define | INTELXL_PFFUNC_RID_FUNC_NUM(x) |
| Function number. | |
| #define | INTELXL_PFLAN_QALLOC 0x1c0400 |
| PF Queue Allocation Register. | |
| #define | INTELXL_PFLAN_QALLOC_FIRSTQ(x) |
| First queue. | |
| #define | INTELXL_PFLAN_QALLOC_LASTQ(x) |
| Last queue. | |
| #define | INTELXL_PFGEN_PORTNUM 0x1c0480 |
| PF LAN Port Number Register. | |
| #define | INTELXL_PFGEN_PORTNUM_PORT_NUM(x) |
| Port number. | |
| #define | INTELXL_MSIX_VECTOR 0 |
| MSI-X interrupt vector. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static void | intelxl_init_admin (struct intelxl_admin *admin, unsigned int base, const struct intelxl_admin_offsets *regs) |
| Initialise admin queue. | |
| static void | intelxl_init_ring (struct intelxl_ring *ring, unsigned int count, size_t len, int(*context)(struct intelxl_nic *intelxl, physaddr_t address)) |
| Initialise descriptor ring. | |
| int | intelxl_msix_enable (struct intelxl_nic *intelxl, struct pci_device *pci, unsigned int vector) |
| Enable MSI-X dummy interrupt. | |
| void | intelxl_msix_disable (struct intelxl_nic *intelxl, struct pci_device *pci, unsigned int vector) |
| Disable MSI-X dummy interrupt. | |
| struct intelxl_admin_descriptor * | intelxl_admin_command_descriptor (struct intelxl_nic *intelxl) |
| Get next admin command queue descriptor. | |
| union intelxl_admin_buffer * | intelxl_admin_command_buffer (struct intelxl_nic *intelxl) |
| Get next admin command queue data buffer. | |
| int | intelxl_admin_command (struct intelxl_nic *intelxl) |
| Issue admin queue command. | |
| int | intelxl_admin_clear_pxe (struct intelxl_nic *intelxl) |
| Clear PXE mode. | |
| int | intelxl_admin_mac_config (struct intelxl_nic *intelxl) |
| Set MAC configuration. | |
| void | intelxl_poll_admin (struct net_device *netdev) |
| Poll admin event queue. | |
| int | intelxl_open_admin (struct intelxl_nic *intelxl) |
| Open admin queues. | |
| void | intelxl_reopen_admin (struct intelxl_nic *intelxl) |
| Reopen admin queues (after virtual function reset) | |
| void | intelxl_close_admin (struct intelxl_nic *intelxl) |
| Close admin queues. | |
| int | intelxl_alloc_ring (struct intelxl_nic *intelxl, struct intelxl_ring *ring) |
| Allocate descriptor ring. | |
| void | intelxl_free_ring (struct intelxl_nic *intelxl, struct intelxl_ring *ring) |
| int | intelxl_create_ring (struct intelxl_nic *intelxl, struct intelxl_ring *ring) |
| Create descriptor ring. | |
| void | intelxl_destroy_ring (struct intelxl_nic *intelxl, struct intelxl_ring *ring) |
| Destroy descriptor ring. | |
| void | intelxl_empty_rx (struct intelxl_nic *intelxl) |
| Discard unused receive I/O buffers. | |
| int | intelxl_transmit (struct net_device *netdev, struct io_buffer *iobuf) |
| Transmit packet. | |
| void | intelxl_poll (struct net_device *netdev) |
| Poll for completed and received packets. | |
Variables | |
| const struct intelxl_admin_offsets | intelxl_admin_offsets |
| Admin queue register offsets. | |
Intel 40 Gigabit Ethernet network card driver.
Definition in file intelxl.h.
| #define INTELXL_BAR_SIZE 0x200000 |
| #define INTELXL_ALIGN 256 |
Alignment.
No data structure requires greater than 256 byte alignment.
Definition at line 27 of file intelxl.h.
Referenced by ice_open(), intelxl_alloc_admin(), intelxl_alloc_ring(), intelxl_open(), and intelxlvf_open().
| #define INTELXL_ADMIN_CMD 0x080000 |
PF Admin Command Queue register block.
Definition at line 37 of file intelxl.h.
Referenced by ice_probe(), and intelxl_probe().
| #define INTELXL_ADMIN_EVT 0x080080 |
PF Admin Event Queue register block.
Definition at line 40 of file intelxl.h.
Referenced by ice_probe(), and intelxl_probe().
| #define INTELXL_ADMIN_BAL 0x000 |
| #define INTELXL_ADMIN_BAH 0x100 |
| #define INTELXL_ADMIN_LEN 0x200 |
| #define INTELXL_ADMIN_LEN_LEN | ( | x | ) |
Queue length.
Definition at line 50 of file intelxl.h.
Referenced by intelxl_enable_admin().
| #define INTELXL_ADMIN_LEN_ENABLE 0x80000000UL |
Queue enable.
Definition at line 51 of file intelxl.h.
Referenced by intelxl_enable_admin(), and intelxlvf_reset_wait_teardown().
| #define INTELXL_ADMIN_HEAD 0x300 |
| #define INTELXL_ADMIN_TAIL 0x400 |
| #define INTELXL_ADMIN_VERSION 0x0001 |
Admin queue Get Version command.
Definition at line 88 of file intelxl.h.
Referenced by ice_admin_version(), and intelxl_admin_version().
| #define INTELXL_ADMIN_DRIVER 0x0002 |
Admin queue Driver Version command.
Definition at line 111 of file intelxl.h.
Referenced by intelxl_admin_driver().
| #define INTELXL_ADMIN_SHUTDOWN 0x0003 |
Admin queue Shutdown command.
Definition at line 136 of file intelxl.h.
Referenced by intelxl_admin_shutdown().
| #define INTELXL_ADMIN_SHUTDOWN_UNLOADING 0x01 |
Driver is unloading.
Definition at line 147 of file intelxl.h.
Referenced by intelxl_admin_shutdown().
| #define INTELXL_ADMIN_MAC_READ 0x0107 |
Admin queue Manage MAC Address Read command.
Definition at line 150 of file intelxl.h.
Referenced by ice_admin_mac_read(), and intelxl_admin_mac_read().
| #define INTELXL_ADMIN_MAC_READ_VALID_LAN 0x10 |
LAN MAC address is valid.
Definition at line 161 of file intelxl.h.
Referenced by ice_admin_mac_read(), and intelxl_admin_mac_read().
| #define INTELXL_ADMIN_MAC_WRITE 0x0108 |
Admin queue Manage MAC Address Write command.
Definition at line 176 of file intelxl.h.
Referenced by ice_admin_mac_write(), and intelxl_admin_mac_write().
| #define INTELXL_ADMIN_CLEAR_PXE 0x0110 |
Admin queue Clear PXE Mode command.
Definition at line 193 of file intelxl.h.
Referenced by intelxl_admin_clear_pxe().
| #define INTELXL_ADMIN_CLEAR_PXE_MAGIC 0x02 |
Clear PXE Mode magic value.
Definition at line 204 of file intelxl.h.
Referenced by intelxl_admin_clear_pxe().
| #define INTELXL_ADMIN_SWITCH 0x0200 |
Admin queue Get Switch Configuration command.
Definition at line 207 of file intelxl.h.
Referenced by ice_admin_switch(), and intelxl_admin_switch().
| #define INTELXL_ADMIN_SWITCH_TYPE_VSI 19 |
Virtual Station Inferface element type.
Definition at line 232 of file intelxl.h.
Referenced by intelxl_admin_switch().
| #define INTELXL_ADMIN_VSI 0x0212 |
Admin queue Get VSI Parameters command.
Definition at line 257 of file intelxl.h.
Referenced by intelxl_admin_vsi().
| #define INTELXL_ADMIN_PROMISC 0x0254 |
Admin queue Set VSI Promiscuous Modes command.
Definition at line 284 of file intelxl.h.
Referenced by intelxl_admin_promisc().
| #define INTELXL_ADMIN_PROMISC_FL_UNICAST 0x0001 |
Promiscuous unicast mode.
Definition at line 299 of file intelxl.h.
Referenced by intelxl_admin_promisc(), and intelxlvf_admin_promisc().
| #define INTELXL_ADMIN_PROMISC_FL_MULTICAST 0x0002 |
Promiscuous multicast mode.
Definition at line 302 of file intelxl.h.
Referenced by intelxl_admin_promisc(), and intelxlvf_admin_promisc().
| #define INTELXL_ADMIN_PROMISC_FL_BROADCAST 0x0004 |
Promiscuous broadcast mode.
Definition at line 305 of file intelxl.h.
Referenced by intelxl_admin_promisc().
| #define INTELXL_ADMIN_PROMISC_FL_VLAN 0x0010 |
Promiscuous VLAN mode.
Definition at line 308 of file intelxl.h.
Referenced by intelxl_admin_promisc().
| #define INTELXL_ADMIN_MAC_CONFIG 0x0603 |
Admin queue Set MAC Configuration command.
Definition at line 311 of file intelxl.h.
Referenced by intelxl_admin_mac_config().
| #define INTELXL_ADMIN_MAC_CONFIG_FL_CRC 0x04 |
Append CRC on transmit.
Definition at line 324 of file intelxl.h.
Referenced by intelxl_admin_mac_config().
| #define INTELXL_ADMIN_AUTONEG 0x0605 |
Admin queue Restart Autonegotiation command.
Definition at line 327 of file intelxl.h.
Referenced by ice_admin_autoneg(), and intelxl_admin_autoneg().
| #define INTELXL_ADMIN_AUTONEG_FL_RESTART 0x02 |
Restart autonegotiation.
Definition at line 338 of file intelxl.h.
Referenced by ice_admin_autoneg(), and intelxl_admin_autoneg().
| #define INTELXL_ADMIN_AUTONEG_FL_ENABLE 0x04 |
Enable link.
Definition at line 341 of file intelxl.h.
Referenced by ice_admin_autoneg(), and intelxl_admin_autoneg().
| #define INTELXL_ADMIN_LINK 0x0607 |
Admin queue Get Link Status command.
Definition at line 344 of file intelxl.h.
Referenced by ice_admin_event(), ice_admin_link(), intelxl_admin_event(), and intelxl_admin_link().
| #define INTELXL_ADMIN_LINK_NOTIFY 0x03 |
Notify driver of link status changes.
Definition at line 363 of file intelxl.h.
Referenced by ice_admin_link(), and intelxl_admin_link().
| #define INTELXL_ADMIN_LINK_UP 0x01 |
Link is up.
Definition at line 366 of file intelxl.h.
Referenced by ice_admin_link(), and intelxl_admin_link().
| #define INTELXL_ADMIN_BUFFER_SIZE 0x1000 |
| #define INTELXL_ADMIN_FL_DD 0x0001 |
Admin descriptor done.
Definition at line 434 of file intelxl.h.
Referenced by intelxl_admin_command(), and intelxl_poll_admin().
| #define INTELXL_ADMIN_FL_CMP 0x0002 |
Admin descriptor contains a completion.
Definition at line 437 of file intelxl.h.
Referenced by intelxl_admin_command().
| #define INTELXL_ADMIN_FL_ERR 0x0004 |
Admin descriptor completed in error.
Definition at line 440 of file intelxl.h.
Referenced by intelxl_admin_command().
| #define INTELXL_ADMIN_FL_RD 0x0400 |
Admin descriptor uses data buffer for command parameters.
Definition at line 443 of file intelxl.h.
Referenced by ice_admin_add_txq(), ice_admin_disable_txq(), ice_admin_rules(), intelxl_admin_command(), intelxl_admin_driver(), intelxlvf_admin_configure(), intelxlvf_admin_get_resources(), intelxlvf_admin_irq_map(), intelxlvf_admin_promisc(), intelxlvf_admin_queues(), intelxlvf_admin_request_qps(), intelxlvf_admin_stats(), and intelxlvf_admin_version().
| #define INTELXL_ADMIN_FL_BUF 0x1000 |
Admin descriptor uses data buffer.
Definition at line 446 of file intelxl.h.
Referenced by ice_admin_add_txq(), ice_admin_disable_txq(), ice_admin_link(), ice_admin_mac_read(), ice_admin_rules(), ice_admin_schedule(), ice_admin_switch(), intelxl_admin_command(), intelxl_admin_driver(), intelxl_admin_event_init(), intelxl_admin_mac_read(), intelxl_admin_switch(), intelxl_admin_vsi(), intelxl_poll_admin(), intelxlvf_admin_configure(), intelxlvf_admin_get_resources(), intelxlvf_admin_irq_map(), intelxlvf_admin_promisc(), intelxlvf_admin_queues(), intelxlvf_admin_request_qps(), intelxlvf_admin_stats(), and intelxlvf_admin_version().
| #define INTELXL_ADMIN_EEXIST 13 |
Error: attempt to create something that already exists.
Definition at line 449 of file intelxl.h.
Referenced by intelxl_admin_clear_pxe().
| #define INTELXL_ADMIN_NUM_DESC 4 |
Number of admin queue descriptors.
Definition at line 484 of file intelxl.h.
Referenced by intelxl_admin_command(), intelxl_admin_command_buffer(), intelxl_admin_command_descriptor(), intelxl_admin_event_init(), intelxl_alloc_admin(), intelxl_enable_admin(), intelxl_free_admin(), intelxl_poll_admin(), intelxl_refill_admin(), intelxl_reopen_admin(), intelxlvf_admin_command(), and intelxlvf_admin_event().
| #define INTELXL_ADMIN_MAX_WAIT_MS 100 |
Maximum time to wait for an admin request to complete.
Definition at line 487 of file intelxl.h.
Referenced by intelxl_admin_command().
| #define INTELXL_ADMIN_API_MAJOR 1 |
Admin queue API major version.
Definition at line 490 of file intelxl.h.
Referenced by ice_admin_version(), and intelxl_admin_version().
| #define INTELXL_PFCM_LANCTXDATA | ( | x | ) |
CMLAN Context Data Register.
Definition at line 500 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_PFCM_LANCTXCTL 0x10c300 |
CMLAN Context Control Register.
Definition at line 503 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_PFCM_LANCTXCTL_QUEUE_NUM | ( | x | ) |
Queue number.
Definition at line 504 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_PFCM_LANCTXCTL_SUB_LINE | ( | x | ) |
Sub-line.
Definition at line 506 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_PFCM_LANCTXCTL_TYPE | ( | x | ) |
| #define INTELXL_PFCM_LANCTXCTL_TYPE_RX INTELXL_PFCM_LANCTXCTL_TYPE ( 0x0 ) |
RX queue type.
Definition at line 510 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_context_rx().
| #define INTELXL_PFCM_LANCTXCTL_TYPE_TX INTELXL_PFCM_LANCTXCTL_TYPE ( 0x1 ) |
TX queue type.
Definition at line 512 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_context_tx().
| #define INTELXL_PFCM_LANCTXCTL_OP_CODE | ( | x | ) |
| #define INTELXL_PFCM_LANCTXCTL_OP_CODE_READ INTELXL_PFCM_LANCTXCTL_OP_CODE ( 0x0 ) |
Read context.
Definition at line 516 of file intelxl.h.
Referenced by intelxl_context_dump().
| #define INTELXL_PFCM_LANCTXCTL_OP_CODE_WRITE INTELXL_PFCM_LANCTXCTL_OP_CODE ( 0x1 ) |
Write context.
Definition at line 518 of file intelxl.h.
Referenced by intelxl_context_line().
| #define INTELXL_PFCM_LANCTXSTAT 0x10c380 |
CMLAN Context Status Register.
Definition at line 522 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_PFCM_LANCTXSTAT_DONE 0x00000001UL |
Complete.
Definition at line 523 of file intelxl.h.
Referenced by intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_CTX_TX_FL_NEW 0x4000 |
New transmit queue context.
Definition at line 552 of file intelxl.h.
Referenced by intelxl_context_tx().
| #define INTELXL_CTX_TX_BASE | ( | base | ) |
| #define INTELXL_CTX_TX_COUNT | ( | count | ) |
Transmit queue count.
Definition at line 558 of file intelxl.h.
Referenced by intelxl_context_tx().
| #define INTELXL_CTX_TX_QSET | ( | qset | ) |
Transmit queue set.
Definition at line 561 of file intelxl.h.
Referenced by intelxl_context_tx().
Receive queue base address and queue count.
Definition at line 584 of file intelxl.h.
Referenced by ice_context_rx(), and intelxl_context_rx().
| #define INTELXL_CTX_RX_LEN | ( | len | ) |
Receive queue data buffer length.
Definition at line 588 of file intelxl.h.
Referenced by ice_context_rx(), and intelxl_context_rx().
| #define INTELXL_CTX_RX_FL_DSIZE 0x10 |
Use 32-byte receive descriptors.
Definition at line 591 of file intelxl.h.
Referenced by ice_context_rx(), and intelxl_context_rx().
| #define INTELXL_CTX_RX_FL_CRCSTRIP 0x20 |
Strip CRC from received packets.
Definition at line 594 of file intelxl.h.
Referenced by ice_context_rx(), and intelxl_context_rx().
| #define INTELXL_CTX_RX_MFS | ( | mfs | ) |
Receive queue maximum frame size.
Definition at line 597 of file intelxl.h.
Referenced by ice_context_rx(), and intelxl_context_rx().
| #define INTELXL_CTX_MAX_WAIT_MS 100 |
Maximum time to wait for a context operation to complete.
Definition at line 600 of file intelxl.h.
Referenced by ice_dump_tx(), intelxl_context_dump(), and intelxl_context_line().
| #define INTELXL_QUEUE_ENABLE_DELAY_US 20 |
Time to wait for a queue to become enabled.
Definition at line 603 of file intelxl.h.
Referenced by intelxl_enable_ring().
| #define INTELXL_QUEUE_PRE_DISABLE_DELAY_US 400 |
Time to wait for a transmit queue to become pre-disabled.
Definition at line 606 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_open().
| #define INTELXL_QUEUE_DISABLE_MAX_WAIT_MS 1000 |
Maximum time to wait for a queue to become disabled.
Definition at line 609 of file intelxl.h.
Referenced by intelxl_disable_ring().
| #define INTELXL_QTX_HEAD | ( | x | ) |
Global Transmit Queue Head register.
Definition at line 619 of file intelxl.h.
Referenced by intelxl_open().
| #define INTELXL_GLLAN_TXPRE_QDIS | ( | x | ) |
Global Transmit Pre Queue Disable register.
Definition at line 622 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_open().
| #define INTELXL_GLLAN_TXPRE_QDIS_QINDX | ( | x | ) |
Queue index.
Definition at line 623 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_open().
| #define INTELXL_GLLAN_TXPRE_QDIS_SET_QDIS 0x40000000UL |
Set disable.
Definition at line 625 of file intelxl.h.
Referenced by intelxl_close(), and intelxl_open().
| #define INTELXL_GLLAN_TXPRE_QDIS_CLEAR_QDIS 0x80000000UL |
Clear disable.
Definition at line 627 of file intelxl.h.
Referenced by intelxl_open().
| #define INTELXL_QTX | ( | x | ) |
Global Transmit Queue register block.
Definition at line 631 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QRX | ( | x | ) |
Global Receive Queue register block.
Definition at line 634 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QXX_ENA 0x0000 |
Queue Enable Register (offset)
Definition at line 637 of file intelxl.h.
Referenced by intelxl_disable_ring(), and intelxl_enable_ring().
| #define INTELXL_QXX_ENA_REQ 0x00000001UL |
| #define INTELXL_QXX_ENA_STAT 0x00000004UL |
Enabled status.
Definition at line 639 of file intelxl.h.
Referenced by intelxl_disable_ring(), and intelxl_enable_ring().
| #define INTELXL_QXX_CTL 0x4000 |
Queue Control Register (offset)
Definition at line 642 of file intelxl.h.
Referenced by intelxl_open().
| #define INTELXL_QXX_CTL_PFVF_Q | ( | x | ) |
| #define INTELXL_QXX_CTL_PFVF_Q_PF INTELXL_QXX_CTL_PFVF_Q ( 0x2 ) |
PF queue.
Definition at line 644 of file intelxl.h.
Referenced by intelxl_open().
| #define INTELXL_QXX_CTL_PFVF_PF_INDX | ( | x | ) |
PF index.
Definition at line 646 of file intelxl.h.
Referenced by intelxl_open().
| #define INTELXL_QXX_TAIL 0x8000 |
Queue Tail Pointer Register (offset)
Definition at line 649 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_TX_DATA_DTYP 0x0 |
Transmit data descriptor type.
Definition at line 662 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_TX_DATA_EOP 0x10 |
Transmit data descriptor end of packet.
Definition at line 665 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_TX_DATA_RS 0x20 |
Transmit data descriptor report status.
Definition at line 668 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_TX_DATA_JFDI 0x40 |
Transmit data descriptor pretty please.
This bit is completely missing from older versions of the XL710 datasheet. Later versions describe it innocuously as "reserved, must be 1". Without this bit, everything will appear to work (up to and including the port "transmit good octets" counter), but no packet will actually be sent.
Definition at line 678 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_TX_DATA_LEN | ( | len | ) |
Transmit data descriptor length.
Definition at line 681 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_TX_WB_FL_DD 0x01 |
Transmit writeback descriptor complete.
Definition at line 694 of file intelxl.h.
Referenced by intelxl_poll_tx().
| #define INTELXL_RX_WB_FL_DD 0x00000001UL |
Receive writeback descriptor complete.
Definition at line 731 of file intelxl.h.
Referenced by intelxl_poll_rx().
| #define INTELXL_RX_WB_FL_VLAN 0x00000004UL |
Receive writeback descriptor VLAN tag present.
Definition at line 734 of file intelxl.h.
Referenced by intelxl_poll_rx().
| #define INTELXL_RX_WB_FL_RXE 0x00080000UL |
Receive writeback descriptor error.
Definition at line 737 of file intelxl.h.
Referenced by intelxl_poll_rx().
| #define INTELXL_RX_WB_LEN | ( | len | ) |
Receive writeback descriptor length.
Definition at line 740 of file intelxl.h.
Referenced by intelxl_poll_rx().
| #define INTELXL_TX_NUM_DESC 64 |
Number of transmit descriptors.
Chosen to exceed the receive ring fill level, in order to avoid running out of transmit descriptors when sending TCP ACKs.
Definition at line 804 of file intelxl.h.
Referenced by ice_admin_add_txq(), ice_probe(), intelxl_context_tx(), intelxl_poll_tx(), intelxl_probe(), intelxl_transmit(), intelxlvf_admin_configure(), and intelxlvf_probe().
| #define INTELXL_TX_FILL ( INTELXL_TX_NUM_DESC - 1 ) |
Transmit descriptor ring maximum fill level.
Definition at line 807 of file intelxl.h.
Referenced by intelxl_transmit().
| #define INTELXL_RX_NUM_DESC 64 |
Number of receive descriptors.
Must be a multiple of 32 and greater than or equal to 64.
Definition at line 813 of file intelxl.h.
Referenced by ice_context_rx(), ice_probe(), intelxl_context_rx(), intelxl_empty_rx(), intelxl_poll_rx(), intelxl_probe(), intelxl_refill_rx(), intelxlvf_admin_configure(), and intelxlvf_probe().
| #define INTELXL_RX_FILL 16 |
Receive descriptor ring fill level.
Must be a multiple of 8 and greater than 8.
Definition at line 819 of file intelxl.h.
Referenced by intelxl_refill_rx().
| #define INTELXL_MAX_PKT_LEN ( 9728 - 4 /* CRC */ ) |
Maximum packet length (excluding CRC)
Definition at line 822 of file intelxl.h.
Referenced by ice_probe(), and intelxl_probe().
| #define INTELXL_PFINT_DYN_CTL0 0x038480 |
PF Interrupt Zero Dynamic Control Register.
Definition at line 832 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_INT_DYN_CTL_INTENA 0x00000001UL |
| #define INTELXL_INT_DYN_CTL_CLEARPBA 0x00000002UL |
| #define INTELXL_INT_DYN_CTL_INTENA_MASK 0x80000000UL |
| #define INTELXL_PFINT_LNKLST0 0x038500 |
PF Interrupt Zero Linked List Register.
Definition at line 838 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFINT_LNKLST0_FIRSTQ_INDX | ( | x | ) |
Queue index.
Definition at line 839 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFINT_LNKLST0_FIRSTQ_INDX_NONE INTELXL_PFINT_LNKLST0_FIRSTQ_INDX ( 0x7ff ) |
| #define INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE | ( | x | ) |
| #define INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE_RX INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE ( 0x0 ) |
Receive queue.
Definition at line 845 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE_TX INTELXL_PFINT_LNKLST0_FIRSTQ_TYPE ( 0x1 ) |
| #define INTELXL_PFINT_ICR0_ENA 0x038800 |
PF Interrupt Zero Cause Enablement Register.
Definition at line 851 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFINT_ICR0_ENA_ADMINQ 0x40000000UL |
| #define INTELXL_QINT_RQCTL | ( | x | ) |
Receive Queue Interrupt Cause Control Register.
Definition at line 855 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QINT_RQCTL_NEXTQ_INDX | ( | x | ) |
Queue index.
Definition at line 856 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QINT_RQCTL_NEXTQ_INDX_NONE INTELXL_QINT_RQCTL_NEXTQ_INDX ( 0x7ff ) |
| #define INTELXL_QINT_RQCTL_NEXTQ_TYPE | ( | x | ) |
| #define INTELXL_QINT_RQCTL_NEXTQ_TYPE_RX INTELXL_QINT_RQCTL_NEXTQ_TYPE ( 0x0 ) |
| #define INTELXL_QINT_RQCTL_NEXTQ_TYPE_TX INTELXL_QINT_RQCTL_NEXTQ_TYPE ( 0x1 ) |
Transmit queue.
Definition at line 862 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QINT_RQCTL_CAUSE_ENA 0x40000000UL |
| #define INTELXL_QINT_TQCTL | ( | x | ) |
Transmit Queue Interrupt Cause Control Register.
Definition at line 867 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QINT_TQCTL_NEXTQ_INDX | ( | x | ) |
| #define INTELXL_QINT_TQCTL_NEXTQ_INDX_NONE INTELXL_QINT_TQCTL_NEXTQ_INDX ( 0x7ff ) |
End of list.
Definition at line 869 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_QINT_TQCTL_NEXTQ_TYPE | ( | x | ) |
| #define INTELXL_QINT_TQCTL_NEXTQ_TYPE_RX INTELXL_QINT_TQCTL_NEXTQ_TYPE ( 0x0 ) |
| #define INTELXL_QINT_TQCTL_NEXTQ_TYPE_TX INTELXL_QINT_TQCTL_NEXTQ_TYPE ( 0x1 ) |
| #define INTELXL_QINT_TQCTL_CAUSE_ENA 0x40000000UL |
| #define INTELXL_PFFUNC_RID 0x09c000 |
Function Requester ID Information Register.
Definition at line 879 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFFUNC_RID_FUNC_NUM | ( | x | ) |
Function number.
Definition at line 880 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFLAN_QALLOC 0x1c0400 |
PF Queue Allocation Register.
Definition at line 884 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFLAN_QALLOC_FIRSTQ | ( | x | ) |
First queue.
Definition at line 885 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFLAN_QALLOC_LASTQ | ( | x | ) |
Last queue.
Definition at line 887 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFGEN_PORTNUM 0x1c0480 |
PF LAN Port Number Register.
Definition at line 891 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_PFGEN_PORTNUM_PORT_NUM | ( | x | ) |
Port number.
Definition at line 892 of file intelxl.h.
Referenced by intelxl_probe().
| #define INTELXL_MSIX_VECTOR 0 |
MSI-X interrupt vector.
Definition at line 896 of file intelxl.h.
Referenced by ice_probe(), ice_remove(), intelxl_probe(), and intelxl_remove().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
inlinestatic |
Initialise admin queue.
| admin | Admin queue |
| base | Register block base |
| regs | Register offsets |
Definition at line 476 of file intelxl.h.
References base, intelxl_admin::base, intelxl_admin::regs, and regs.
Referenced by ice_probe(), intelxl_probe(), and intelxlvf_probe().
|
inlinestatic |
Initialise descriptor ring.
| ring | Descriptor ring |
| count | Number of descriptors |
| len | Length of a single descriptor |
| context | Method to program queue context |
Definition at line 791 of file intelxl.h.
References address, intelxl_ring::context, count, intelxl_ring::len, and len.
Referenced by ice_probe(), and intelxl_probe().
|
extern |
Enable MSI-X dummy interrupt.
| intelxl | Intel device |
| pci | PCI device |
| vector | MSI-X vector |
| rc | Return status code |
Definition at line 63 of file intelxl.c.
References DBGC, intelxl_nic::msix, pci_msix_disable(), pci_msix_enable(), pci_msix_unmask(), rc, strerror(), and vector.
Referenced by ice_probe(), intelxl_probe(), and intelxlvf_probe().
|
extern |
Disable MSI-X dummy interrupt.
| intelxl | Intel device |
| pci | PCI device |
| vector | MSI-X vector |
Definition at line 91 of file intelxl.c.
References intelxl_nic::msix, pci_msix_disable(), pci_msix_mask(), and vector.
Referenced by ice_probe(), ice_remove(), intelxl_probe(), intelxl_remove(), intelxlvf_probe(), and intelxlvf_remove().
|
extern |
Get next admin command queue descriptor.
| intelxl | Intel device |
| cmd | Command descriptor |
Definition at line 222 of file intelxl.c.
References cmd, intelxl_nic::command, intelxl_admin::desc, intelxl_admin::index, INTELXL_ADMIN_NUM_DESC, and memset().
Referenced by ice_admin_command_descriptor(), intelxl_admin_autoneg(), intelxl_admin_clear_pxe(), intelxl_admin_driver(), intelxl_admin_link(), intelxl_admin_mac_config(), intelxl_admin_mac_read(), intelxl_admin_mac_write(), intelxl_admin_promisc(), intelxl_admin_shutdown(), intelxl_admin_switch(), intelxl_admin_version(), intelxl_admin_vsi(), and intelxlvf_admin_command_descriptor().
|
extern |
Get next admin command queue data buffer.
| intelxl | Intel device |
| buf | Data buffer |
Definition at line 239 of file intelxl.c.
References intelxl_admin::buf, intelxl_nic::command, intelxl_admin::index, INTELXL_ADMIN_NUM_DESC, and memset().
Referenced by ice_admin_command_buffer(), intelxl_admin_driver(), intelxl_admin_mac_read(), intelxl_admin_switch(), intelxl_admin_vsi(), and intelxlvf_admin_command_buffer().
|
extern |
Issue admin queue command.
| intelxl | Intel device |
| rc | Return status code |
Definition at line 278 of file intelxl.c.
References address, assert, intelxl_admin::base, intelxl_admin::buf, cmd, intelxl_nic::command, cpu_to_le16, cpu_to_le32, DBGC, DBGC2, DBGC2_HDA, DBGC_HDA, intelxl_admin::desc, dma(), EIO, EPROTO, ETIMEDOUT, index, intelxl_admin::index, INTELXL_ADMIN_FL_BUF, INTELXL_ADMIN_FL_CMP, INTELXL_ADMIN_FL_DD, INTELXL_ADMIN_FL_ERR, INTELXL_ADMIN_FL_RD, INTELXL_ADMIN_MAX_WAIT_MS, INTELXL_ADMIN_NUM_DESC, le16_to_cpu, le32_to_cpu, intelxl_admin::map, mdelay(), rc, intelxl_admin::regs, intelxl_nic::regs, regs, wmb, and writel.
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(), ice_admin_version(), intelxl_admin_autoneg(), intelxl_admin_clear_pxe(), intelxl_admin_driver(), intelxl_admin_link(), intelxl_admin_mac_config(), intelxl_admin_mac_read(), intelxl_admin_mac_write(), intelxl_admin_promisc(), intelxl_admin_shutdown(), intelxl_admin_switch(), intelxl_admin_version(), intelxl_admin_vsi(), intelxlvf_admin_command(), intelxlvf_admin_request_qps(), and intelxlvf_reset_admin().
|
extern |
Clear PXE mode.
| intelxl | Intel device |
| rc | Return status code |
Definition at line 561 of file intelxl.c.
References cmd, cpu_to_le16, DBGC, INTELXL_ADMIN_CLEAR_PXE, INTELXL_ADMIN_CLEAR_PXE_MAGIC, intelxl_admin_command(), intelxl_admin_command_descriptor(), INTELXL_ADMIN_EEXIST, intelxl_admin_clear_pxe_params::magic, and rc.
Referenced by ice_probe(), and intelxl_probe().
|
extern |
Set MAC configuration.
| intelxl | Intel device |
| rc | Return status code |
Definition at line 712 of file intelxl.c.
References cmd, cpu_to_le16, intelxl_admin_mac_config_params::flags, intelxl_admin_command(), intelxl_admin_command_descriptor(), INTELXL_ADMIN_MAC_CONFIG, INTELXL_ADMIN_MAC_CONFIG_FL_CRC, intelxl_admin_mac_config_params::mfs, intelxl_nic::mfs, and rc.
Referenced by ice_open(), and intelxl_open().
|
extern |
Poll admin event queue.
| netdev | Network device |
Definition at line 836 of file intelxl.c.
References intelxl_admin::buf, cpu_to_le16, DBGC2, DBGC2_HDA, intelxl_admin::desc, intelxl_nic::event, intelxl_admin_descriptor::flags, intelxl_nic::handle, intelxl_admin::index, intelxl_admin_event_init(), INTELXL_ADMIN_FL_BUF, INTELXL_ADMIN_FL_DD, INTELXL_ADMIN_NUM_DESC, intelxl_refill_admin(), le16_to_cpu, intelxl_admin_descriptor::len, and netdev.
Referenced by intelxl_poll(), and intelxlvf_admin_command().
|
extern |
Open admin queues.
| intelxl | Intel device |
| rc | Return status code |
Definition at line 877 of file intelxl.c.
References intelxl_nic::command, intelxl_nic::event, intelxl_alloc_admin(), intelxl_disable_admin(), intelxl_free_admin(), intelxl_reopen_admin(), and rc.
Referenced by ice_probe(), intelxl_probe(), and intelxlvf_probe().
|
extern |
Reopen admin queues (after virtual function reset)
| intelxl | Intel device |
Definition at line 907 of file intelxl.c.
References intelxl_nic::command, intelxl_nic::event, intelxl_admin_event_init(), INTELXL_ADMIN_NUM_DESC, intelxl_enable_admin(), and intelxl_refill_admin().
Referenced by intelxl_open_admin(), and intelxlvf_reset_wait().
|
extern |
Close admin queues.
| intelxl | Intel device |
Definition at line 929 of file intelxl.c.
References intelxl_nic::command, intelxl_nic::event, intelxl_admin_shutdown(), intelxl_disable_admin(), and intelxl_free_admin().
Referenced by ice_probe(), ice_remove(), intelxl_probe(), intelxl_remove(), intelxlvf_probe(), and intelxlvf_remove().
|
extern |
Allocate descriptor ring.
| intelxl | Intel device |
| ring | Descriptor ring |
| rc | Return status code |
Definition at line 957 of file intelxl.c.
References intelxl_ring::cons, DBGC, intelxl_ring::desc, intelxl_nic::dma, dma_alloc(), dma_free(), ENOMEM, INTELXL_ALIGN, intelxl_ring::len, intelxl_ring::map, memset(), intelxl_ring::prod, intelxl_ring::raw, rc, intelxl_nic::regs, intelxl_ring::tail, and writel.
Referenced by ice_create_tx(), intelxl_create_ring(), and intelxlvf_open().
|
extern |
References netdev.
|
extern |
Create descriptor ring.
| intelxl | Intel device |
| ring | Descriptor ring |
| rc | Return status code |
Definition at line 1266 of file intelxl.c.
References address, intelxl_ring::context, intelxl_ring::desc, dma(), intelxl_alloc_ring(), intelxl_disable_ring(), intelxl_enable_ring(), intelxl_free_ring(), intelxl_ring::map, intelxl_ring::raw, and rc.
Referenced by ice_open(), and intelxl_open().
|
extern |
Destroy descriptor ring.
| intelxl | Intel device |
| ring | Descriptor ring |
Definition at line 1300 of file intelxl.c.
References intelxl_disable_ring(), intelxl_free_ring(), and rc.
Referenced by ice_close(), ice_open(), intelxl_close(), and intelxl_open().
|
extern |
Discard unused receive I/O buffers.
| intelxl | Intel device |
Definition at line 1367 of file intelxl.c.
References free_rx_iob(), INTELXL_RX_NUM_DESC, NULL, and intelxl_nic::rx_iobuf.
Referenced by ice_close(), intelxl_close(), and intelxlvf_close().
|
extern |
Transmit packet.
| netdev | Network device |
| iobuf | I/O buffer |
| rc | Return status code |
Definition at line 1493 of file intelxl.c.
References intelxl_ring::cons, cpu_to_le32, cpu_to_le64, intelxl_tx_descriptor::data, io_buffer::data, DBGC, DBGC2, intelxl_ring::desc, ENOBUFS, INTELXL_TX_DATA_DTYP, INTELXL_TX_DATA_EOP, INTELXL_TX_DATA_JFDI, INTELXL_TX_DATA_LEN, INTELXL_TX_DATA_RS, INTELXL_TX_FILL, INTELXL_TX_NUM_DESC, iob_dma(), iob_len(), len, netdev, intelxl_ring::prod, intelxl_nic::regs, intelxl_ring::tail, intelxl_nic::tx, intelxl_ring::tx, tx, wmb, and writel.
|
extern |
Poll for completed and received packets.
| netdev | Network device |
Definition at line 1613 of file intelxl.c.
References INTELXL_INT_DYN_CTL_INTENA, intelxl_poll_admin(), intelxl_poll_rx(), intelxl_poll_tx(), intelxl_refill_rx(), intelxl_nic::intr, netdev, intelxl_nic::regs, and writel.
|
extern |
Admin queue register offsets.
Definition at line 109 of file intelxl.c.