#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <linux/i82593.h>
Go to the source code of this file.
| #define DMA_BUF_SIZE (RX_BUF_SIZE + 16) /* 8k + 16 bytes for trailers */ |
| #define dma_page_eq |
( |
|
ptr1, |
|
|
|
ptr2 |
|
) |
| ((long)(ptr1)>>17 == (long)(ptr2)>>17) |
| #define DMA_RX_MODE 0x14 /* Auto init, I/O to mem, ++, demand. */ |
| #define DMA_TX_MODE 0x18 /* Auto init, Mem to I/O, ++, demand. */ |
| #define NETIDBLK_MAGIC "NETIDBLK" |
| #define NETIDBLK_MAGIC_SIZE 8 |
| #define TX_TIMEOUT (HZ/10) |
| module_exit |
( |
znet_cleanup |
| ) |
|
| module_init |
( |
znet_probe |
| ) |
|
| module_param |
( |
znet_debug |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
znet_debug |
, |
|
|
"ZNet debug level" |
|
|
) |
| |