Linux Kernel
3.7.1
|
Go to the source code of this file.
#define e_crit | ( | msglvl, | |
format, | |||
arg... | |||
) | netif_crit(adapter, msglvl, adapter->netdev, format, ## arg) |
Definition at line 159 of file ixgbe_common.h.
Definition at line 149 of file ixgbe_common.h.
Definition at line 145 of file ixgbe_common.h.
Definition at line 151 of file ixgbe_common.h.
Definition at line 147 of file ixgbe_common.h.
#define e_err | ( | msglvl, | |
format, | |||
arg... | |||
) | netif_err(adapter, msglvl, adapter->netdev, format, ## arg) |
Definition at line 155 of file ixgbe_common.h.
#define e_info | ( | msglvl, | |
format, | |||
arg... | |||
) | netif_info(adapter, msglvl, adapter->netdev, format, ## arg) |
Definition at line 153 of file ixgbe_common.h.
#define e_warn | ( | msglvl, | |
format, | |||
arg... | |||
) | netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) |
Definition at line 157 of file ixgbe_common.h.
#define hw_dbg | ( | hw, | |
format, | |||
arg... | |||
) | netdev_dbg(((struct ixgbe_adapter *)(hw->back))->netdev, format, ##arg) |
Definition at line 143 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE1_DATA 0x01 |
Definition at line 114 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE1_THERM_LIMIT 0x19 |
Definition at line 115 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE2_DATA 0x23 |
Definition at line 116 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE2_THERM_LIMIT 0x1A |
Definition at line 117 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE3_DATA 0x2A |
Definition at line 118 of file ixgbe_common.h.
#define IXGBE_EMC_DIODE3_THERM_LIMIT 0x30 |
Definition at line 119 of file ixgbe_common.h.
#define IXGBE_EMC_INTERNAL_DATA 0x00 |
Definition at line 112 of file ixgbe_common.h.
#define IXGBE_EMC_INTERNAL_THERM_LIMIT 0x20 |
Definition at line 113 of file ixgbe_common.h.
#define IXGBE_I2C_THERMAL_SENSOR_ADDR 0xF8 |
Definition at line 111 of file ixgbe_common.h.
Definition at line 133 of file ixgbe_common.h.
Definition at line 138 of file ixgbe_common.h.
#define IXGBE_WRITE_FLUSH | ( | a | ) | IXGBE_READ_REG(a, IXGBE_STATUS) |
Definition at line 141 of file ixgbe_common.h.
Definition at line 124 of file ixgbe_common.h.
Definition at line 131 of file ixgbe_common.h.
ixgbe_blink_led_start_generic - Blink LED based on index. : pointer to hardware structure : led number to blink
Definition at line 2614 of file ixgbe_common.c.
ixgbe_blink_led_stop_generic - Stop blinking LED based on index. : pointer to hardware structure : led number to stop blinking
Definition at line 2648 of file ixgbe_common.c.
ixgbe_calc_eeprom_checksum_generic - Calculates and returns the checksum : pointer to hardware structure
Definition at line 1653 of file ixgbe_common.c.
s32 ixgbe_check_mac_link_generic | ( | struct ixgbe_hw * | hw, |
ixgbe_link_speed * | speed, | ||
bool * | link_up, | ||
bool | link_up_wait_to_complete | ||
) |
ixgbe_check_mac_link_generic - Determine link and speed status : pointer to hardware structure : pointer to link speed : true when link is up : bool used to wait for link up or not
Reads the links register to determine if link is up and the current speed
Definition at line 3111 of file ixgbe_common.c.
ixgbe_clear_hw_cntrs_generic - Generic clear hardware counters : pointer to hardware structure
Clears all hardware statistics counters by reading them from the hardware Statistics counters are clear on read.
Definition at line 337 of file ixgbe_common.c.
ixgbe_clear_rar_generic - Remove Rx address register : pointer to hardware structure : Receive address register to write
Clears an ethernet address from a receive address register.
Definition at line 1846 of file ixgbe_common.c.
ixgbe_clear_tx_pending - Clear pending TX work from the PCIe fifo : pointer to the hardware structure
The 82599 and x540 MACs can experience issues if TX work is still pending when a reset occurs. This function prevents this by flushing the PCIe buffers on the system.
Definition at line 3537 of file ixgbe_common.c.
ixgbe_clear_vmdq_generic - Disassociate a VMDq pool index from a rx address : pointer to hardware struct : receive address register index to disassociate : VMDq pool index to remove from the rar
Definition at line 2781 of file ixgbe_common.c.
ixgbe_disable_mc_generic - Disable multicast address in RAR : pointer to hardware structure
Disables multicast address in RAR and the use of the multicast hash table.
Definition at line 2073 of file ixgbe_common.c.
ixgbe_enable_mc_generic - Enable multicast address in RAR : pointer to hardware structure
Enables multicast address in RAR and the use of the multicast hash table.
Definition at line 2056 of file ixgbe_common.c.
ixgbe_enable_rx_buff - Enables the receive data path : pointer to hardware structure
Enables the receive data path
Definition at line 2583 of file ixgbe_common.c.
ixgbe_enable_rx_dma_generic - Enable the Rx DMA unit : pointer to hardware structure : register value to write to RXCTRL
Enables the Rx DMA unit
Definition at line 2602 of file ixgbe_common.c.
ixgbe_fc_autoneg - Configure flow control : pointer to hardware structure
Compares our advertised flow control capabilities to those advertised by our link partner, and determines the proper flow control mode to use.
Definition at line 2360 of file ixgbe_common.c.
ixgbe_fc_enable_generic - Enable flow control : pointer to hardware structure
Enable flow control according to the current settings.
Definition at line 2089 of file ixgbe_common.c.
ixgbe_get_device_caps_generic - Get additional device capabilities : pointer to hardware structure : the EEPROM word with the extra device capabilities
This function will read the EEPROM location for the device capabilities, and return the word through device_caps.
Definition at line 3279 of file ixgbe_common.c.
ixgbe_get_mac_addr_generic - Generic get MAC address : pointer to hardware structure : Adapter MAC address
Reads the adapter's MAC address from first Receive Address Register (RAR0) A reset of the adapter must be performed prior to calling this function in order for the MAC address to have been loaded from the EEPROM into RAR0
Definition at line 556 of file ixgbe_common.c.
ixgbe_get_pcie_msix_count_generic - Gets MSI-X vector count : pointer to hardware structure
Read PCIe configuration space, and get the MSI-X vector count from the capabilities table.
Definition at line 2742 of file ixgbe_common.c.
ixgbe_get_san_mac_addr_generic - SAN MAC address retrieval from the EEPROM : pointer to hardware structure : SAN MAC address
Reads the SAN MAC address from the EEPROM, if it's available. This is per-port, so set_lan_id() must be called before reading the addresses. set_lan_id() is called by identify_sfp(), but this cannot be relied upon for non-SFP connections, so we must call it here.
Definition at line 2697 of file ixgbe_common.c.
ixgbe_get_thermal_sensor_data - Gathers thermal sensor data : pointer to hardware structure
Returns the thermal sensor data structure
Definition at line 3624 of file ixgbe_common.c.
ixgbe_get_wwn_prefix_generic - Get alternative WWNN/WWPN prefix from the EEPROM : pointer to hardware structure : the alternative WWNN prefix : the alternative WWPN prefix
This function will read the EEPROM from the alternative SAN MAC address block to check the support for the alternative WWNN/WWPN prefix support.
Definition at line 3170 of file ixgbe_common.c.
ixgbe_init_eeprom_params_generic - Initialize EEPROM params : pointer to hardware structure
Initializes the EEPROM parameters ixgbe_eeprom_info within the ixgbe_hw struct in order to set up EEPROM access.
Definition at line 744 of file ixgbe_common.c.
ixgbe_init_hw_generic - Generic hardware initialization : pointer to hardware structure
Initialize the hardware by resetting the hardware, filling the bus info structure and media type, clears all on chip counters, initializes receive address registers, multicast table, VLAN filter table, calls routine to set up link and flow control settings, and leaves transmit and receive units disabled and uninitialized
Definition at line 315 of file ixgbe_common.c.
ixgbe_init_rx_addrs_generic - Initializes receive address filters. : pointer to hardware structure
Places the MAC address in receive address register 0 and clears the rest of the receive address registers. Clears the multicast table. Assumes the receiver is in reset when the routine is called.
Definition at line 1882 of file ixgbe_common.c.
ixgbe_init_uta_tables_generic - Initialize the Unicast Table Array : pointer to hardware structure
Definition at line 2880 of file ixgbe_common.c.
ixgbe_led_off_generic - Turns off the software controllable LEDs. : pointer to hardware structure : led number to turn off
Definition at line 724 of file ixgbe_common.c.
ixgbe_led_on_generic - Turns on the software controllable LEDs. : pointer to hardware structure : led number to turn on
Definition at line 706 of file ixgbe_common.c.
ixgbe_read_eeprom_bit_bang_generic - Read EEPROM word using bit-bang : pointer to hardware structure : offset within the EEPROM to be read : read 16 bit value from EEPROM
Reads 16 bit value from EEPROM through bit-bang method
Definition at line 1060 of file ixgbe_common.c.
ixgbe_set_fw_drv_ver_generic - Sends driver version to firmware : pointer to the HW structure : driver version major number : driver version minor number : driver version build number : driver version sub build number
Sends driver version number to firmware through the manageability block. On success return 0 else returns IXGBE_ERR_SWFW_SYNC when encountering an error acquiring semaphore or IXGBE_ERR_HOST_INTERFACE_COMMAND when command fails.
Definition at line 3483 of file ixgbe_common.c.
ixgbe_set_mac_anti_spoofing - Enable/Disable MAC anti-spoofing : pointer to hardware structure : enable or disable switch for anti-spoofing : Physical Function pool - do not enable anti-spoofing for the PF
Definition at line 3212 of file ixgbe_common.c.
ixgbe_set_rar_generic - Set Rx address register : pointer to hardware structure : Receive address register to write : Address to put into receive address register : VMDq "set" or "pool" index : set flag that address is active
Puts an ethernet address into a receive address register.
Definition at line 1798 of file ixgbe_common.c.
ixgbe_set_rxpba_generic - Initialize RX packet buffer : pointer to hardware structure : number of packet buffers to allocate : reserve n KB of headroom : packet buffer allocation strategy
Definition at line 3293 of file ixgbe_common.c.
ixgbe_set_vfta_generic - Set VLAN filter table : pointer to hardware structure : VLAN id to write to VLAN filter : VMDq output index that maps queue to VLAN id in VFVFB : boolean flag to turn on/off VLAN in VFVF
Turn on/off specified VLAN in the VLAN filter table.
Definition at line 2946 of file ixgbe_common.c.
ixgbe_set_vlan_anti_spoofing - Enable/Disable VLAN anti-spoofing : pointer to hardware structure : enable or disable switch for VLAN anti-spoofing : Virtual Function pool - VF Pool to set for VLAN anti-spoofing
Definition at line 3254 of file ixgbe_common.c.
ixgbe_set_vmdq_generic - Associate a VMDq pool index with a rx address : pointer to hardware struct : receive address register index to associate with a VMDq index : VMDq pool index
Definition at line 2828 of file ixgbe_common.c.
This function should only be involved in the IOV mode. In IOV mode, Default pool is next pool after the number of VFs advertized and not 0. MPSAR table needs to be updated for SAN_MAC RAR [hw->mac.san_mac_rar_index]
ixgbe_set_vmdq_san_mac - Associate default VMDq pool index with a rx address : pointer to hardware struct : VMDq pool index
Definition at line 2861 of file ixgbe_common.c.
ixgbe_start_hw_generic - Prepare hardware for Tx/Rx : pointer to hardware structure
Starts the hardware by filling the bus info structure and media type, clears all on chip counters, initializes receive address registers, multicast table, VLAN filter table, calls routine to set up link and flow control settings, and leaves transmit and receive units disabled and uninitialized
Definition at line 235 of file ixgbe_common.c.
ixgbe_stop_adapter_generic - Generic stop Tx/Rx units : pointer to hardware structure
Sets the adapter_stopped flag within ixgbe_hw struct. Clears interrupts, disables transmit and receive units. The adapter_stopped flag is used by the shared code and drivers to determine if the adapter is in a stopped state and should not touch the hardware.
Definition at line 658 of file ixgbe_common.c.
ixgbe_update_eeprom_checksum_generic - Updates the EEPROM checksum : pointer to hardware structure
Definition at line 1741 of file ixgbe_common.c.
s32 ixgbe_update_mc_addr_list_generic | ( | struct ixgbe_hw * | hw, |
struct net_device * | netdev | ||
) |
ixgbe_update_mc_addr_list_generic - Updates MAC list of multicast addresses : pointer to hardware structure : pointer to net device structure
The given list replaces any existing list. Clears the MC addrs from receive address registers and the multicast table. Uses unused receive address registers for the first multicast addresses, and hashes the rest into the multicast table.
Definition at line 2014 of file ixgbe_common.c.
ixgbe_validate_mac_addr - Validate MAC address : pointer to MAC address.
Tests a MAC address to ensure it is a valid Individual Address
Definition at line 1770 of file ixgbe_common.c.
ixgbe_write_eeprom_generic - Writes 16 bit value to EEPROM : pointer to hardware structure : offset within the EEPROM to be written to : 16 bit word to be written to the EEPROM
If ixgbe_eeprom_update_checksum is not called after this function, the EEPROM will most likely contain an invalid checksum.
Definition at line 932 of file ixgbe_common.c.