Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
stnic.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <mach-se/mach/se.h>
#include <asm/machvec.h>
#include "8390.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "stnic"
 
#define byte   unsigned char
 
#define half   unsigned short
 
#define word   unsigned int
 
#define vbyte   volatile unsigned char
 
#define vhalf   volatile unsigned short
 
#define vword   volatile unsigned int
 
#define STNIC_RUN   0x01 /* 1 == Run, 0 == reset. */
 
#define START_PG   0 /* First page of TX buffer */
 
#define STOP_PG   128 /* Last page +1 of RX ring */
 
#define STNIC_CR   E8390_CMD
 
#define PG0_RSAR0   EN0_RSARLO
 
#define PG0_RSAR1   EN0_RSARHI
 
#define PG0_RBCR0   EN0_RCNTLO
 
#define PG0_RBCR1   EN0_RCNTHI
 
#define CR_RRD   E8390_RREAD
 
#define CR_RWR   E8390_RWRITE
 
#define CR_PG0   E8390_PAGE0
 
#define CR_STA   E8390_START
 
#define CR_RDMA   E8390_NODMA
 

Functions

 module_init (stnic_probe)
 
 module_exit (stnic_cleanup)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define byte   unsigned char

Definition at line 31 of file stnic.c.

#define CR_PG0   E8390_PAGE0

Definition at line 52 of file stnic.c.

#define CR_RDMA   E8390_NODMA

Definition at line 54 of file stnic.c.

#define CR_RRD   E8390_RREAD

Definition at line 50 of file stnic.c.

#define CR_RWR   E8390_RWRITE

Definition at line 51 of file stnic.c.

#define CR_STA   E8390_START

Definition at line 53 of file stnic.c.

#define DRV_NAME   "stnic"

Definition at line 29 of file stnic.c.

#define half   unsigned short

Definition at line 32 of file stnic.c.

#define PG0_RBCR0   EN0_RCNTLO

Definition at line 47 of file stnic.c.

#define PG0_RBCR1   EN0_RCNTHI

Definition at line 48 of file stnic.c.

#define PG0_RSAR0   EN0_RSARLO

Definition at line 45 of file stnic.c.

#define PG0_RSAR1   EN0_RSARHI

Definition at line 46 of file stnic.c.

#define START_PG   0 /* First page of TX buffer */

Definition at line 40 of file stnic.c.

#define STNIC_CR   E8390_CMD

Definition at line 44 of file stnic.c.

#define STNIC_RUN   0x01 /* 1 == Run, 0 == reset. */

Definition at line 38 of file stnic.c.

#define STOP_PG   128 /* Last page +1 of RX ring */

Definition at line 41 of file stnic.c.

#define vbyte   volatile unsigned char

Definition at line 34 of file stnic.c.

#define vhalf   volatile unsigned short

Definition at line 35 of file stnic.c.

#define vword   volatile unsigned int

Definition at line 36 of file stnic.c.

#define word   unsigned int

Definition at line 33 of file stnic.c.

Function Documentation

module_exit ( stnic_cleanup  )
module_init ( stnic_probe  )
MODULE_LICENSE ( "GPL"  )