|
iPXE
|
#include "igbvf_vf.h"Go to the source code of this file.
Data Structures | |
| struct | igbvf_queue_stats |
| struct | igbvf_buffer |
| struct | igbvf_ring |
| struct | igbvf_adapter |
| struct | igbvf_info |
Macros | |
| #define | _IGBVF_H_ |
| #define | IGBVF_START_ITR 648 /* ~6000 ints/sec */ |
| #define | IGBVF_DEFAULT_TXD 256 |
| #define | IGBVF_MAX_TXD 4096 |
| #define | IGBVF_MIN_TXD 80 |
| #define | IGBVF_DEFAULT_RXD 256 |
| #define | IGBVF_MAX_RXD 4096 |
| #define | IGBVF_MIN_RXD 80 |
| #define | IGBVF_MIN_ITR_USECS 10 /* 100000 irq/sec */ |
| #define | IGBVF_MAX_ITR_USECS 10000 /* 100 irq/sec */ |
| #define | IGBVF_RX_PTHRESH 16 |
| #define | IGBVF_RX_HTHRESH 8 |
| #define | IGBVF_RX_WTHRESH 1 |
| #define | IGBVF_TX_PTHRESH 8 |
| #define | IGBVF_TX_HTHRESH 1 |
| #define | IGBVF_TX_WTHRESH 1 |
| #define | MAXIMUM_ETHERNET_VLAN_SIZE 1522 |
| #define | IGBVF_FC_PAUSE_TIME 0x0680 /* 858 usec */ |
| #define | IGBVF_TX_QUEUE_WAKE 32 |
| #define | IGBVF_RX_BUFFER_WRITE 16 /* Must be power of 2 */ |
| #define | AUTO_ALL_MODES 0 |
| #define | IGBVF_EEPROM_APME 0x0400 |
| #define | IGBVF_MNG_VLAN_NONE (-1) |
| #define | NUM_TX_DESC 8 |
| #define | NUM_RX_DESC 8 |
| #define | IGBVF_FLAG_RX_CSUM_DISABLED (1 << 0) |
| #define | IGBVF_DESC_UNUSED(R) |
| #define | IGBVF_RX_DESC_ADV(R, i) |
| #define | IGBVF_TX_DESC_ADV(R, i) |
| #define | IGBVF_TX_CTXTDESC_ADV(R, i) |
| #define | er32(reg) |
| #define | ew32(reg, val) |
| #define | e1e_flush() |
Enumerations | |
| enum | igbvf_boards { board_vf } |
| enum | igbvf_state_t { __IGBVF_TESTING , __IGBVF_RESETTING , __IGBVF_DOWN } |
| enum | latency_range { lowest_latency = 0 , low_latency = 1 , bulk_latency = 2 , latency_invalid = 255 } |
Functions | |
| FILE_LICENCE (GPL2_ONLY) | |
| void | igbvf_check_options (struct igbvf_adapter *adapter) |
| void | igbvf_set_ethtool_ops (struct net_device *netdev) |
| int | igbvf_up (struct igbvf_adapter *adapter) |
| void | igbvf_down (struct igbvf_adapter *adapter) |
| void | igbvf_reinit_locked (struct igbvf_adapter *adapter) |
| void | igbvf_reset (struct igbvf_adapter *adapter) |
| int | igbvf_setup_rx_resources (struct igbvf_adapter *adapter) |
| igbvf_setup_rx_resources - allocate Rx resources (Descriptors) | |
| int | igbvf_setup_tx_resources (struct igbvf_adapter *adapter) |
| igbvf_setup_tx_resources - allocate Tx resources (Descriptors) | |
| void | igbvf_free_rx_resources (struct igbvf_adapter *adapter) |
| igbvf_free_rx_resources - Free Rx Resources @adapter: board private structure | |
| void | igbvf_free_tx_resources (struct igbvf_adapter *adapter) |
| igbvf_free_tx_resources - Free Tx Resources per Queue @adapter: board private structure | |
| void | igbvf_update_stats (struct igbvf_adapter *adapter) |
| void | igbvf_set_interrupt_capability (struct igbvf_adapter *adapter) |
| void | igbvf_reset_interrupt_capability (struct igbvf_adapter *adapter) |
| static u32 | __er32 (struct e1000_hw *hw, unsigned long reg) |
| static void | __ew32 (struct e1000_hw *hw, unsigned long reg, u32 val) |
Variables | |
| char | igbvf_driver_name [] |
| const char | igbvf_driver_version [] |
| unsigned int | copybreak |
| #define IGBVF_RX_PTHRESH 16 |
Definition at line 68 of file igbvf.h.
Referenced by igbvf_configure_rx().
| #define IGBVF_RX_HTHRESH 8 |
Definition at line 69 of file igbvf.h.
Referenced by igbvf_configure_rx().
| #define IGBVF_RX_WTHRESH 1 |
Definition at line 70 of file igbvf.h.
Referenced by igbvf_configure_rx().
| #define MAXIMUM_ETHERNET_VLAN_SIZE 1522 |
Definition at line 77 of file igbvf.h.
Referenced by igbvf_refill_rx_ring(), igbvf_setup_rx_resources(), and igbvf_sw_init().
| #define NUM_TX_DESC 8 |
Definition at line 280 of file igbvf.h.
Referenced by igbvf_probe(), igbvf_process_tx_packets(), igbvf_transmit(), sis190_free(), sis190_init_ring(), sis190_process_tx(), sis190_transmit(), skge_tx_avail(), and skge_up().
| #define NUM_RX_DESC 8 |
Definition at line 281 of file igbvf.h.
Referenced by igbvf_configure_rx(), igbvf_free_rx_resources(), igbvf_probe(), igbvf_process_rx_packets(), igbvf_refill_rx_ring(), igbvf_setup_rx_resources(), sis190_free(), sis190_init_ring(), sis190_process_rx(), sis190_rx_fill(), sis900_init_rxd(), sis900_poll(), skge_rx_done(), skge_rx_refill(), and skge_up().
| #define IGBVF_DESC_UNUSED | ( | R | ) |
Definition at line 317 of file igbvf.h.
| #define IGBVF_RX_DESC_ADV | ( | R, | |
| i ) |
Definition at line 321 of file igbvf.h.
| #define IGBVF_TX_DESC_ADV | ( | R, | |
| i ) |
Definition at line 323 of file igbvf.h.
| #define IGBVF_TX_CTXTDESC_ADV | ( | R, | |
| i ) |
Definition at line 325 of file igbvf.h.
| #define er32 | ( | reg | ) |
Definition at line 373 of file igbvf.h.
Referenced by igbvf_close(), igbvf_config_collision_dist(), igbvf_configure_rx(), igbvf_configure_tx(), igbvf_get_hw_control(), and igbvf_process_rx_packets().
Definition at line 374 of file igbvf.h.
Referenced by igbvf_close(), igbvf_config_collision_dist(), igbvf_configure_rx(), igbvf_configure_tx(), igbvf_get_hw_control(), igbvf_irq_disable(), igbvf_irq_enable(), igbvf_refill_rx_ring(), igbvf_setup_srrctl(), and igbvf_transmit().
| #define e1e_flush | ( | ) |
Definition at line 375 of file igbvf.h.
Referenced by igbvf_config_collision_dist(), igbvf_configure_tx(), and igbvf_transmit().
| enum igbvf_boards |
| enum igbvf_state_t |
| Enumerator | |
|---|---|
| __IGBVF_TESTING | |
| __IGBVF_RESETTING | |
| __IGBVF_DOWN | |
| enum latency_range |
| Enumerator | |
|---|---|
| lowest_latency | |
| low_latency | |
| bulk_latency | |
| latency_invalid | |
Definition at line 334 of file igbvf.h.
| FILE_LICENCE | ( | GPL2_ONLY | ) |
|
extern |
|
extern |
References netdev.
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 426 of file igbvf_main.c.
References e1000_mac_info::addr, DBG, ETH_ALEN, igbvf_adapter::hw, is_valid_ether_addr(), e1000_hw::mac, mac, memcpy(), igbvf_adapter::netdev, and netdev.
Referenced by igbvf_close(), igbvf_open(), igbvf_probe(), and igbvf_remove().
|
extern |
igbvf_setup_rx_resources - allocate Rx resources (Descriptors)
| adapter | e1000 private structure |
Definition at line 564 of file igbvf_main.c.
References alloc_iob(), io_buffer::data, DBG, ENOMEM, e1000_adv_rx_desc::hdr_addr, malloc_phys(), MAXIMUM_ETHERNET_VLAN_SIZE, memset(), NUM_RX_DESC, e1000_adv_rx_desc::pkt_addr, e1000_adv_rx_desc::read, igbvf_adapter::rx_base, igbvf_adapter::rx_iobuf, igbvf_adapter::rx_ring_size, e1000_adv_rx_desc::status_error, e1000_adv_rx_desc::upper, virt_to_bus(), and e1000_adv_rx_desc::wb.
Referenced by igbvf_open().
|
extern |
igbvf_setup_tx_resources - allocate Tx resources (Descriptors)
| adapter | e1000 private structure |
| rc | Returns 0 on success, negative on failure |
Definition at line 43 of file igbvf_main.c.
References DBG, ENOMEM, malloc_phys(), memset(), igbvf_adapter::tx_base, igbvf_adapter::tx_ring_size, and virt_to_bus().
Referenced by igbvf_open().
|
extern |
igbvf_free_rx_resources - Free Rx Resources @adapter: board private structure
Free all receive software resources
Definition at line 90 of file igbvf_main.c.
References DBG, free_iob(), free_phys(), NUM_RX_DESC, igbvf_adapter::rx_base, igbvf_adapter::rx_iobuf, and igbvf_adapter::rx_ring_size.
Referenced by igbvf_close().
|
extern |
igbvf_free_tx_resources - Free Tx Resources per Queue @adapter: board private structure
Free all transmit software resources
Definition at line 77 of file igbvf_main.c.
References DBG, free_phys(), igbvf_adapter::tx_base, and igbvf_adapter::tx_ring_size.
Referenced by igbvf_close(), and igbvf_open().
|
extern |
|
extern |
|
extern |
References copybreak.
|
extern |
|
extern |
|
extern |
Referenced by igbvf_reset_interrupt_capability().