16 #define ICE_BAR_SIZE 0x800000 68 #define ICE_QRX_CTRL 0x120000 71 #define ICE_QRX_CONTEXT(x) ( 0x280000 + ( 0x2000 * (x) ) ) 74 #define ICE_QRX_TAIL 0x290000 77 #define ICE_QTX_COMM_DBELL 0x2c0000 80 #define ICE_GLCOMM_QTX_CNTX_DATA(x) ( 0x2d2d40 + ( 0x4 * (x) ) ) 83 #define ICE_GLCOMM_QTX_CNTX_CTL 0x2d2dc8 84 #define ICE_GLCOMM_QTX_CNTX_CTL_CMD(x) ( (x) << 16 ) 85 #define ICE_GLCOMM_QTX_CNTX_CTL_CMD_READ \ 86 ICE_GLCOMM_QTX_CNTX_CTL_CMD ( 0 ) 87 #define ICE_GLCOMM_QTX_CNTX_CTL_EXEC 0x00080000UL 90 #define ICE_GLCOMM_QTX_CNTX_STAT 0x2d2dcc 91 #define ICE_GLCOMM_QTX_CNTX_BUSY 0x00000001UL 94 #define ICE_QRX_FLXP_CNTXT 0x480000 95 #define ICE_QRX_FLXP_CNTXT_RXDID_IDX(x) ( (x) << 0 ) 96 #define ICE_QRX_FLXP_CNTXT_RXDID_IDX_LEGACY_32 \ 97 ICE_QRX_FLXP_CNTXT_RXDID_IDX ( 1 ) 98 #define ICE_QRX_FLXP_CNTXT_RXDID_PRIO(x) ( (x) << 8 ) 99 #define ICE_QRX_FLXP_CNTXT_RXDID_PRIO_MAX \ 100 ICE_QRX_FLXP_CNTXT_RXDID_PRIO ( 7 ) 156 #define ICE_ADMIN_MAC_READ_TYPE_LAN 0 199 #define ICE_ADMIN_SWITCH_TYPE_MASK 0xc000 202 #define ICE_ADMIN_SWITCH_TYPE_VSI 0x8000 211 #define ICE_ADMIN_ADD_RULES 0x02a0 247 #define ICE_ADMIN_RULES_RECIPE_PROMISC 0x0003 250 #define ICE_ADMIN_RULES_ACTION_VALID 0x00020000UL 253 #define ICE_ADMIN_RULES_ACTION_VSI(x) ( (x) << 4 ) 256 #define ICE_ADMIN_SCHEDULE 0x0400 269 #define ICE_SCHEDULE_GENERIC 0x01 272 #define ICE_SCHEDULE_COMMIT 0x02 275 #define ICE_SCHEDULE_EXCESS 0x04 278 #define ICE_SCHEDULE_WEIGHT 0x0004 349 #define ICE_ADMIN_ADD_TXQ 0x0c30 380 #define ICE_TXQ_BASE_PORT( addr, port ) \ 381 ( ( (addr) >> 7 ) | ( ( ( uint64_t ) (port) ) << 57 ) ) 384 #define ICE_TXQ_PF_TYPE( pf ) ( ( (pf) << 1 ) | ( 0x2 << 14 ) ) 387 #define ICE_TXQ_LEN( count ) ( (count) >> 1 ) 390 #define ICE_TXQ_FL_TSO 0x0001 393 #define ICE_TXQ_FL_LEGACY 0x1000 396 #define ICE_ADMIN_DISABLE_TXQ 0x0c31 413 #define ICE_TXQ_FL_FLUSH 0x08 416 #define ICE_TXQ_TIMEOUT 0xc8 539 #define ICE_PFFUNC_RID 0x09e880 540 #define ICE_PFFUNC_RID_FUNC_NUM(x) \ 541 ( ( (x) >> 0 ) & 0x7 ) 544 #define ICE_PFGEN_PORTNUM 0x1d2400 545 #define ICE_PFGEN_PORTNUM_PORT_NUM(x) \ 546 ( ( (x) >> 0 ) & 0x7 ) 549 #define ICE_QINT_TQCTL 0x140000 550 #define ICE_QINT_TQCTL_ITR_INDX(x) ( (x) << 11 ) 551 #define ICE_QINT_TQCTL_ITR_INDX_NONE \ 552 ICE_QINT_TQCTL_ITR_INDX ( 0x3 ) 553 #define ICE_QINT_TQCTL_CAUSE_ENA 0x40000000UL 556 #define ICE_QINT_RQCTL 0x150000 557 #define ICE_QINT_RQCTL_ITR_INDX(x) ( (x) << 11 ) 558 #define ICE_QINT_RQCTL_ITR_INDX_NONE \ 559 ICE_QINT_RQCTL_ITR_INDX ( 0x3 ) 560 #define ICE_QINT_RQCTL_CAUSE_ENA 0x40000000UL 563 #define ICE_GLINT_DYN_CTL 0x160000 struct intelxl_admin_descriptor * intelxl_admin_command_descriptor(struct intelxl_nic *intelxl)
Get next admin command queue descriptor.
uint8_t count
Number of queue groups.
uint8_t notify
Link status notification.
uint16_t len
Header length.
Admin queue Get Version command parameters.
uint8_t valid
Valid addresses.
uint16_t commit_id
Committed bandwidth profile ID.
Admin queue data buffer command parameters.
Admin queue command parameters.
uint8_t branches
Total branches.
uint8_t count
Number of queues.
uint16_t count
Number of nodes.
struct golan_inbox_hdr hdr
Message header.
uint16_t ret
Return value.
uint32_t parent
Parent TEID.
uint8_t reserved
Reserved.
Admin queue Add Transmit Queues command parameters.
uint16_t uplink
Uplink switching element ID.
uint32_t cookie
Opaque cookie.
uint8_t reserved_a
Reserved.
union intelxl_admin_buffer * intelxl_admin_command_buffer(struct intelxl_nic *intelxl)
Get next admin command queue data buffer.
unsigned long long uint64_t
uint8_t reserved
Reserved.
struct ice_admin_descriptor * ice_admin_command_descriptor(struct intelxl_nic *intelxl)
Get next admin command queue descriptor.
uint8_t sections
Valid sections.
uint16_t port
Source port.
uint8_t reserved_d[3]
Reserved.
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
uint8_t mac[ETH_ALEN]
MAC address.
struct golan_eq_context ctx
Admin queue Get Switch Configuration data buffer.
Admin queue Query Default Scheduling Tree Topology node.
uint16_t count
Number of rules.
Admin queue Add Switch Rules data buffer.
uint8_t status
Link status.
uint16_t func
PF/VF number.
Admin queue Query Default Scheduling Tree Topology command parameters.
#define INTELXL_ADMIN_BUFFER_SIZE
Maximum size of a data buffer.
uint8_t major
Major version number.
Intel 40 Gigabit Ethernet network card driver.
uint8_t branch
Branch identifier.
Admin queue Add Switch Rules command parameters.
uint8_t count
Number of queue groups.
uint16_t id
Transmit queue ID.
u32 version
Driver version.
#define container_of(ptr, type, field)
Get containing structure.
Admin queue version number.
Admin queue Add Transmit Queues data buffer.
uint16_t seid
Switching element ID and flags.
uint16_t excess_weight
Excess bandwidth weight.
Admin queue Get Switch Configuration command parameters.
u32 link
Link to next descriptor.
uint16_t excess_id
Excess bandwidth profile ID.
Admin queue Manage MAC Address Read command parameters.
uint16_t index
Lookup table index.
uint8_t count
Number of addresses in response.
uint16_t len
Queue length.
uint8_t reserved_c[5]
Reserved.
Admin queue Query Default Scheduling Tree Topology branch.
uint8_t reserved_a[4]
Reserved.
Admin queue Manage MAC Address Write command parameters.
Admin queue Disable Transmit Queues data buffer.
uint16_t speed
Link speed.
An Intel 40 Gigabit network card.
uint8_t reserved_a
Reserved.
Admin queue Get Link Status command parameters.
uint16_t shared
Shared rate limit profile ID.
uint32_t node
NUMA node register offset.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint16_t next
Starting switching element identifier.
static union ice_admin_buffer * ice_admin_command_buffer(struct intelxl_nic *intelxl)
Get next admin command queue data buffer.
uint8_t error
Configuration errors.
Admin queue Manage MAC Address Read data buffer.
uint8_t conflict
Topology conflicts.
uint64_t address
Data buffer address.
Admin queue Query Default Scheduling Tree Topology data buffer.
Transmit scheduler configuration.
Admin queue Restart Autonegotiation command parameters.
Switching element configuration.
Admin queue Get Link Status data buffer.
uint8_t type
Address type.
uint8_t reserved_a
Reserved.
uint64_t base_port
Base address.
uint8_t reserved_b[2]
Reserved.
uint16_t status
Return status.
uint16_t pf_type
PF number and queue type.
uint16_t commit_weight
Committeed bandwidth weight.
uint32_t build
Firmware build ID.
uint8_t patch
Patch level.
An Ethernet link-layer header.
uint16_t reserved
Reserved.
Admin queue Disable Transmit Queues command parameters.
uint16_t id
Transmit queue ID.
uint32_t parent
Parent TEID.
uint8_t port
Logical port number.
uint16_t recipe
Receipt ID.
uint32_t parent
Parent TEID.
uint8_t count
Number of queues.
uint8_t minor
Minor version number.