Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
lance.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/mm.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>

Go to the source code of this file.

Data Structures

struct  card
 
struct  lance_rx_head
 
struct  lance_tx_head
 
struct  lance_init_block
 
struct  lance_private
 
struct  lance_chip_type
 

Macros

#define NUM_CARDS   3
 
#define LANCE_LOG_TX_BUFFERS   4
 
#define LANCE_LOG_RX_BUFFERS   4
 
#define TX_RING_SIZE   (1 << (LANCE_LOG_TX_BUFFERS))
 
#define TX_RING_MOD_MASK   (TX_RING_SIZE - 1)
 
#define TX_RING_LEN_BITS   ((LANCE_LOG_TX_BUFFERS) << 29)
 
#define RX_RING_SIZE   (1 << (LANCE_LOG_RX_BUFFERS))
 
#define RX_RING_MOD_MASK   (RX_RING_SIZE - 1)
 
#define RX_RING_LEN_BITS   ((LANCE_LOG_RX_BUFFERS) << 29)
 
#define PKT_BUF_SZ   1544
 
#define LANCE_DATA   0x10
 
#define LANCE_ADDR   0x12
 
#define LANCE_RESET   0x14
 
#define LANCE_BUS_IF   0x16
 
#define LANCE_TOTAL_SIZE   0x18
 
#define TX_TIMEOUT   (HZ/5)
 
#define LANCE_MUST_PAD   0x00000001
 
#define LANCE_ENABLE_AUTOSELECT   0x00000002
 
#define LANCE_MUST_REINIT_RING   0x00000004
 
#define LANCE_MUST_UNRESET   0x00000008
 
#define LANCE_HAS_MISSED_FRAME   0x00000010
 

Enumerations

enum  {
  OLD_LANCE = 0, PCNET_ISA =1, PCNET_ISAP =2, PCNET_PCI =3,
  PCNET_VLB =4, PCNET_PCI_II =5, LANCE_UNKNOWN =6
}
 

Functions

 MODULE_LICENSE ("GPL")
 
struct net_device *__init lance_probe (int unit)
 

Macro Definition Documentation

#define LANCE_ADDR   0x12

Definition at line 205 of file lance.c.

#define LANCE_BUS_IF   0x16

Definition at line 207 of file lance.c.

#define LANCE_DATA   0x10

Definition at line 204 of file lance.c.

#define LANCE_ENABLE_AUTOSELECT   0x00000002

Definition at line 256 of file lance.c.

#define LANCE_HAS_MISSED_FRAME   0x00000010

Definition at line 259 of file lance.c.

#define LANCE_LOG_RX_BUFFERS   4

Definition at line 190 of file lance.c.

#define LANCE_LOG_TX_BUFFERS   4

Definition at line 189 of file lance.c.

#define LANCE_MUST_PAD   0x00000001

Definition at line 255 of file lance.c.

#define LANCE_MUST_REINIT_RING   0x00000004

Definition at line 257 of file lance.c.

#define LANCE_MUST_UNRESET   0x00000008

Definition at line 258 of file lance.c.

#define LANCE_RESET   0x14

Definition at line 206 of file lance.c.

#define LANCE_TOTAL_SIZE   0x18

Definition at line 208 of file lance.c.

#define NUM_CARDS   3

Definition at line 88 of file lance.c.

#define PKT_BUF_SZ   1544

Definition at line 201 of file lance.c.

#define RX_RING_LEN_BITS   ((LANCE_LOG_RX_BUFFERS) << 29)

Definition at line 199 of file lance.c.

#define RX_RING_MOD_MASK   (RX_RING_SIZE - 1)

Definition at line 198 of file lance.c.

#define RX_RING_SIZE   (1 << (LANCE_LOG_RX_BUFFERS))

Definition at line 197 of file lance.c.

#define TX_RING_LEN_BITS   ((LANCE_LOG_TX_BUFFERS) << 29)

Definition at line 195 of file lance.c.

#define TX_RING_MOD_MASK   (TX_RING_SIZE - 1)

Definition at line 194 of file lance.c.

#define TX_RING_SIZE   (1 << (LANCE_LOG_TX_BUFFERS))

Definition at line 193 of file lance.c.

#define TX_TIMEOUT   (HZ/5)

Definition at line 210 of file lance.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
OLD_LANCE 
PCNET_ISA 
PCNET_ISAP 
PCNET_PCI 
PCNET_VLB 
PCNET_PCI_II 
LANCE_UNKNOWN 

Definition at line 293 of file lance.c.

Function Documentation

struct net_device* __init lance_probe ( int  unit)
read

Definition at line 436 of file lance.c.

MODULE_LICENSE ( "GPL"  )