Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
etherh.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/string.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/skbuff.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/jiffies.h>
#include <asm/ecard.h>
#include <asm/io.h>
#include <asm/system_info.h>
#include "lib8390.c"

Go to the source code of this file.

Data Structures

struct  etherh_priv
 
struct  etherh_data
 

Macros

#define EI_SHIFT(x)   (ei_local->reg_offset[x])
 
#define ei_inb(_p)   readb((void __iomem *)_p)
 
#define ei_outb(_v, _p)   writeb(_v,(void __iomem *)_p)
 
#define ei_inb_p(_p)   readb((void __iomem *)_p)
 
#define ei_outb_p(_v, _p)   writeb(_v,(void __iomem *)_p)
 
#define NET_DEBUG   0
 
#define DEBUG_INIT   2
 
#define DRV_NAME   "etherh"
 
#define DRV_VERSION   "1.11"
 
#define ETHERH500_DATAPORT   0x800 /* MEMC */
 
#define ETHERH500_NS8390   0x000 /* MEMC */
 
#define ETHERH500_CTRLPORT   0x800 /* IOC */
 
#define ETHERH600_DATAPORT   0x040 /* MEMC */
 
#define ETHERH600_NS8390   0x800 /* MEMC */
 
#define ETHERH600_CTRLPORT   0x200 /* MEMC */
 
#define ETHERH_CP_IE   1
 
#define ETHERH_CP_IF   2
 
#define ETHERH_CP_HEARTBEAT   2
 
#define ETHERH_TX_START_PAGE   1
 
#define ETHERH_STOP_PAGE   127
 
#define ETHERM_DATAPORT   0x200 /* MEMC */
 
#define ETHERM_NS8390   0x800 /* MEMC */
 
#define ETHERM_CTRLPORT   0x23c /* MEMC */
 
#define ETHERM_TX_START_PAGE   64
 
#define ETHERM_STOP_PAGE   127
 
#define etherh_priv(dev)   ((struct etherh_priv *)(((char *)netdev_priv(dev)) + sizeof(struct ei_device)))
 

Functions

 MODULE_AUTHOR ("Russell King")
 
 MODULE_DESCRIPTION ("EtherH/EtherM driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (etherh_init)
 
 module_exit (etherh_exit)
 

Macro Definition Documentation

#define DEBUG_INIT   2

Definition at line 60 of file etherh.c.

#define DRV_NAME   "etherh"

Definition at line 62 of file etherh.c.

#define DRV_VERSION   "1.11"

Definition at line 63 of file etherh.c.

#define ei_inb (   _p)    readb((void __iomem *)_p)

Definition at line 54 of file etherh.c.

#define ei_inb_p (   _p)    readb((void __iomem *)_p)

Definition at line 56 of file etherh.c.

#define ei_outb (   _v,
  _p 
)    writeb(_v,(void __iomem *)_p)

Definition at line 55 of file etherh.c.

#define ei_outb_p (   _v,
  _p 
)    writeb(_v,(void __iomem *)_p)

Definition at line 57 of file etherh.c.

#define EI_SHIFT (   x)    (ei_local->reg_offset[x])

Definition at line 52 of file etherh.c.

#define ETHERH500_CTRLPORT   0x800 /* IOC */

Definition at line 99 of file etherh.c.

#define ETHERH500_DATAPORT   0x800 /* MEMC */

Definition at line 97 of file etherh.c.

#define ETHERH500_NS8390   0x000 /* MEMC */

Definition at line 98 of file etherh.c.

#define ETHERH600_CTRLPORT   0x200 /* MEMC */

Definition at line 103 of file etherh.c.

#define ETHERH600_DATAPORT   0x040 /* MEMC */

Definition at line 101 of file etherh.c.

#define ETHERH600_NS8390   0x800 /* MEMC */

Definition at line 102 of file etherh.c.

#define ETHERH_CP_HEARTBEAT   2

Definition at line 107 of file etherh.c.

#define ETHERH_CP_IE   1

Definition at line 105 of file etherh.c.

#define ETHERH_CP_IF   2

Definition at line 106 of file etherh.c.

#define etherh_priv (   dev)    ((struct etherh_priv *)(((char *)netdev_priv(dev)) + sizeof(struct ei_device)))

Definition at line 124 of file etherh.c.

#define ETHERH_STOP_PAGE   127

Definition at line 110 of file etherh.c.

#define ETHERH_TX_START_PAGE   1

Definition at line 109 of file etherh.c.

#define ETHERM_CTRLPORT   0x23c /* MEMC */

Definition at line 117 of file etherh.c.

#define ETHERM_DATAPORT   0x200 /* MEMC */

Definition at line 115 of file etherh.c.

#define ETHERM_NS8390   0x800 /* MEMC */

Definition at line 116 of file etherh.c.

#define ETHERM_STOP_PAGE   127

Definition at line 120 of file etherh.c.

#define ETHERM_TX_START_PAGE   64

Definition at line 119 of file etherh.c.

#define NET_DEBUG   0

Definition at line 59 of file etherh.c.

Function Documentation

MODULE_AUTHOR ( "Russell King"  )
MODULE_DESCRIPTION ( "EtherH/EtherM driver )
module_exit ( etherh_exit  )
module_init ( etherh_init  )
MODULE_LICENSE ( "GPL"  )