Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hydra.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/amigaints.h>
#include <asm/amigahw.h>
#include <linux/zorro.h>
#include "lib8390.c"

Go to the source code of this file.

Macros

#define EI_SHIFT(x)   (ei_local->reg_offset[x])
 
#define ei_inb(port)   in_8(port)
 
#define ei_outb(val, port)   out_8(port,val)
 
#define ei_inb_p(port)   in_8(port)
 
#define ei_outb_p(val, port)   out_8(port,val)
 
#define NE_EN0_DCFG   (0x0e*2)
 
#define NESM_START_PG   0x0 /* First page of TX buffer */
 
#define NESM_STOP_PG   0x40 /* Last page +1 of RX ring */
 
#define HYDRA_NIC_BASE   0xffe1
 
#define HYDRA_ADDRPROM   0xffc0
 
#define HYDRA_VERSION   "v3.0alpha"
 
#define WORDSWAP(a)   ((((a)>>8)&0xff) | ((a)<<8))
 

Functions

 MODULE_DEVICE_TABLE (zorro, hydra_zorro_tbl)
 
 module_init (hydra_init_module)
 
 module_exit (hydra_cleanup_module)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ei_inb (   port)    in_8(port)

Definition at line 34 of file hydra.c.

#define ei_inb_p (   port)    in_8(port)

Definition at line 36 of file hydra.c.

#define ei_outb (   val,
  port 
)    out_8(port,val)

Definition at line 35 of file hydra.c.

#define ei_outb_p (   val,
  port 
)    out_8(port,val)

Definition at line 37 of file hydra.c.

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

Definition at line 33 of file hydra.c.

#define HYDRA_ADDRPROM   0xffc0

Definition at line 50 of file hydra.c.

#define HYDRA_NIC_BASE   0xffe1

Definition at line 49 of file hydra.c.

#define HYDRA_VERSION   "v3.0alpha"

Definition at line 51 of file hydra.c.

#define NE_EN0_DCFG   (0x0e*2)

Definition at line 44 of file hydra.c.

#define NESM_START_PG   0x0 /* First page of TX buffer */

Definition at line 46 of file hydra.c.

#define NESM_STOP_PG   0x40 /* Last page +1 of RX ring */

Definition at line 47 of file hydra.c.

#define WORDSWAP (   a)    ((((a)>>8)&0xff) | ((a)<<8))

Definition at line 53 of file hydra.c.

Function Documentation

MODULE_DEVICE_TABLE ( zorro  ,
hydra_zorro_tbl   
)
module_exit ( hydra_cleanup_module  )
module_init ( hydra_init_module  )
MODULE_LICENSE ( "GPL"  )