Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
atl1e.h File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/udp.h>
#include <linux/mii.h>
#include <linux/io.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/tcp.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>
#include <linux/workqueue.h>
#include <net/checksum.h>
#include <net/ip6_checksum.h>
#include "atl1e_hw.h"

Go to the source code of this file.

Data Structures

struct  atl1e_tpd_desc
 
struct  atl1e_recv_ret_status
 
struct  atl1e_hw_stats
 
struct  atl1e_hw
 
struct  atl1e_tx_buffer
 
struct  atl1e_rx_page
 
struct  atl1e_rx_page_desc
 
struct  atl1e_tx_ring
 
struct  atl1e_rx_ring
 
struct  atl1e_adapter
 

Macros

#define PCI_REG_COMMAND   0x04 /* PCI Command Register */
 
#define CMD_IO_SPACE   0x0001
 
#define CMD_MEMORY_SPACE   0x0002
 
#define CMD_BUS_MASTER   0x0004
 
#define BAR_0   0
 
#define BAR_1   1
 
#define BAR_5   5
 
#define AT_WUFC_LNKC   0x00000001 /* Link Status Change Wakeup Enable */
 
#define AT_WUFC_MAG   0x00000002 /* Magic Packet Wakeup Enable */
 
#define AT_WUFC_EX   0x00000004 /* Directed Exact Wakeup Enable */
 
#define AT_WUFC_MC   0x00000008 /* Multicast Wakeup Enable */
 
#define AT_WUFC_BC   0x00000010 /* Broadcast Wakeup Enable */
 
#define SPEED_0   0xffff
 
#define HALF_DUPLEX   1
 
#define FULL_DUPLEX   2
 
#define AT_ERR_EEPROM   1
 
#define AT_ERR_PHY   2
 
#define AT_ERR_CONFIG   3
 
#define AT_ERR_PARAM   4
 
#define AT_ERR_MAC_TYPE   5
 
#define AT_ERR_PHY_TYPE   6
 
#define AT_ERR_PHY_SPEED   7
 
#define AT_ERR_PHY_RES   8
 
#define AT_ERR_TIMEOUT   9
 
#define MAX_JUMBO_FRAME_SIZE   0x2000
 
#define AT_VLAN_TAG_TO_TPD_TAG(_vlan, _tpd)
 
#define AT_TPD_TAG_TO_VLAN_TAG(_tpd, _vlan)
 
#define AT_MAX_RECEIVE_QUEUE   4
 
#define AT_PAGE_NUM_PER_QUEUE   2
 
#define AT_DMA_HI_ADDR_MASK   0xffffffff00000000ULL
 
#define AT_DMA_LO_ADDR_MASK   0x00000000ffffffffULL
 
#define AT_TX_WATCHDOG   (5 * HZ)
 
#define AT_MAX_INT_WORK   10
 
#define AT_TWSI_EEPROM_TIMEOUT   100
 
#define AT_HW_MAX_IDLE_DELAY   10
 
#define AT_SUSPEND_LINK_TIMEOUT   28
 
#define AT_REGS_LEN   75
 
#define AT_EEPROM_LEN   512
 
#define AT_ADV_MASK
 
#define TPD_BUFLEN_MASK   0x3FFF
 
#define TPD_BUFLEN_SHIFT   0
 
#define TPD_DMAINT_MASK   0x0001
 
#define TPD_DMAINT_SHIFT   14
 
#define TPD_PKTNT_MASK   0x0001
 
#define TPD_PKTINT_SHIFT   15
 
#define TPD_VLANTAG_MASK   0xFFFF
 
#define TPD_VLAN_SHIFT   16
 
#define TPD_EOP_MASK   0x0001
 
#define TPD_EOP_SHIFT   0
 
#define TPD_IP_VERSION_MASK   0x0001
 
#define TPD_IP_VERSION_SHIFT   1 /* 0 : IPV4, 1 : IPV6 */
 
#define TPD_INS_VL_TAG_MASK   0x0001
 
#define TPD_INS_VL_TAG_SHIFT   2
 
#define TPD_CC_SEGMENT_EN_MASK   0x0001
 
#define TPD_CC_SEGMENT_EN_SHIFT   3
 
#define TPD_SEGMENT_EN_MASK   0x0001
 
#define TPD_SEGMENT_EN_SHIFT   4
 
#define TPD_IP_CSUM_MASK   0x0001
 
#define TPD_IP_CSUM_SHIFT   5
 
#define TPD_TCP_CSUM_MASK   0x0001
 
#define TPD_TCP_CSUM_SHIFT   6
 
#define TPD_UDP_CSUM_MASK   0x0001
 
#define TPD_UDP_CSUM_SHIFT   7
 
#define TPD_V6_IPHLLO_MASK   0x0007
 
#define TPD_V6_IPHLLO_SHIFT   7
 
#define TPD_VL_TAGGED_MASK   0x0001
 
#define TPD_VL_TAGGED_SHIFT   8
 
#define TPD_ETHTYPE_MASK   0x0001
 
#define TPD_ETHTYPE_SHIFT   9
 
#define TDP_V4_IPHL_MASK   0x000F
 
#define TPD_V4_IPHL_SHIFT   10
 
#define TPD_V6_IPHLHI_MASK   0x000F
 
#define TPD_V6_IPHLHI_SHIFT   10
 
#define TPD_TCPHDRLEN_MASK   0x000F
 
#define TPD_TCPHDRLEN_SHIFT   14
 
#define TPD_HDRFLAG_MASK   0x0001
 
#define TPD_HDRFLAG_SHIFT   18
 
#define TPD_MSS_MASK   0x1FFF
 
#define TPD_MSS_SHIFT   19
 
#define TPD_PLOADOFFSET_MASK   0x00FF
 
#define TPD_PLOADOFFSET_SHIFT   16
 
#define TPD_CCSUMOFFSET_MASK   0x00FF
 
#define TPD_CCSUMOFFSET_SHIFT   24
 
#define MAX_TX_BUF_LEN   0x2000
 
#define MAX_TX_BUF_SHIFT   13
 
#define RRS_RX_CSUM_MASK   0xFFFF
 
#define RRS_RX_CSUM_SHIFT   0
 
#define RRS_PKT_SIZE_MASK   0x3FFF
 
#define RRS_PKT_SIZE_SHIFT   16
 
#define RRS_CPU_NUM_MASK   0x0003
 
#define RRS_CPU_NUM_SHIFT   30
 
#define RRS_IS_RSS_IPV4   0x0001
 
#define RRS_IS_RSS_IPV4_TCP   0x0002
 
#define RRS_IS_RSS_IPV6   0x0004
 
#define RRS_IS_RSS_IPV6_TCP   0x0008
 
#define RRS_IS_IPV6   0x0010
 
#define RRS_IS_IP_FRAG   0x0020
 
#define RRS_IS_IP_DF   0x0040
 
#define RRS_IS_802_3   0x0080
 
#define RRS_IS_VLAN_TAG   0x0100
 
#define RRS_IS_ERR_FRAME   0x0200
 
#define RRS_IS_IPV4   0x0400
 
#define RRS_IS_UDP   0x0800
 
#define RRS_IS_TCP   0x1000
 
#define RRS_IS_BCAST   0x2000
 
#define RRS_IS_MCAST   0x4000
 
#define RRS_IS_PAUSE   0x8000
 
#define RRS_ERR_BAD_CRC   0x0001
 
#define RRS_ERR_CODE   0x0002
 
#define RRS_ERR_DRIBBLE   0x0004
 
#define RRS_ERR_RUNT   0x0008
 
#define RRS_ERR_RX_OVERFLOW   0x0010
 
#define RRS_ERR_TRUNC   0x0020
 
#define RRS_ERR_IP_CSUM   0x0040
 
#define RRS_ERR_L4_CSUM   0x0080
 
#define RRS_ERR_LENGTH   0x0100
 
#define RRS_ERR_DES_ADDR   0x0200
 
#define MEDIA_TYPE_AUTO_SENSOR   0
 
#define MEDIA_TYPE_100M_FULL   1
 
#define MEDIA_TYPE_100M_HALF   2
 
#define MEDIA_TYPE_10M_FULL   3
 
#define MEDIA_TYPE_10M_HALF   4
 
#define ADVERTISE_10_HALF   0x0001
 
#define ADVERTISE_10_FULL   0x0002
 
#define ADVERTISE_100_HALF   0x0004
 
#define ADVERTISE_100_FULL   0x0008
 
#define ADVERTISE_1000_HALF   0x0010 /* Not used, just FYI */
 
#define ADVERTISE_1000_FULL   0x0020
 
#define ATL1E_TX_PCIMAP_SINGLE   0x0001
 
#define ATL1E_TX_PCIMAP_PAGE   0x0002
 
#define ATL1E_TX_PCIMAP_TYPE_MASK   0x0003
 
#define ATL1E_SET_PCIMAP_TYPE(tx_buff, type)
 
#define __AT_TESTING   0x0001
 
#define __AT_RESETTING   0x0002
 
#define __AT_DOWN   0x0003
 
#define AT_WRITE_REG(a, reg, value)
 
#define AT_WRITE_FLUSH(a)
 
#define AT_READ_REG(a, reg)
 
#define AT_WRITE_REGB(a, reg, value)
 
#define AT_READ_REGB(a, reg)
 
#define AT_WRITE_REGW(a, reg, value)
 
#define AT_READ_REGW(a, reg)
 
#define AT_WRITE_REG_ARRAY(a, reg, offset, value)
 
#define AT_READ_REG_ARRAY(a, reg, offset)
 

Enumerations

enum  atl1e_dma_req_block {
  atl1e_dma_req_128 = 0, atl1e_dma_req_256 = 1, atl1e_dma_req_512 = 2, atl1e_dma_req_1024 = 3,
  atl1e_dma_req_2048 = 4, atl1e_dma_req_4096 = 5
}
 
enum  atl1e_rrs_type {
  atl1e_rrs_disable = 0, atl1e_rrs_ipv4 = 1, atl1e_rrs_ipv4_tcp = 2, atl1e_rrs_ipv6 = 4,
  atl1e_rrs_ipv6_tcp = 8
}
 
enum  atl1e_nic_type { athr_l1e = 0, athr_l2e_revA = 1, athr_l2e_revB = 2 }
 

Functions

void atl1e_check_options (struct atl1e_adapter *adapter)
 
int atl1e_up (struct atl1e_adapter *adapter)
 
void atl1e_down (struct atl1e_adapter *adapter)
 
void atl1e_reinit_locked (struct atl1e_adapter *adapter)
 
s32 atl1e_reset_hw (struct atl1e_hw *hw)
 
void atl1e_set_ethtool_ops (struct net_device *netdev)
 

Variables

char atl1e_driver_name []
 
char atl1e_driver_version []
 

Macro Definition Documentation

#define __AT_DOWN   0x0003

Definition at line 466 of file atl1e.h.

#define __AT_RESETTING   0x0002

Definition at line 465 of file atl1e.h.

#define __AT_TESTING   0x0001

Definition at line 464 of file atl1e.h.

#define ADVERTISE_1000_FULL   0x0020

Definition at line 346 of file atl1e.h.

#define ADVERTISE_1000_HALF   0x0010 /* Not used, just FYI */

Definition at line 345 of file atl1e.h.

#define ADVERTISE_100_FULL   0x0008

Definition at line 344 of file atl1e.h.

#define ADVERTISE_100_HALF   0x0004

Definition at line 343 of file atl1e.h.

#define ADVERTISE_10_FULL   0x0002

Definition at line 342 of file atl1e.h.

#define ADVERTISE_10_HALF   0x0001

Definition at line 341 of file atl1e.h.

#define AT_ADV_MASK
Value:
ADVERTISE_10_FULL |\
ADVERTISE_100_HALF |\
ADVERTISE_100_FULL |\
ADVERTISE_1000_FULL)

Definition at line 112 of file atl1e.h.

#define AT_DMA_HI_ADDR_MASK   0xffffffff00000000ULL

Definition at line 101 of file atl1e.h.

#define AT_DMA_LO_ADDR_MASK   0x00000000ffffffffULL

Definition at line 102 of file atl1e.h.

#define AT_EEPROM_LEN   512

Definition at line 111 of file atl1e.h.

#define AT_ERR_CONFIG   3

Definition at line 80 of file atl1e.h.

#define AT_ERR_EEPROM   1

Definition at line 78 of file atl1e.h.

#define AT_ERR_MAC_TYPE   5

Definition at line 82 of file atl1e.h.

#define AT_ERR_PARAM   4

Definition at line 81 of file atl1e.h.

#define AT_ERR_PHY   2

Definition at line 79 of file atl1e.h.

#define AT_ERR_PHY_RES   8

Definition at line 85 of file atl1e.h.

#define AT_ERR_PHY_SPEED   7

Definition at line 84 of file atl1e.h.

#define AT_ERR_PHY_TYPE   6

Definition at line 83 of file atl1e.h.

#define AT_ERR_TIMEOUT   9

Definition at line 86 of file atl1e.h.

#define AT_HW_MAX_IDLE_DELAY   10

Definition at line 107 of file atl1e.h.

#define AT_MAX_INT_WORK   10

Definition at line 105 of file atl1e.h.

#define AT_MAX_RECEIVE_QUEUE   4

Definition at line 98 of file atl1e.h.

#define AT_PAGE_NUM_PER_QUEUE   2

Definition at line 99 of file atl1e.h.

#define AT_READ_REG (   a,
  reg 
)
Value:
( \
readl((a)->hw_addr + reg))

Definition at line 479 of file atl1e.h.

#define AT_READ_REG_ARRAY (   a,
  reg,
  offset 
)
Value:
( \
readl(((a)->hw_addr + reg) + ((offset) << 2)))

Definition at line 497 of file atl1e.h.

#define AT_READ_REGB (   a,
  reg 
)
Value:
(\
readb((a)->hw_addr + reg))

Definition at line 485 of file atl1e.h.

#define AT_READ_REGW (   a,
  reg 
)
Value:
(\
readw((a)->hw_addr + reg))

Definition at line 491 of file atl1e.h.

#define AT_REGS_LEN   75

Definition at line 110 of file atl1e.h.

#define AT_SUSPEND_LINK_TIMEOUT   28

Definition at line 108 of file atl1e.h.

#define AT_TPD_TAG_TO_VLAN_TAG (   _tpd,
  _vlan 
)
Value:
_vlan = (((_tpd) >> 8) | (((_tpd) & 0x77) << 9) |\
(((_tdp) & 0x88) << 5))

Definition at line 94 of file atl1e.h.

#define AT_TWSI_EEPROM_TIMEOUT   100

Definition at line 106 of file atl1e.h.

#define AT_TX_WATCHDOG   (5 * HZ)

Definition at line 104 of file atl1e.h.

#define AT_VLAN_TAG_TO_TPD_TAG (   _vlan,
  _tpd 
)
Value:
_tpd = (((_vlan) << (4)) | (((_vlan) >> 13) & 7) |\
(((_vlan) >> 9) & 8))

Definition at line 90 of file atl1e.h.

#define AT_WRITE_FLUSH (   a)
Value:
(\
readl((a)->hw_addr))

Definition at line 476 of file atl1e.h.

#define AT_WRITE_REG (   a,
  reg,
  value 
)
Value:
( \
writel((value), ((a)->hw_addr + reg)))

Definition at line 473 of file atl1e.h.

#define AT_WRITE_REG_ARRAY (   a,
  reg,
  offset,
  value 
)
Value:
( \
writel((value), (((a)->hw_addr + reg) + ((offset) << 2))))

Definition at line 494 of file atl1e.h.

#define AT_WRITE_REGB (   a,
  reg,
  value 
)
Value:
(\
writeb((value), ((a)->hw_addr + reg)))

Definition at line 482 of file atl1e.h.

#define AT_WRITE_REGW (   a,
  reg,
  value 
)
Value:
(\
writew((value), ((a)->hw_addr + reg)))

Definition at line 488 of file atl1e.h.

#define AT_WUFC_BC   0x00000010 /* Broadcast Wakeup Enable */

Definition at line 71 of file atl1e.h.

#define AT_WUFC_EX   0x00000004 /* Directed Exact Wakeup Enable */

Definition at line 69 of file atl1e.h.

#define AT_WUFC_LNKC   0x00000001 /* Link Status Change Wakeup Enable */

Definition at line 67 of file atl1e.h.

#define AT_WUFC_MAG   0x00000002 /* Magic Packet Wakeup Enable */

Definition at line 68 of file atl1e.h.

#define AT_WUFC_MC   0x00000008 /* Multicast Wakeup Enable */

Definition at line 70 of file atl1e.h.

#define ATL1E_SET_PCIMAP_TYPE (   tx_buff,
  type 
)
Value:
do { \
((tx_buff)->flags) &= ~ATL1E_TX_PCIMAP_TYPE_MASK; \
((tx_buff)->flags) |= (type); \
} while (0)

Definition at line 388 of file atl1e.h.

#define ATL1E_TX_PCIMAP_PAGE   0x0002

Definition at line 382 of file atl1e.h.

#define ATL1E_TX_PCIMAP_SINGLE   0x0001

Definition at line 381 of file atl1e.h.

#define ATL1E_TX_PCIMAP_TYPE_MASK   0x0003

Definition at line 383 of file atl1e.h.

#define BAR_0   0

Definition at line 62 of file atl1e.h.

#define BAR_1   1

Definition at line 63 of file atl1e.h.

#define BAR_5   5

Definition at line 64 of file atl1e.h.

#define CMD_BUS_MASTER   0x0004

Definition at line 60 of file atl1e.h.

#define CMD_IO_SPACE   0x0001

Definition at line 58 of file atl1e.h.

#define CMD_MEMORY_SPACE   0x0002

Definition at line 59 of file atl1e.h.

#define FULL_DUPLEX   2

Definition at line 75 of file atl1e.h.

#define HALF_DUPLEX   1

Definition at line 74 of file atl1e.h.

#define MAX_JUMBO_FRAME_SIZE   0x2000

Definition at line 88 of file atl1e.h.

#define MAX_TX_BUF_LEN   0x2000

Definition at line 187 of file atl1e.h.

#define MAX_TX_BUF_SHIFT   13

Definition at line 188 of file atl1e.h.

#define MEDIA_TYPE_100M_FULL   1

Definition at line 335 of file atl1e.h.

#define MEDIA_TYPE_100M_HALF   2

Definition at line 336 of file atl1e.h.

#define MEDIA_TYPE_10M_FULL   3

Definition at line 337 of file atl1e.h.

#define MEDIA_TYPE_10M_HALF   4

Definition at line 338 of file atl1e.h.

#define MEDIA_TYPE_AUTO_SENSOR   0

Definition at line 334 of file atl1e.h.

#define PCI_REG_COMMAND   0x04 /* PCI Command Register */

Definition at line 57 of file atl1e.h.

#define RRS_CPU_NUM_MASK   0x0003

Definition at line 196 of file atl1e.h.

#define RRS_CPU_NUM_SHIFT   30

Definition at line 197 of file atl1e.h.

#define RRS_ERR_BAD_CRC   0x0001

Definition at line 216 of file atl1e.h.

#define RRS_ERR_CODE   0x0002

Definition at line 217 of file atl1e.h.

#define RRS_ERR_DES_ADDR   0x0200

Definition at line 225 of file atl1e.h.

#define RRS_ERR_DRIBBLE   0x0004

Definition at line 218 of file atl1e.h.

#define RRS_ERR_IP_CSUM   0x0040

Definition at line 222 of file atl1e.h.

#define RRS_ERR_L4_CSUM   0x0080

Definition at line 223 of file atl1e.h.

#define RRS_ERR_LENGTH   0x0100

Definition at line 224 of file atl1e.h.

#define RRS_ERR_RUNT   0x0008

Definition at line 219 of file atl1e.h.

#define RRS_ERR_RX_OVERFLOW   0x0010

Definition at line 220 of file atl1e.h.

#define RRS_ERR_TRUNC   0x0020

Definition at line 221 of file atl1e.h.

#define RRS_IS_802_3   0x0080

Definition at line 206 of file atl1e.h.

#define RRS_IS_BCAST   0x2000

Definition at line 212 of file atl1e.h.

#define RRS_IS_ERR_FRAME   0x0200

Definition at line 208 of file atl1e.h.

#define RRS_IS_IP_DF   0x0040

Definition at line 205 of file atl1e.h.

#define RRS_IS_IP_FRAG   0x0020

Definition at line 204 of file atl1e.h.

#define RRS_IS_IPV4   0x0400

Definition at line 209 of file atl1e.h.

#define RRS_IS_IPV6   0x0010

Definition at line 203 of file atl1e.h.

#define RRS_IS_MCAST   0x4000

Definition at line 213 of file atl1e.h.

#define RRS_IS_PAUSE   0x8000

Definition at line 214 of file atl1e.h.

#define RRS_IS_RSS_IPV4   0x0001

Definition at line 199 of file atl1e.h.

#define RRS_IS_RSS_IPV4_TCP   0x0002

Definition at line 200 of file atl1e.h.

#define RRS_IS_RSS_IPV6   0x0004

Definition at line 201 of file atl1e.h.

#define RRS_IS_RSS_IPV6_TCP   0x0008

Definition at line 202 of file atl1e.h.

#define RRS_IS_TCP   0x1000

Definition at line 211 of file atl1e.h.

#define RRS_IS_UDP   0x0800

Definition at line 210 of file atl1e.h.

#define RRS_IS_VLAN_TAG   0x0100

Definition at line 207 of file atl1e.h.

#define RRS_PKT_SIZE_MASK   0x3FFF

Definition at line 194 of file atl1e.h.

#define RRS_PKT_SIZE_SHIFT   16

Definition at line 195 of file atl1e.h.

#define RRS_RX_CSUM_MASK   0xFFFF

Definition at line 192 of file atl1e.h.

#define RRS_RX_CSUM_SHIFT   0

Definition at line 193 of file atl1e.h.

#define SPEED_0   0xffff

Definition at line 73 of file atl1e.h.

#define TDP_V4_IPHL_MASK   0x000F

Definition at line 159 of file atl1e.h.

#define TPD_BUFLEN_MASK   0x3FFF

Definition at line 119 of file atl1e.h.

#define TPD_BUFLEN_SHIFT   0

Definition at line 120 of file atl1e.h.

#define TPD_CC_SEGMENT_EN_MASK   0x0001

Definition at line 135 of file atl1e.h.

#define TPD_CC_SEGMENT_EN_SHIFT   3

Definition at line 136 of file atl1e.h.

#define TPD_CCSUMOFFSET_MASK   0x00FF

Definition at line 177 of file atl1e.h.

#define TPD_CCSUMOFFSET_SHIFT   24

Definition at line 178 of file atl1e.h.

#define TPD_DMAINT_MASK   0x0001

Definition at line 121 of file atl1e.h.

#define TPD_DMAINT_SHIFT   14

Definition at line 122 of file atl1e.h.

#define TPD_EOP_MASK   0x0001

Definition at line 129 of file atl1e.h.

#define TPD_EOP_SHIFT   0

Definition at line 130 of file atl1e.h.

#define TPD_ETHTYPE_MASK   0x0001

Definition at line 155 of file atl1e.h.

#define TPD_ETHTYPE_SHIFT   9

Definition at line 156 of file atl1e.h.

#define TPD_HDRFLAG_MASK   0x0001

Definition at line 169 of file atl1e.h.

#define TPD_HDRFLAG_SHIFT   18

Definition at line 170 of file atl1e.h.

#define TPD_INS_VL_TAG_MASK   0x0001

Definition at line 133 of file atl1e.h.

#define TPD_INS_VL_TAG_SHIFT   2

Definition at line 134 of file atl1e.h.

#define TPD_IP_CSUM_MASK   0x0001

Definition at line 141 of file atl1e.h.

#define TPD_IP_CSUM_SHIFT   5

Definition at line 142 of file atl1e.h.

#define TPD_IP_VERSION_MASK   0x0001

Definition at line 131 of file atl1e.h.

#define TPD_IP_VERSION_SHIFT   1 /* 0 : IPV4, 1 : IPV6 */

Definition at line 132 of file atl1e.h.

#define TPD_MSS_MASK   0x1FFF

Definition at line 171 of file atl1e.h.

#define TPD_MSS_SHIFT   19

Definition at line 172 of file atl1e.h.

#define TPD_PKTINT_SHIFT   15

Definition at line 124 of file atl1e.h.

#define TPD_PKTNT_MASK   0x0001

Definition at line 123 of file atl1e.h.

#define TPD_PLOADOFFSET_MASK   0x00FF

Definition at line 175 of file atl1e.h.

#define TPD_PLOADOFFSET_SHIFT   16

Definition at line 176 of file atl1e.h.

#define TPD_SEGMENT_EN_MASK   0x0001

Definition at line 137 of file atl1e.h.

#define TPD_SEGMENT_EN_SHIFT   4

Definition at line 138 of file atl1e.h.

#define TPD_TCP_CSUM_MASK   0x0001

Definition at line 143 of file atl1e.h.

#define TPD_TCP_CSUM_SHIFT   6

Definition at line 144 of file atl1e.h.

#define TPD_TCPHDRLEN_MASK   0x000F

Definition at line 167 of file atl1e.h.

#define TPD_TCPHDRLEN_SHIFT   14

Definition at line 168 of file atl1e.h.

#define TPD_UDP_CSUM_MASK   0x0001

Definition at line 145 of file atl1e.h.

#define TPD_UDP_CSUM_SHIFT   7

Definition at line 146 of file atl1e.h.

#define TPD_V4_IPHL_SHIFT   10

Definition at line 160 of file atl1e.h.

#define TPD_V6_IPHLHI_MASK   0x000F

Definition at line 163 of file atl1e.h.

#define TPD_V6_IPHLHI_SHIFT   10

Definition at line 164 of file atl1e.h.

#define TPD_V6_IPHLLO_MASK   0x0007

Definition at line 149 of file atl1e.h.

#define TPD_V6_IPHLLO_SHIFT   7

Definition at line 150 of file atl1e.h.

#define TPD_VL_TAGGED_MASK   0x0001

Definition at line 153 of file atl1e.h.

#define TPD_VL_TAGGED_SHIFT   8

Definition at line 154 of file atl1e.h.

#define TPD_VLAN_SHIFT   16

Definition at line 126 of file atl1e.h.

#define TPD_VLANTAG_MASK   0xFFFF

Definition at line 125 of file atl1e.h.

Enumeration Type Documentation

Enumerator:
atl1e_dma_req_128 
atl1e_dma_req_256 
atl1e_dma_req_512 
atl1e_dma_req_1024 
atl1e_dma_req_2048 
atl1e_dma_req_4096 

Definition at line 237 of file atl1e.h.

Enumerator:
athr_l1e 
athr_l2e_revA 
athr_l2e_revB 

Definition at line 254 of file atl1e.h.

Enumerator:
atl1e_rrs_disable 
atl1e_rrs_ipv4 
atl1e_rrs_ipv4_tcp 
atl1e_rrs_ipv6 
atl1e_rrs_ipv6_tcp 

Definition at line 246 of file atl1e.h.

Function Documentation

void atl1e_check_options ( struct atl1e_adapter adapter)

atl1e_check_options - Range Checking for Command Line Parameters : board private structure

This routine checks all command line parameters for valid user input. If an invalid value is given, or if no user specified value exists, a default value is used. The final value is stored in a variable in the adapter structure.

Definition at line 180 of file atl1e_param.c.

void atl1e_down ( struct atl1e_adapter adapter)

Definition at line 1920 of file atl1e_main.c.

void atl1e_reinit_locked ( struct atl1e_adapter adapter)

Definition at line 144 of file atl1e_main.c.

s32 atl1e_reset_hw ( struct atl1e_hw hw)

Definition at line 515 of file atl1e_hw.c.

void atl1e_set_ethtool_ops ( struct net_device netdev)

Definition at line 389 of file atl1e_ethtool.c.

int atl1e_up ( struct atl1e_adapter adapter)

Definition at line 1888 of file atl1e_main.c.

Variable Documentation

char atl1e_driver_name[]

Definition at line 26 of file atl1e_main.c.

char atl1e_driver_version[]

Definition at line 27 of file atl1e_main.c.