Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/zorro.h>
#include <linux/jiffies.h>
#include <asm/irq.h>
#include <asm/amigaints.h>
#include <asm/amigahw.h>
#include "lib8390.c"
Go to the source code of this file.
Data Structures | |
struct | card_info |
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#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 | DRV_NAME "zorro8390" |
#define | NE_BASE (dev->base_addr) |
#define | NE_CMD (0x00 * 2) |
#define | NE_DATAPORT (0x10 * 2) /* NatSemi-defined port window offset */ |
#define | NE_RESET |
#define | NE_IO_EXTENT (0x20 * 2) |
#define | NE_EN0_ISR (0x07 * 2) |
#define | NE_EN0_DCFG (0x0e * 2) |
#define | NE_EN0_RSARLO (0x08 * 2) |
#define | NE_EN0_RSARHI (0x09 * 2) |
#define | NE_EN0_RCNTLO (0x0a * 2) |
#define | NE_EN0_RXCR (0x0c * 2) |
#define | NE_EN0_TXCR (0x0d * 2) |
#define | NE_EN0_RCNTHI (0x0b * 2) |
#define | NE_EN0_IMR (0x0f * 2) |
#define | NESM_START_PG 0x40 /* First page of TX buffer */ |
#define | NESM_STOP_PG 0x80 /* Last page +1 of RX ring */ |
#define | WORDSWAP(a) ((((a) >> 8) & 0xff) | ((a) << 8)) |
Functions | |
MODULE_DEVICE_TABLE (zorro, zorro8390_zorro_tbl) | |
module_init (zorro8390_init_module) | |
module_exit (zorro8390_cleanup_module) | |
MODULE_LICENSE ("GPL") | |
#define DRV_NAME "zorro8390" |
Definition at line 49 of file zorro8390.c.
Definition at line 39 of file zorro8390.c.
Definition at line 41 of file zorro8390.c.
Definition at line 38 of file zorro8390.c.
#define NE_BASE (dev->base_addr) |
Definition at line 51 of file zorro8390.c.
#define NE_CMD (0x00 * 2) |
Definition at line 52 of file zorro8390.c.
#define NE_DATAPORT (0x10 * 2) /* NatSemi-defined port window offset */ |
Definition at line 53 of file zorro8390.c.
#define NE_EN0_DCFG (0x0e * 2) |
Definition at line 58 of file zorro8390.c.
#define NE_EN0_IMR (0x0f * 2) |
Definition at line 66 of file zorro8390.c.
#define NE_EN0_ISR (0x07 * 2) |
Definition at line 57 of file zorro8390.c.
#define NE_EN0_RCNTHI (0x0b * 2) |
Definition at line 65 of file zorro8390.c.
#define NE_EN0_RCNTLO (0x0a * 2) |
Definition at line 62 of file zorro8390.c.
#define NE_EN0_RSARHI (0x09 * 2) |
Definition at line 61 of file zorro8390.c.
#define NE_EN0_RSARLO (0x08 * 2) |
Definition at line 60 of file zorro8390.c.
#define NE_EN0_RXCR (0x0c * 2) |
Definition at line 63 of file zorro8390.c.
#define NE_EN0_TXCR (0x0d * 2) |
Definition at line 64 of file zorro8390.c.
#define NE_IO_EXTENT (0x20 * 2) |
Definition at line 55 of file zorro8390.c.
#define NE_RESET |
Definition at line 54 of file zorro8390.c.
#define NESM_START_PG 0x40 /* First page of TX buffer */ |
Definition at line 68 of file zorro8390.c.
#define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */ |
Definition at line 69 of file zorro8390.c.
Definition at line 22 of file zorro8390.c.
Definition at line 71 of file zorro8390.c.
MODULE_DEVICE_TABLE | ( | zorro | , |
zorro8390_zorro_tbl | |||
) |
module_exit | ( | zorro8390_cleanup_module | ) |
module_init | ( | zorro8390_init_module | ) |
MODULE_LICENSE | ( | "GPL" | ) |