#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/interrupt.h>
#include <linux/tcp.h>
#include <linux/ipv6.h>
#include <linux/slab.h>
#include <net/checksum.h>
#include <net/ip6_checksum.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>
#include <linux/cpu.h>
#include <linux/smp.h>
#include <linux/pm_qos.h>
#include <linux/pm_runtime.h>
#include <linux/aer.h>
#include <linux/prefetch.h>
#include "e1000.h"
Go to the source code of this file.
#define DRV_EXTRAVERSION "-k" |
#define E1000_CTRL_ADVD3WUC 0x00100000 |
#define E1000_CTRL_EN_PHY_PWR_MGMT 0x00200000 |
#define E1000_EIAC_MASK_82574 0x01F00000 |
#define E1000_IVAR_INT_ALLOC_VALID 0x8 |
#define E1000_RDFH 0x02410 /* Rx Data FIFO Head - RW */ |
#define E1000_RDFHS 0x02420 /* Rx Data FIFO Head Saved - RW */ |
#define E1000_RDFPC 0x02430 /* Rx Data FIFO Packet Count - RW */ |
#define E1000_RDFT 0x02418 /* Rx Data FIFO Tail - RW */ |
#define E1000_RDFTS 0x02428 /* Rx Data FIFO Tail Saved - RW */ |
#define E1000_TDFH 0x03410 /* Tx Data FIFO Head - RW */ |
#define E1000_TDFHS 0x03420 /* Tx Data FIFO Head Saved - RW */ |
#define E1000_TDFPC 0x03430 /* Tx Data FIFO Packet Count - RW */ |
#define E1000_TDFT 0x03418 /* Tx Data FIFO Tail - RW */ |
#define E1000_TDFTS 0x03428 /* Tx Data FIFO Tail Saved - RW */ |
#define E1000_TX_FLAGS_CSUM 0x00000001 |
#define E1000_TX_FLAGS_IPV4 0x00000008 |
#define E1000_TX_FLAGS_NO_FCS 0x00000010 |
#define E1000_TX_FLAGS_TSO 0x00000004 |
#define E1000_TX_FLAGS_VLAN 0x00000002 |
#define E1000_TX_FLAGS_VLAN_MASK 0xffff0000 |
#define E1000_TX_FLAGS_VLAN_SHIFT 16 |
#define MINIMUM_DHCP_PACKET_SIZE 282 |
#define PAGE_USE_COUNT |
( |
|
S | ) |
|
Value:e1000_setup_rctl - configure the receive control registers : Board private structure
Definition at line 2884 of file netdev.c.
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define rxtop (rx_ring->rx_skb_top) |
#define SPEED_MODE_BIT (1 << 21) |
#define TX_WAKE_THRESHOLD 32 |
e1000e_free_rx_resources - Free Rx Resources : Rx descriptor ring
Free all receive software resources
Definition at line 2339 of file netdev.c.
e1000e_free_tx_resources - Free Tx Resources per Queue : Tx descriptor ring
Free all transmit software resources
Definition at line 2318 of file netdev.c.
e1000e_get_hw_control - get control of the h/w from f/w : address of board private structure
e1000e_get_hw_control sets {CTRL_EXT|SWSM}:DRV_LOAD bit. For ASF and Pass Through versions of f/w this means that the driver is loaded. For AMT version (only with 82573) of the f/w this means that the network i/f is open.
Definition at line 2135 of file netdev.c.
e1000e_power_up_phy - restore link in case the phy was powered down : address of board private structure
The phy may be powered down to save power and turn off link when the driver is unloaded and wake on lan is not enabled (among others) *** this routine MUST be followed by a call to e1000e_reset ***
Definition at line 3366 of file netdev.c.
e1000e_release_hw_control - release control of the h/w to f/w : address of board private structure
e1000e_release_hw_control resets {CTRL_EXT|SWSM}:DRV_LOAD bit. For ASF and Pass Through versions of f/w this means that the driver is no longer loaded. For AMT version (only with 82573) i of the f/w this means that the network i/f is closed.
Definition at line 2161 of file netdev.c.
e1000e_reset - bring the hardware into a known good state
This function boots the hardware and enables some settings that require a configuration cycle of the hardware - those cannot be set/changed during runtime. After reset the device needs to be properly configured for Rx, Tx etc.
Definition at line 3398 of file netdev.c.
e1000e_set_interrupt_capability - set MSI or MSI-X if supported
Attempt to configure interrupts using the best available capabilities of the hardware and kernel.
Definition at line 1931 of file netdev.c.
e1000e_setup_rx_resources - allocate Rx resources (Descriptors) : Rx descriptor ring
Returns 0 on success, negative on failure
Definition at line 2233 of file netdev.c.
e1000e_setup_tx_resources - allocate Tx resources (Descriptors) : Tx descriptor ring
Return 0 on success, negative on failure
Definition at line 2199 of file netdev.c.
e1000e_write_itr - write the ITR value to the appropriate registers : address of board private structure : new ITR value to program
e1000e_write_itr determines if the adapter is in MSI-X mode and, if so, writes the EITR registers with the ITR value. Otherwise, it writes the ITR value into the ITR register.
Definition at line 2501 of file netdev.c.
MODULE_AUTHOR |
( |
"Intel |
Corporation, |
|
|
< linux.nics @intel.com >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"Intel(R) PRO/1000 Network Driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
e1000_pci_tbl |
|
|
) |
| |
module_exit |
( |
e1000_exit_module |
| ) |
|
module_init |
( |
e1000_init_module |
| ) |
|
char e1000e_driver_name[] = "e1000e" |