30#define PCNET32_LOG_TX_BUFFERS 4
31#define PCNET32_LOG_RX_BUFFERS 5
34#define PCNET32_LOG_MAX_TX_BUFFERS 9
35#define PCNET32_LOG_MAX_RX_BUFFERS 9
37#define TX_RING_SIZE ( 1 << ( PCNET32_LOG_TX_BUFFERS ) )
38#define TX_MAX_RING_SIZE ( 1 << ( PCNET32_LOG_MAX_TX_BUFFERS ) )
40#define RX_RING_SIZE ( 1 << ( PCNET32_LOG_RX_BUFFERS ) )
41#define RX_MAX_RING_SIZE ( 1 << ( PCNET32_LOG_MAX_RX_BUFFERS ) )
43#define RX_RING_BYTES ( RX_RING_SIZE * sizeof(struct pcnet32_rx_desc ) )
44#define TX_RING_BYTES ( TX_RING_SIZE * sizeof(struct pcnet32_tx_desc ) )
46#define PKT_BUF_SIZE 1536
48#define RX_RING_ALIGN 16
49#define TX_RING_ALIGN 16
51#define INIT_BLOCK_ALIGN 32
53#define PCNET32_WIO_RDP 0x10
54#define PCNET32_WIO_RAP 0x12
55#define PCNET32_WIO_RESET 0x14
56#define PCNET32_WIO_BDP 0x16
58#define PCNET32_DWIO_RDP 0x10
59#define PCNET32_DWIO_RAP 0x14
60#define PCNET32_DWIO_RESET 0x18
61#define PCNET32_DWIO_BDP 0x1C
63#define PCNET32_PORT_AUI 0x00
64#define PCNET32_PORT_10BT 0x01
65#define PCNET32_PORT_GPSI 0x02
66#define PCNET32_PORT_MII 0x03
68#define PCNET32_PORT_PORTSEL 0x03
69#define PCNET32_PORT_ASEL 0x04
70#define PCNET32_PORT_100 0x40
71#define PCNET32_PORT_FD 0x80
73#define PCNET32_SWSTYLE_LANCE 0x00
74#define PCNET32_SWSTYLE_ILACC 0x01
75#define PCNET32_SWSTYLE_PCNET32 0x02
77#define PCNET32_MAX_PHYS 32
79#ifndef PCI_VENDOR_ID_AT
80#define PCI_VENDOR_ID_AT 0x1259
83#ifndef PCI_SUBDEVICE_ID_AT_2700FX
84#define PCI_SUBDEVICE_ID_AT_2700FX 0x2701
87#ifndef PCI_SUBDEVICE_ID_AT_2701FX
88#define PCI_SUBDEVICE_ID_AT_2701FX 0x2703
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
void(* write_csr)(unsigned long, int, u16)
void(* reset)(unsigned long)
u16(* read_csr)(unsigned long, int)
u16(* read_rap)(unsigned long)
void(* write_bcr)(unsigned long, int, u16)
u16(* read_bcr)(unsigned long, int)
void(* write_rap)(unsigned long, u16)
struct pcnet32_rx_desc * rx_base
struct pci_device * pci_dev
struct io_buffer * tx_iobuf[TX_RING_SIZE]
struct io_buffer * rx_iobuf[RX_RING_SIZE]
struct pcnet32_tx_desc * tx_base
struct pcnet32_access * a
struct net_device * netdev
struct pcnet32_init_block init_block __attribute__((aligned(32)))
unsigned short chip_version