Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ether1.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/ecard.h>
#include "ether1.h"

Go to the source code of this file.

Macros

#define __ETHER1_C
 
#define BUFFER_SIZE   0x10000
 
#define TX_AREA_START   0x00100
 
#define TX_AREA_END   0x05000
 
#define RX_AREA_START   0x05000
 
#define RX_AREA_END   0x0fc00
 
#define BUS_16   16
 
#define BUS_8   8
 
#define DISABLEIRQS   1
 
#define NORMALIRQS   0
 
#define ether1_readw(dev, addr, type, offset, svflgs)   ether1_inw_p (dev, addr + (int)(&((type *)0)->offset), svflgs)
 
#define ether1_writew(dev, val, addr, type, offset, svflgs)   ether1_outw_p (dev, val, addr + (int)(&((type *)0)->offset), svflgs)
 
#define NOP_ADDR   (TX_AREA_START)
 
#define NOP_SIZE   (0x06)
 
#define TDR_ADDR   (0x003a)
 
#define TDR_SIZE   (0x08)
 
#define MC_ADDR   (0x002e)
 
#define MC_SIZE   (0x0c)
 
#define SA_ADDR   (0x0022)
 
#define SA_SIZE   (0x0c)
 
#define CFG_ADDR   (0x0010)
 
#define CFG_SIZE   (0x12)
 
#define SCB_ADDR   (0x0000)
 
#define SCB_SIZE   (0x10)
 
#define ISCP_ADDR   (0xffee)
 
#define ISCP_SIZE   (0x08)
 
#define SCP_ADDR   (0xfff6)
 
#define SCP_SIZE   (0x0a)
 
#define RFD_SIZE   (0x16)
 
#define RBD_SIZE   (0x0a)
 
#define TX_SIZE   (0x08)
 
#define TBD_SIZE   (0x08)
 

Functions

 module_init (ether1_init)
 
 module_exit (ether1_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define __ETHER1_C

Definition at line 55 of file ether1.c.

#define BUFFER_SIZE   0x10000

Definition at line 60 of file ether1.c.

#define BUS_16   16

Definition at line 77 of file ether1.c.

#define BUS_8   8

Definition at line 78 of file ether1.c.

#define CFG_ADDR   (0x0010)

Definition at line 371 of file ether1.c.

#define CFG_SIZE   (0x12)

Definition at line 372 of file ether1.c.

#define DISABLEIRQS   1

Definition at line 82 of file ether1.c.

#define ether1_readw (   dev,
  addr,
  type,
  offset,
  svflgs 
)    ether1_inw_p (dev, addr + (int)(&((type *)0)->offset), svflgs)

Definition at line 85 of file ether1.c.

#define ether1_writew (   dev,
  val,
  addr,
  type,
  offset,
  svflgs 
)    ether1_outw_p (dev, val, addr + (int)(&((type *)0)->offset), svflgs)

Definition at line 86 of file ether1.c.

#define ISCP_ADDR   (0xffee)

Definition at line 403 of file ether1.c.

#define ISCP_SIZE   (0x08)

Definition at line 404 of file ether1.c.

#define MC_ADDR   (0x002e)

Definition at line 350 of file ether1.c.

#define MC_SIZE   (0x0c)

Definition at line 351 of file ether1.c.

#define NOP_ADDR   (TX_AREA_START)

Definition at line 331 of file ether1.c.

#define NOP_SIZE   (0x06)

Definition at line 332 of file ether1.c.

#define NORMALIRQS   0

Definition at line 83 of file ether1.c.

#define RBD_SIZE   (0x0a)

Definition at line 433 of file ether1.c.

#define RFD_SIZE   (0x16)

Definition at line 422 of file ether1.c.

#define RX_AREA_END   0x0fc00

Definition at line 64 of file ether1.c.

#define RX_AREA_START   0x05000

Definition at line 63 of file ether1.c.

#define SA_ADDR   (0x0022)

Definition at line 361 of file ether1.c.

#define SA_SIZE   (0x0c)

Definition at line 362 of file ether1.c.

#define SCB_ADDR   (0x0000)

Definition at line 389 of file ether1.c.

#define SCB_SIZE   (0x10)

Definition at line 390 of file ether1.c.

#define SCP_ADDR   (0xfff6)

Definition at line 413 of file ether1.c.

#define SCP_SIZE   (0x0a)

Definition at line 414 of file ether1.c.

#define TBD_SIZE   (0x08)

Definition at line 443 of file ether1.c.

#define TDR_ADDR   (0x003a)

Definition at line 340 of file ether1.c.

#define TDR_SIZE   (0x08)

Definition at line 341 of file ether1.c.

#define TX_AREA_END   0x05000

Definition at line 62 of file ether1.c.

#define TX_AREA_START   0x00100

Definition at line 61 of file ether1.c.

#define TX_SIZE   (0x08)

Definition at line 442 of file ether1.c.

Function Documentation

module_exit ( ether1_exit  )
module_init ( ether1_init  )
MODULE_LICENSE ( "GPL"  )