iPXE
|
Go to the source code of this file.
Data Structures | |
struct | vxge_hw_ring_rxd_1 |
struct vxge_hw_ring_rxd_1 - One buffer mode RxD for ring More... | |
struct | vxge_hw_fifo_txd |
struct vxge_hw_fifo_txd - Transmit Descriptor More... | |
struct | vxge_hw_device_date |
struct | vxge_hw_device_version |
struct | __vxge_hw_non_offload_db_wrapper |
struct | __vxge_hw_fifo |
struct | __vxge_hw_ring_block |
struct | __vxge_hw_ring |
struct | __vxge_hw_virtualpath |
struct | vxge_hw_device_hw_info |
struct vxge_hw_device_hw_info - Device information @host_type: Host Type @func_id: Function Id @vpath_mask: vpath bit mask @fw_version: Firmware version @fw_date: Firmware Date @flash_version: Firmware version @flash_date: Firmware Date @mac_addrs: Mac addresses for each vpath @mac_addr_masks: Mac address masks for each vpath More... | |
struct | __vxge_hw_device |
struct __vxge_hw_device - Hal device object @magic: Magic Number @bar0: BAR0 virtual address. More... | |
Variables | |
static const u16 | debug_filter = VXGE_ERR |
vxge_debug @mask: mask for the debug @fmt: printf like format string More... | |
#define VXGE_CONFIG_H |
Definition at line 18 of file vxge_config.h.
#define VXGE_CACHE_LINE_SIZE 4096 |
Definition at line 25 of file vxge_config.h.
#define WAIT_FACTOR 1 |
Definition at line 28 of file vxge_config.h.
#define VXGE_HW_MAC_MAX_WIRE_PORTS 2 |
Definition at line 30 of file vxge_config.h.
#define VXGE_HW_MAC_MAX_AGGR_PORTS 2 |
Definition at line 31 of file vxge_config.h.
#define VXGE_HW_MAC_MAX_PORTS 3 |
Definition at line 32 of file vxge_config.h.
#define VXGE_HW_MIN_MTU 68 |
Definition at line 34 of file vxge_config.h.
#define VXGE_HW_MAX_MTU 9600 |
Definition at line 35 of file vxge_config.h.
#define VXGE_HW_DEFAULT_MTU 1500 |
Definition at line 36 of file vxge_config.h.
#define __iomem |
Definition at line 39 of file vxge_config.h.
#define ____cacheline_aligned |
Definition at line 43 of file vxge_config.h.
#define VXGE_NONE 0x00 |
debug filtering masks
Definition at line 49 of file vxge_config.h.
#define VXGE_INFO 0x01 |
Definition at line 50 of file vxge_config.h.
#define VXGE_INTR 0x02 |
Definition at line 51 of file vxge_config.h.
#define VXGE_XMIT 0x04 |
Definition at line 52 of file vxge_config.h.
#define VXGE_POLL 0x08 |
Definition at line 53 of file vxge_config.h.
#define VXGE_ERR 0x10 |
Definition at line 54 of file vxge_config.h.
#define VXGE_TRACE 0x20 |
Definition at line 55 of file vxge_config.h.
#define VXGE_ALL |
Definition at line 56 of file vxge_config.h.
#define NULL_VPID 0xFFFFFFFF |
Definition at line 59 of file vxge_config.h.
#define VXGE_HW_EVENT_BASE 0 |
Definition at line 61 of file vxge_config.h.
#define VXGE_LL_EVENT_BASE 100 |
Definition at line 62 of file vxge_config.h.
#define VXGE_HW_BASE_INF 100 |
Definition at line 64 of file vxge_config.h.
#define VXGE_HW_BASE_ERR 200 |
Definition at line 65 of file vxge_config.h.
#define VXGE_HW_BASE_BADCFG 300 |
Definition at line 66 of file vxge_config.h.
#define VXGE_HW_DEF_DEVICE_POLL_MILLIS 1000 |
Definition at line 67 of file vxge_config.h.
#define VXGE_HW_MAX_PAYLOAD_SIZE_512 2 |
Definition at line 68 of file vxge_config.h.
#define VXGE_HW_RING_RXD_RTH_BUCKET_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 0, 7) |
Definition at line 157 of file vxge_config.h.
#define VXGE_HW_RING_RXD_LIST_OWN_ADAPTER vxge_mBIT(7) |
Definition at line 159 of file vxge_config.h.
#define VXGE_HW_RING_RXD_FAST_PATH_ELIGIBLE_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 8, 1) |
Definition at line 161 of file vxge_config.h.
#define VXGE_HW_RING_RXD_L3_CKSUM_CORRECT_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 9, 1) |
Definition at line 163 of file vxge_config.h.
#define VXGE_HW_RING_RXD_L4_CKSUM_CORRECT_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 10, 1) |
Definition at line 165 of file vxge_config.h.
#define VXGE_HW_RING_RXD_T_CODE_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 12, 4) |
Definition at line 167 of file vxge_config.h.
Definition at line 168 of file vxge_config.h.
#define VXGE_HW_RING_RXD_T_CODE_UNUSED VXGE_HW_RING_T_CODE_UNUSED |
Definition at line 170 of file vxge_config.h.
#define VXGE_HW_RING_RXD_SYN_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 16, 1) |
Definition at line 172 of file vxge_config.h.
#define VXGE_HW_RING_RXD_IS_ICMP_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 17, 1) |
Definition at line 174 of file vxge_config.h.
#define VXGE_HW_RING_RXD_RTH_SPDM_HIT_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 18, 1) |
Definition at line 176 of file vxge_config.h.
#define VXGE_HW_RING_RXD_RTH_IT_HIT_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 19, 1) |
Definition at line 178 of file vxge_config.h.
#define VXGE_HW_RING_RXD_RTH_HASH_TYPE_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 20, 4) |
Definition at line 180 of file vxge_config.h.
#define VXGE_HW_RING_RXD_IS_VLAN_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 24, 1) |
Definition at line 182 of file vxge_config.h.
#define VXGE_HW_RING_RXD_ETHER_ENCAP_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 25, 2) |
Definition at line 184 of file vxge_config.h.
#define VXGE_HW_RING_RXD_FRAME_PROTO_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 27, 5) |
Definition at line 186 of file vxge_config.h.
#define VXGE_HW_RING_RXD_L3_CKSUM_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 32, 16) |
Definition at line 188 of file vxge_config.h.
#define VXGE_HW_RING_RXD_L4_CKSUM_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 48, 16) |
Definition at line 190 of file vxge_config.h.
#define VXGE_HW_RING_RXD_1_BUFFER0_SIZE_GET | ( | ctrl1 | ) | vxge_bVALn(ctrl1, 2, 14) |
Definition at line 194 of file vxge_config.h.
Definition at line 195 of file vxge_config.h.
#define VXGE_HW_RING_RXD_1_BUFFER0_SIZE_MASK vxge_vBIT(0x3FFF, 2, 14) |
Definition at line 196 of file vxge_config.h.
#define VXGE_HW_RING_RXD_1_RTH_HASH_VAL_GET | ( | ctrl1 | ) | vxge_bVALn(ctrl1, 16, 32) |
Definition at line 198 of file vxge_config.h.
#define VXGE_HW_RING_RXD_VLAN_TAG_GET | ( | ctrl1 | ) | vxge_bVALn(ctrl1, 48, 16) |
Definition at line 200 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_LIST_OWN_ADAPTER vxge_mBIT(7) |
Definition at line 214 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_T_CODE_GET | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 12, 4) |
Definition at line 216 of file vxge_config.h.
Definition at line 217 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_T_CODE_UNUSED VXGE_HW_FIFO_T_CODE_UNUSED |
Definition at line 218 of file vxge_config.h.
Definition at line 220 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_GATHER_CODE_FIRST VXGE_HW_FIFO_GATHER_CODE_FIRST |
Definition at line 221 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_GATHER_CODE_LAST VXGE_HW_FIFO_GATHER_CODE_LAST |
Definition at line 222 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_LSO_EN vxge_mBIT(30) |
Definition at line 224 of file vxge_config.h.
Definition at line 225 of file vxge_config.h.
Definition at line 226 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_TX_CKO_IPV4_EN vxge_mBIT(5) |
Definition at line 229 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_TX_CKO_TCP_EN vxge_mBIT(6) |
Definition at line 230 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_TX_CKO_UDP_EN vxge_mBIT(7) |
Definition at line 231 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_VLAN_ENABLE vxge_mBIT(15) |
Definition at line 232 of file vxge_config.h.
Definition at line 234 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_NO_BW_LIMIT vxge_mBIT(43) |
Definition at line 235 of file vxge_config.h.
Definition at line 237 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_INT_TYPE_PER_LIST vxge_mBIT(46) |
Definition at line 239 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_INT_TYPE_UTILZ vxge_mBIT(47) |
Definition at line 240 of file vxge_config.h.
#define VXGE_HW_FW_STRLEN 32 |
struct vxge_hw_device_date - Date Format @day: Day @month: Month @year: Year
Structure for returning date
Definition at line 257 of file vxge_config.h.
#define VXGE_HW_NODBW_GET_TYPE | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 0, 8) |
Definition at line 293 of file vxge_config.h.
Definition at line 294 of file vxge_config.h.
#define VXGE_HW_NODBW_TYPE_NODBW 0 |
Definition at line 295 of file vxge_config.h.
#define VXGE_HW_NODBW_GET_LAST_TXD_NUMBER | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 32, 8) |
Definition at line 297 of file vxge_config.h.
Definition at line 298 of file vxge_config.h.
#define VXGE_HW_NODBW_GET_NO_SNOOP | ( | ctrl0 | ) | vxge_bVALn(ctrl0, 56, 8) |
Definition at line 300 of file vxge_config.h.
Definition at line 301 of file vxge_config.h.
#define VXGE_HW_NODBW_LIST_NO_SNOOP_TXD_READ_TXD0_WRITE 0x2 |
Definition at line 302 of file vxge_config.h.
#define VXGE_HW_NODBW_LIST_NO_SNOOP_TX_FRAME_DATA_READ 0x1 |
Definition at line 303 of file vxge_config.h.
#define VXGE_HW_FIFO_TXD_DEPTH 128 |
Definition at line 329 of file vxge_config.h.
#define VXGE_HW_MAX_RXDS_PER_BLOCK_1 127 |
Definition at line 341 of file vxge_config.h.
#define END_OF_BLOCK 0xFEFFFFFFFFFFFFFFULL |
Definition at line 345 of file vxge_config.h.
#define VXGE_HW_RING_RXD_QWORDS_MODE_1 4 |
Definition at line 364 of file vxge_config.h.
#define VXGE_HW_RING_RXD_QWORD_LIMIT 16 |
Definition at line 367 of file vxge_config.h.
#define VXGE_HW_RING_BUF_PER_BLOCK 9 |
Definition at line 371 of file vxge_config.h.
#define VXGE_HW_RING_RX_POLL_WEIGHT 8 |
Definition at line 375 of file vxge_config.h.
#define VXGE_HW_VP_NOT_OPEN 0 |
Definition at line 393 of file vxge_config.h.
#define VXGE_HW_VP_OPEN 1 |
Definition at line 394 of file vxge_config.h.
#define VXGE_HW_INFO_LEN 64 |
Definition at line 409 of file vxge_config.h.
#define VXGE_HW_PMD_INFO_LEN 16 |
Definition at line 410 of file vxge_config.h.
#define VXGE_MAX_PRINT_BUF_SIZE 128 |
Definition at line 411 of file vxge_config.h.
#define VXGE_HW_NO_MR_NO_SR_NORMAL_FUNCTION 0 |
Definition at line 429 of file vxge_config.h.
#define VXGE_HW_MR_NO_SR_VH0_BASE_FUNCTION 1 |
Definition at line 430 of file vxge_config.h.
#define VXGE_HW_NO_MR_SR_VH0_FUNCTION0 2 |
Definition at line 431 of file vxge_config.h.
#define VXGE_HW_NO_MR_SR_VH0_VIRTUAL_FUNCTION 3 |
Definition at line 432 of file vxge_config.h.
#define VXGE_HW_MR_SR_VH0_INVALID_CONFIG 4 |
Definition at line 433 of file vxge_config.h.
#define VXGE_HW_SR_VH_FUNCTION0 5 |
Definition at line 434 of file vxge_config.h.
#define VXGE_HW_SR_VH_VIRTUAL_FUNCTION 6 |
Definition at line 435 of file vxge_config.h.
#define VXGE_HW_VH_NORMAL_FUNCTION 7 |
Definition at line 436 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MIN 0 |
Definition at line 438 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MAX 11 |
Definition at line 439 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_SINGLE_FUNCTION 0 |
Definition at line 441 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION 1 |
Definition at line 442 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_SRIOV 2 |
Definition at line 443 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MRIOV 3 |
Definition at line 444 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MRIOV_8 4 |
Definition at line 445 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION_17 5 |
Definition at line 446 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_SRIOV_8 6 |
Definition at line 447 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_SRIOV_4 7 |
Definition at line 448 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION_2 8 |
Definition at line 449 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION_4 9 |
Definition at line 450 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MRIOV_4 10 |
Definition at line 451 of file vxge_config.h.
#define VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION_DIRECT_IO 11 |
Definition at line 452 of file vxge_config.h.
#define VXGE_HW_DEVICE_MAGIC 0x12345678 |
Definition at line 479 of file vxge_config.h.
#define VXGE_HW_DEVICE_DEAD 0xDEADDEAD |
Definition at line 480 of file vxge_config.h.
#define VXGE_HW_DEVICE_ACCESS_RIGHT_VPATH 0x1 |
Definition at line 492 of file vxge_config.h.
#define VXGE_HW_DEVICE_ACCESS_RIGHT_SRPCIM 0x2 |
Definition at line 493 of file vxge_config.h.
#define VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM 0x4 |
Definition at line 494 of file vxge_config.h.
#define VXGE_HW_DEVICE_LINK_STATE_SET | ( | hldev, | |
ls | |||
) | (hldev->link_state = ls) |
Definition at line 517 of file vxge_config.h.
#define VXGE_HW_DEVICE_TIM_INT_MASK_SET | ( | m0, | |
m1, | |||
i | |||
) |
Definition at line 519 of file vxge_config.h.
#define VXGE_HW_DEVICE_TIM_INT_MASK_RESET | ( | m0, | |
m1, | |||
i | |||
) |
Definition at line 530 of file vxge_config.h.
#define vxge_debug | ( | mask, | |
fmt... | |||
) |
Definition at line 762 of file vxge_config.h.
#define vxge_trace | ( | ) | vxge_debug(VXGE_TRACE, "%s:%d\n", __func__, __LINE__); |
Definition at line 767 of file vxge_config.h.
enum vxge_hw_status |
Definition at line 70 of file vxge_config.h.
enum enum vxge_hw_device_link_state - Link state enumeration.
@VXGE_HW_LINK_NONE: Invalid link state. @VXGE_HW_LINK_DOWN: Link is down. @VXGE_HW_LINK_UP: Link is up.
Enumerator | |
---|---|
VXGE_HW_LINK_NONE | |
VXGE_HW_LINK_DOWN | |
VXGE_HW_LINK_UP |
Definition at line 139 of file vxge_config.h.
enum vxge_hw_txdl_state |
enum enum vxge_hw_txdl_state - Descriptor (TXDL) state.
@VXGE_HW_TXDL_STATE_NONE: Invalid state. @VXGE_HW_TXDL_STATE_AVAIL: Descriptor is available for reservation. @VXGE_HW_TXDL_STATE_POSTED: Descriptor is posted for processing by the device. @VXGE_HW_TXDL_STATE_FREED: Descriptor is free and can be reused for filling-in and posting later.
Titan/HW descriptor states.
Enumerator | |
---|---|
VXGE_HW_TXDL_STATE_NONE | |
VXGE_HW_TXDL_STATE_AVAIL | |
VXGE_HW_TXDL_STATE_POSTED | |
VXGE_HW_TXDL_STATE_FREED |
Definition at line 553 of file vxge_config.h.
FILE_LICENCE | ( | GPL2_ONLY | ) |
u64 __vxge_hw_vpath_pci_func_mode_get | ( | u32 | vp_id, |
struct vxge_hw_vpath_reg __iomem * | vpath_reg | ||
) |
Definition at line 562 of file vxge_config.h.
References offset.
Referenced by vxge_hw_fifo_txd_offset_up(), and vxge_hw_ring_rxd_offset_up().
|
inlinestatic |
Definition at line 570 of file vxge_config.h.
References __vxge_hw_desc_offset_up(), offset, and VXGE_HW_MAX_RXDS_PER_BLOCK_1.
Referenced by vxge_hw_vpath_poll_rx().
|
inlinestatic |
Definition at line 576 of file vxge_config.h.
References __vxge_hw_desc_offset_up(), offset, and VXGE_HW_FIFO_TXD_DEPTH.
Referenced by vxge_hw_fifo_txdl_post(), and vxge_hw_vpath_poll_tx().
|
inlinestatic |
vxge_hw_ring_rxd_1b_set - Prepare 1-buffer-mode descriptor.
@rxdh: Descriptor handle. @dma_pointer: DMA address of a single receive buffer this descriptor should carry. Note that by the time vxge_hw_ring_rxd_1b_set is called, the receive buffer should be already mapped to the device @size: Size of the receive @dma_pointer buffer.
Prepare 1-buffer-mode Rx descriptor for posting (via vxge_hw_ring_rxd_post()).
This inline helper-function does not return any parameters and always succeeds.
Definition at line 597 of file vxge_config.h.
References io_buffer::data, rxdp, size, virt_to_bus(), VXGE_HW_RING_RXD_1_BUFFER0_SIZE, and VXGE_HW_RING_RXD_1_BUFFER0_SIZE_MASK.
Referenced by vxge_hw_ring_replenish(), and vxge_hw_vpath_poll_rx().
enum vxge_hw_status vxge_hw_device_hw_info_get | ( | struct pci_device * | pdev, |
void __iomem * | bar0, | ||
struct vxge_hw_device_hw_info * | hw_info | ||
) |
vxge_hw_device_hw_info_get - Get the hw information Returns the vpath mask that has the bits set for each vpath allocated for the driver, FW version information and the first mac addresse for each vpath
Definition at line 384 of file vxge_config.c.
References __iomem, __vxge_hw_device_access_rights_get(), __vxge_hw_device_get_legacy_reg(), __vxge_hw_device_toc_get(), __vxge_hw_device_vpath_reset_in_prog_check(), __vxge_hw_vpath_addr_get(), __vxge_hw_vpath_card_info_get(), __vxge_hw_vpath_func_id_get(), __vxge_hw_vpath_fw_ver_get(), vxge_hw_device_hw_info::func_id, vxge_hw_device_hw_info::host_type, vxge_hw_common_reg::host_type_assignments, memset(), NULL, readq(), status, vxge_hw_toc_reg::toc_common_pointer, vxge_hw_toc_reg::toc_mrpcim_pointer, vxge_hw_toc_reg::toc_vpath_pointer, vxge_hw_toc_reg::toc_vpmgmt_pointer, u32, vxge_hw_common_reg::vpath_assignments, vxge_hw_device_hw_info::vpath_mask, vxge_hw_common_reg::vpath_rst_in_prog, VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM, VXGE_HW_ERR_CRITICAL, VXGE_HW_HOST_TYPE_ASSIGNMENTS_GET_HOST_TYPE_ASSIGNMENTS, VXGE_HW_MAX_VIRTUAL_PATHS, VXGE_HW_OK, vxge_mBIT, vxge_trace, wmb(), writeq(), and vxge_hw_mrpcim_reg::xgmac_gen_fw_memo_mask.
Referenced by vxge_probe().
enum vxge_hw_status __vxge_hw_vpath_fw_ver_get | ( | struct vxge_hw_vpath_reg __iomem * | vpath_reg, |
struct vxge_hw_device_hw_info * | hw_info | ||
) |
Definition at line 1056 of file vxge_config.c.
References __vxge_hw_pio_mem_write64(), vxge_hw_device_version::build, data1, data2, vxge_hw_device_date::date, vxge_hw_device_date::day, vxge_hw_device_hw_info::flash_date, vxge_hw_device_hw_info::flash_version, vxge_hw_device_hw_info::fw_date, vxge_hw_device_hw_info::fw_version, vxge_hw_device_version::major, vxge_hw_device_version::minor, vxge_hw_device_date::month, readq(), snprintf(), status, u32, vxge_hw_device_version::version, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_FAIL, VXGE_HW_FW_STRLEN, VXGE_HW_OK, VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION, VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_READ_ENTRY, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO, VXGE_HW_RTS_ACCESS_STEER_CTRL_OFFSET, VXGE_HW_RTS_ACCESS_STEER_CTRL_RMACJ_STATUS, VXGE_HW_RTS_ACCESS_STEER_CTRL_STROBE, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_BUILD, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_DAY, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_MAJOR, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_MINOR, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_MONTH, VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_FW_VER_YEAR, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_BUILD, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_DAY, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_MAJOR, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_MINOR, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_MONTH, VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_FLASH_VER_YEAR, and vxge_hw_device_date::year.
Referenced by vxge_hw_device_hw_info_get().
enum vxge_hw_status __vxge_hw_vpath_card_info_get | ( | struct vxge_hw_vpath_reg __iomem * | vpath_reg, |
struct vxge_hw_device_hw_info * | hw_info | ||
) |
Definition at line 935 of file vxge_config.c.
References __vxge_hw_pio_mem_write64(), __vxge_hw_read_rts_ds(), be64_to_cpu, data1, data2, vxge_hw_device_hw_info::part_number, vxge_hw_device_hw_info::product_desc, readq(), vxge_hw_device_hw_info::serial_number, status, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_OK, VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION, VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_READ_MEMO_ENTRY, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO, VXGE_HW_RTS_ACCESS_STEER_CTRL_OFFSET, VXGE_HW_RTS_ACCESS_STEER_CTRL_RMACJ_STATUS, VXGE_HW_RTS_ACCESS_STEER_CTRL_STROBE, VXGE_HW_RTS_ACCESS_STEER_DATA0_MEMO_ITEM_DESC_0, VXGE_HW_RTS_ACCESS_STEER_DATA0_MEMO_ITEM_DESC_3, VXGE_HW_RTS_ACCESS_STEER_DATA0_MEMO_ITEM_PART_NUMBER, and VXGE_HW_RTS_ACCESS_STEER_DATA0_MEMO_ITEM_SERIAL_NUMBER.
Referenced by vxge_hw_device_hw_info_get().
|
inlinestatic |
vxge_hw_device_link_state_get - Get link state.
@devh: HW device handle.
Get link state. Returns: link state.
Definition at line 629 of file vxge_config.h.
References __vxge_hw_device::link_state.
Referenced by vxge_open().
void vxge_hw_device_terminate | ( | struct __vxge_hw_device * | devh | ) |
Definition at line 542 of file vxge_config.c.
References assert(), free, __vxge_hw_device::magic, VXGE_HW_DEVICE_DEAD, VXGE_HW_DEVICE_MAGIC, and vxge_trace.
Referenced by vxge_hw_device_initialize(), vxge_probe(), and vxge_remove().
enum vxge_hw_status vxge_hw_device_initialize | ( | struct __vxge_hw_device ** | devh, |
void * | bar0, | ||
struct pci_device * | pdev, | ||
u8 | titan1 | ||
) |
Definition at line 495 of file vxge_config.c.
References __vxge_hw_device_host_info_get(), __vxge_hw_device_pci_e_init(), __vxge_hw_device_reg_addr_get(), __vxge_hw_device::bar0, __vxge_hw_device::magic, NULL, __vxge_hw_device::pdev, status, __vxge_hw_device::titan1, vxge_debug, VXGE_ERR, VXGE_HW_DEVICE_MAGIC, vxge_hw_device_terminate(), VXGE_HW_ERR_OUT_OF_MEMORY, VXGE_HW_OK, vxge_trace, and zalloc().
Referenced by vxge_probe().
enum vxge_hw_status vxge_hw_vpath_open | ( | struct __vxge_hw_device * | hldev, |
struct vxge_vpath * | vpath | ||
) |
Definition at line 1690 of file vxge_config.c.
References __vxge_hw_fifo_create(), __vxge_hw_fifo_delete(), __vxge_hw_ring_create(), __vxge_hw_vp_initialize(), __vxge_hw_vp_terminate(), __vxge_hw_vpath_prc_configure(), __vxge_hw_virtualpath::fifoh, __vxge_hw_device::first_vp_id, __vxge_hw_virtualpath::hldev, __vxge_hw_virtualpath::ringh, status, __vxge_hw_device::virtual_path, vxge_vpath::vp_open, VXGE_HW_ERR_INVALID_STATE, VXGE_HW_OK, VXGE_HW_VP_OPEN, and vxge_trace.
Referenced by vxge_open_vpaths().
enum vxge_hw_status __vxge_hw_device_vpath_reset_in_prog_check | ( | u64 __iomem * | vpath_rst_in_prog | ) |
Definition at line 178 of file vxge_config.c.
References __vxge_hw_device_register_poll(), status, vpath_rst_in_prog, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_VPATH_RST_IN_PROG_VPATH_RST_IN_PROG, and vxge_trace.
Referenced by __vxge_hw_device_reg_addr_get(), and vxge_hw_device_hw_info_get().
enum vxge_hw_status vxge_hw_vpath_close | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1760 of file vxge_config.c.
References __vxge_hw_fifo_delete(), __vxge_hw_ring_delete(), __vxge_hw_vp_terminate(), __vxge_hw_virtualpath::fifoh, __vxge_hw_virtualpath::hldev, NULL, __vxge_hw_virtualpath::ringh, status, __vxge_hw_virtualpath::vp_id, __vxge_hw_virtualpath::vp_open, __vxge_hw_device::vpaths_deployed, VXGE_HW_ERR_VPATH_NOT_OPEN, VXGE_HW_OK, VXGE_HW_VP_NOT_OPEN, vxge_mBIT, and vxge_trace.
Referenced by vxge_close_vpaths().
enum vxge_hw_status vxge_hw_vpath_reset | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1793 of file vxge_config.c.
References __vxge_hw_vpath_reset(), __vxge_hw_virtualpath::hldev, status, __vxge_hw_virtualpath::vp_id, __vxge_hw_virtualpath::vp_open, VXGE_HW_ERR_VPATH_NOT_OPEN, VXGE_HW_VP_NOT_OPEN, and vxge_trace.
Referenced by vxge_reset_all_vpaths().
enum vxge_hw_status vxge_hw_vpath_recover_from_reset | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1818 of file vxge_config.c.
References __vxge_hw_vpath_initialize(), __vxge_hw_vpath_prc_configure(), __vxge_hw_vpath_reset_check(), __vxge_hw_virtualpath::hldev, status, __vxge_hw_virtualpath::vp_id, __vxge_hw_virtualpath::vp_open, VXGE_HW_ERR_VPATH_NOT_OPEN, VXGE_HW_OK, VXGE_HW_VP_NOT_OPEN, and vxge_trace.
Referenced by vxge_reset_all_vpaths().
void vxge_hw_vpath_enable | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1854 of file vxge_config.c.
References __vxge_hw_pio_mem_write32_upper(), vxge_hw_common_reg::cmn_rsthdlr_cfg1, __vxge_hw_device::common_reg, __vxge_hw_virtualpath::hldev, __vxge_hw_virtualpath::vp_id, vxge_bVALn, VXGE_HW_CMN_RSTHDLR_CFG1_CLR_VPATH_RESET, and vxge_trace.
Referenced by vxge_open().
enum vxge_hw_status vxge_hw_vpath_mtu_set | ( | struct __vxge_hw_virtualpath * | vpath, |
u32 | new_mtu | ||
) |
Definition at line 1661 of file vxge_config.c.
References __vxge_hw_virtualpath::max_mtu, readq(), vxge_hw_vpath_reg::rxmac_vcfg0, status, __vxge_hw_virtualpath::vp_reg, VXGE_HW_ERR_INVALID_MTU_SIZE, VXGE_HW_MAC_HEADER_MAX_SIZE, VXGE_HW_MIN_MTU, VXGE_HW_OK, VXGE_HW_RXMAC_VCFG0_RTS_MAX_FRM_LEN, vxge_trace, and writeq().
Referenced by vxge_open().
void vxge_hw_vpath_rx_doorbell_init | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1737 of file vxge_config.c.
References __vxge_hw_virtualpath::hldev, vxge_hw_vpath_reg::prc_rxd_doorbell, readq(), vxge_hw_vpath_reg::rxdmem_size, __vxge_hw_device::titan1, __vxge_hw_virtualpath::vp_reg, VXGE_HW_PRC_RXD_DOORBELL_NEW_QW_CNT, VXGE_HW_RING_RXD_QWORDS_MODE_1, VXGE_HW_RXDMEM_SIZE_PRC_RXDMEM_SIZE, vxge_trace, and writeq().
Referenced by vxge_open().
void __vxge_hw_device_pci_e_init | ( | struct __vxge_hw_device * | hldev | ) |
Definition at line 126 of file vxge_config.c.
References cmd, PCI_COMMAND, pci_read_config_word(), pci_write_config_word(), __vxge_hw_device::pdev, and vxge_trace.
Referenced by vxge_hw_device_initialize().
enum vxge_hw_status __vxge_hw_legacy_swapper_set | ( | struct vxge_hw_legacy_reg __iomem * | legacy_reg | ) |
Definition at line 683 of file vxge_config.c.
References __vxge_hw_device::legacy_reg, vxge_hw_legacy_reg::pifm_rd_flip_en, vxge_hw_legacy_reg::pifm_rd_swap_en, vxge_hw_legacy_reg::pifm_wr_flip_en, vxge_hw_legacy_reg::pifm_wr_swap_en, readq(), status, vxge_hw_legacy_reg::toc_swapper_fb, VXGE_HW_ERR_SWAPPER_CTRL, VXGE_HW_OK, VXGE_HW_SWAPPER_BIT_FLIPPED, VXGE_HW_SWAPPER_BYTE_SWAPPED, VXGE_HW_SWAPPER_BYTE_SWAPPED_BIT_FLIPPED, VXGE_HW_SWAPPER_INITIAL_VALUE, VXGE_HW_SWAPPER_READ_BIT_FLAP_ENABLE, VXGE_HW_SWAPPER_READ_BYTE_SWAP_ENABLE, VXGE_HW_SWAPPER_WRITE_BIT_FLAP_ENABLE, VXGE_HW_SWAPPER_WRITE_BYTE_SWAP_ENABLE, vxge_trace, wmb(), and writeq().
Referenced by __vxge_hw_device_get_legacy_reg(), and __vxge_hw_vpath_initialize().
enum vxge_hw_status __vxge_hw_vpath_swapper_set | ( | struct vxge_hw_vpath_reg __iomem * | vpath_reg | ) |
Definition at line 739 of file vxge_config.c.
References readq(), vxge_hw_vpath_reg::vpath_general_cfg1, __vxge_hw_device::vpath_reg, VXGE_HW_OK, VXGE_HW_VPATH_GENERAL_CFG1_CTL_BYTE_SWAPEN, vxge_trace, wmb(), and writeq().
Referenced by __vxge_hw_vpath_initialize().
enum vxge_hw_status __vxge_hw_kdfc_swapper_set | ( | struct vxge_hw_legacy_reg __iomem * | legacy_reg, |
struct vxge_hw_vpath_reg __iomem * | vpath_reg | ||
) |
Definition at line 760 of file vxge_config.c.
References vxge_hw_vpath_reg::kdfcctl_cfg0, __vxge_hw_device::legacy_reg, vxge_hw_legacy_reg::pifm_wr_swap_en, readq(), __vxge_hw_device::vpath_reg, VXGE_HW_KDFCCTL_CFG0_BYTE_SWAPEN_FIFO0, VXGE_HW_KDFCCTL_CFG0_BYTE_SWAPEN_FIFO1, VXGE_HW_KDFCCTL_CFG0_BYTE_SWAPEN_FIFO2, VXGE_HW_OK, VXGE_HW_SWAPPER_WRITE_BYTE_SWAP_ENABLE, vxge_trace, wmb(), and writeq().
Referenced by __vxge_hw_vpath_kdfc_configure().
enum vxge_hw_status __vxge_hw_device_register_poll | ( | void __iomem * | reg, |
u64 | mask, | ||
u32 | max_millis | ||
) |
Definition at line 147 of file vxge_config.c.
References readq(), reg, udelay(), VXGE_HW_FAIL, and VXGE_HW_OK.
Referenced by __vxge_hw_device_vpath_reset_in_prog_check(), __vxge_hw_pio_mem_write64(), __vxge_hw_vpath_pci_read(), __vxge_hw_vpath_reset_check(), and vxge_hw_set_fw_api().
Definition at line 703 of file vxge_config.h.
References addr, val, and writel().
Referenced by __vxge_hw_pio_mem_write64(), __vxge_hw_vpath_reset(), vxge_hw_device_clear_tx_rx(), vxge_hw_device_intr_disable(), vxge_hw_device_intr_enable(), vxge_hw_device_mask_all(), vxge_hw_device_unmask_all(), vxge_hw_vpath_enable(), vxge_hw_vpath_intr_disable(), and vxge_hw_vpath_intr_enable().
Definition at line 708 of file vxge_config.h.
References addr, val, and writel().
Referenced by __vxge_hw_pio_mem_write64().
|
inlinestatic |
Definition at line 714 of file vxge_config.h.
References __vxge_hw_device_register_poll(), __vxge_hw_pio_mem_write32_lower(), __vxge_hw_pio_mem_write32_upper(), addr, status, vxge_bVALn, VXGE_HW_OK, and wmb().
Referenced by __vxge_hw_vpath_addr_get(), __vxge_hw_vpath_card_info_get(), and __vxge_hw_vpath_fw_ver_get().
void __vxge_hw_device_host_info_get | ( | struct __vxge_hw_device * | hldev | ) |
Definition at line 347 of file vxge_config.c.
References __vxge_hw_device_access_rights_get(), __vxge_hw_vpath_func_id_get(), __vxge_hw_device::access_rights, __vxge_hw_device::common_reg, __vxge_hw_device::first_vp_id, __vxge_hw_device::func_id, __vxge_hw_device::host_type, vxge_hw_common_reg::host_type_assignments, readq(), u32, __vxge_hw_device::vpath_assignments, vxge_hw_common_reg::vpath_assignments, __vxge_hw_device::vpmgmt_reg, VXGE_HW_HOST_TYPE_ASSIGNMENTS_GET_HOST_TYPE_ASSIGNMENTS, VXGE_HW_MAX_VIRTUAL_PATHS, and vxge_mBIT.
Referenced by vxge_hw_device_initialize().
enum vxge_hw_status __vxge_hw_device_initialize | ( | struct __vxge_hw_device * | hldev | ) |
enum vxge_hw_status __vxge_hw_vpath_pci_read | ( | struct __vxge_hw_virtualpath * | vpath, |
u32 | phy_func_0, | ||
u32 | offset, | ||
u32 * | val | ||
) |
Definition at line 864 of file vxge_config.c.
References __iomem, __vxge_hw_device_register_poll(), offset, vxge_hw_vpath_reg::pci_config_access_cfg1, vxge_hw_vpath_reg::pci_config_access_cfg2, vxge_hw_vpath_reg::pci_config_access_status, readq(), status, u32, val, __vxge_hw_virtualpath::vp_reg, vxge_bVALn, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_FAIL, VXGE_HW_INTR_MASK_ALL, VXGE_HW_OK, VXGE_HW_PCI_CONFIG_ACCESS_CFG1_ADDRESS, VXGE_HW_PCI_CONFIG_ACCESS_CFG1_SEL_FUNC0, VXGE_HW_PCI_CONFIG_ACCESS_CFG2_REQ, VXGE_HW_PCI_CONFIG_ACCESS_STATUS_ACCESS_ERR, wmb(), and writeq().
Referenced by __vxge_hw_vpath_initialize().
enum vxge_hw_status __vxge_hw_vpath_addr_get | ( | struct vxge_hw_vpath_reg __iomem * | vpath_reg, |
u8(macaddr) | [ETH_ALEN], | ||
u8(macaddr_mask) | [ETH_ALEN] | ||
) |
u32 __vxge_hw_vpath_func_id_get | ( | struct vxge_hw_vpmgmt_reg __iomem * | vpmgmt_reg | ) |
Definition at line 905 of file vxge_config.c.
References readq(), and VXGE_HW_VPATH_TO_FUNC_MAP_CFG1_GET_VPATH_TO_FUNC_MAP_CFG1.
Referenced by __vxge_hw_device_host_info_get(), and vxge_hw_device_hw_info_get().
enum vxge_hw_status __vxge_hw_vpath_reset_check | ( | struct __vxge_hw_virtualpath * | vpath | ) |
Definition at line 1249 of file vxge_config.c.
References __vxge_hw_device_register_poll(), __vxge_hw_device::common_reg, __vxge_hw_virtualpath::hldev, status, __vxge_hw_virtualpath::vp_id, vxge_hw_common_reg::vpath_rst_in_prog, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_VPATH_RST_IN_PROG_VPATH_RST_IN_PROG, and vxge_trace.
Referenced by __vxge_hw_vp_initialize(), vxge_hw_vpath_recover_from_reset(), and vxge_reset_all_vpaths().
enum vxge_hw_status vxge_hw_vpath_strip_fcs_check | ( | struct __vxge_hw_device * | hldev, |
u64 | vpath_mask | ||
) |
Definition at line 789 of file vxge_config.c.
References __iomem, readq(), vxge_hw_vpmgmt_reg::rxmac_cfg0_port_vpmgmt_clone, status, __vxge_hw_device::vpmgmt_reg, VXGE_HW_FAIL, VXGE_HW_MAC_MAX_MAC_PORT_ID, VXGE_HW_MAX_VIRTUAL_PATHS, VXGE_HW_OK, VXGE_HW_RXMAC_CFG0_PORT_VPMGMT_CLONE_STRIP_FCS, and vxge_mBIT.
Referenced by vxge_probe().
enum vxge_hw_status vxge_hw_get_func_mode | ( | struct __vxge_hw_device * | hldev, |
u32 * | func_mode | ||
) |
Definition at line 97 of file vxge_config.c.
References __iomem, __vxge_hw_device::first_vp_id, readq(), vxge_hw_vpath_reg::rts_access_steer_data0, status, __vxge_hw_device::vpath_reg, VXGE_HW_FW_API_GET_FUNC_MODE, VXGE_HW_GET_FUNC_MODE_VAL, VXGE_HW_OK, and vxge_hw_set_fw_api().
Referenced by vxge_probe().
enum vxge_hw_status vxge_hw_set_fw_api | ( | struct __vxge_hw_device * | hldev, |
u64 | vp_id, | ||
u32 | action, | ||
u32 | offset, | ||
u64 | data0, | ||
u64 | data1 | ||
) |
Definition at line 47 of file vxge_config.c.
References __iomem, __vxge_hw_device_register_poll(), data0, data1, offset, readq(), vxge_hw_vpath_reg::rts_access_steer_ctrl, vxge_hw_vpath_reg::rts_access_steer_data0, vxge_hw_vpath_reg::rts_access_steer_data1, status, __vxge_hw_device::vpath_reg, VXGE_HW_DEF_DEVICE_POLL_MILLIS, VXGE_HW_FAIL, VXGE_HW_OK, VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL, VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO, VXGE_HW_RTS_ACCESS_STEER_CTRL_OFFSET, VXGE_HW_RTS_ACCESS_STEER_CTRL_RMACJ_STATUS, VXGE_HW_RTS_ACCESS_STEER_CTRL_STROBE, WAIT_FACTOR, wmb(), and writeq().
Referenced by vxge_hw_get_func_mode().
void vxge_hw_vpath_set_zero_rx_frm_len | ( | struct __vxge_hw_device * | hldev | ) |
Definition at line 30 of file vxge_config.c.
References __iomem, readq(), vxge_hw_vpath_reg::rxmac_vcfg0, __vxge_hw_device::virtual_path, __vxge_hw_virtualpath::vp_reg, VXGE_HW_RXMAC_VCFG0_RTS_MAX_FRM_LEN, and writeq().
Referenced by vxge_close().
vxge_debug @mask: mask for the debug @fmt: printf like format string
Definition at line 761 of file vxge_config.h.