Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
znet.c File Reference
#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.

Data Structures

struct  znet_private
 
struct  netidblk
 

Macros

#define ZNET_DEBUG   1
 
#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 dma_page_eq(ptr1, ptr2)   ((long)(ptr1)>>17 == (long)(ptr2)>>17)
 
#define RX_BUF_SIZE   8192
 
#define TX_BUF_SIZE   8192
 
#define DMA_BUF_SIZE   (RX_BUF_SIZE + 16) /* 8k + 16 bytes for trailers */
 
#define TX_TIMEOUT   (HZ/10)
 
#define NETIDBLK_MAGIC   "NETIDBLK"
 
#define NETIDBLK_MAGIC_SIZE   8
 

Functions

 module_param (znet_debug, int, 0)
 
 MODULE_PARM_DESC (znet_debug,"ZNet debug level")
 
 MODULE_LICENSE ("GPL")
 
 module_init (znet_probe)
 
 module_exit (znet_cleanup)
 

Macro Definition Documentation

#define DMA_BUF_SIZE   (RX_BUF_SIZE + 16) /* 8k + 16 bytes for trailers */

Definition at line 124 of file znet.c.

#define dma_page_eq (   ptr1,
  ptr2 
)    ((long)(ptr1)>>17 == (long)(ptr2)>>17)

Definition at line 121 of file znet.c.

#define DMA_RX_MODE   0x14 /* Auto init, I/O to mem, ++, demand. */

Definition at line 119 of file znet.c.

#define DMA_TX_MODE   0x18 /* Auto init, Mem to I/O, ++, demand. */

Definition at line 120 of file znet.c.

#define NETIDBLK_MAGIC   "NETIDBLK"

Definition at line 142 of file znet.c.

#define NETIDBLK_MAGIC_SIZE   8

Definition at line 143 of file znet.c.

#define RX_BUF_SIZE   8192

Definition at line 122 of file znet.c.

#define TX_BUF_SIZE   8192

Definition at line 123 of file znet.c.

#define TX_TIMEOUT   (HZ/10)

Definition at line 126 of file znet.c.

#define ZNET_DEBUG   1

Definition at line 111 of file znet.c.

Function Documentation

module_exit ( znet_cleanup  )
module_init ( znet_probe  )
MODULE_LICENSE ( "GPL"  )
module_param ( znet_debug  ,
int  ,
 
)
MODULE_PARM_DESC ( znet_debug  ,
"ZNet debug level  
)