Linux Kernel
3.7.1
|
#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/spinlock.h>
#include <linux/ethtool.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/uaccess.h>
Go to the source code of this file.
Data Structures | |
struct | net_local |
Macros | |
#define | DRV_NAME "3c507" |
#define | DRV_VERSION "1.10a" |
#define | DRV_RELDATE "11/17/2001" |
#define | NET_DEBUG 1 |
#define | debug net_debug |
#define | CUC_START 0x0100 |
#define | CUC_RESUME 0x0200 |
#define | CUC_SUSPEND 0x0300 |
#define | RX_START 0x0010 |
#define | RX_RESUME 0x0020 |
#define | RX_SUSPEND 0x0030 |
#define | CMD_EOL 0x8000 /* The last command of the list, stop. */ |
#define | CMD_SUSP 0x4000 /* Suspend after doing cmd. */ |
#define | CMD_INTR 0x2000 /* Interrupt after doing cmd. */ |
#define | SA_DATA 0 /* Station address data, or 3Com signature. */ |
#define | MISC_CTRL 6 /* Switch the SA_DATA banks, and bus config bits. */ |
#define | RESET_IRQ 10 /* Reset the latched IRQ line. */ |
#define | SIGNAL_CA 11 /* Frob the 82586 Channel Attention line. */ |
#define | ROM_CONFIG 13 |
#define | MEM_CONFIG 14 |
#define | IRQ_CONFIG 15 |
#define | EL16_IO_EXTENT 16 |
#define | ID_PORT 0x100 |
#define | iSCB_STATUS 0x8 |
#define | iSCB_CMD 0xA |
#define | iSCB_CBL 0xC /* Command BLock offset. */ |
#define | iSCB_RFA 0xE /* Rx Frame Area offset. */ |
#define | SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start)) |
#define | CONFIG_CMD 0x0018 |
#define | SET_SA_CMD 0x0024 |
#define | SA_OFFSET 0x002A |
#define | IDLELOOP 0x30 |
#define | TDR_CMD 0x38 |
#define | TDR_TIME 0x3C |
#define | DUMP_CMD 0x40 |
#define | DIAG_CMD 0x48 |
#define | SET_MC_CMD 0x4E |
#define | DUMP_DATA 0x56 /* A 170 byte buffer for dump and Set-MC into. */ |
#define | TX_BUF_START 0x0100 |
#define | NUM_TX_BUFS 5 |
#define | TX_BUF_SIZE (1518+14+20+16) /* packet+header+TBD */ |
#define | RX_BUF_START 0x2000 |
#define | RX_BUF_SIZE (1518+14+18) /* packet+header+RBD */ |
#define | RX_BUF_END (dev->mem_end - dev->mem_start) |
#define | TX_TIMEOUT (HZ/20) |
Enumerations | |
enum | commands { CmdNOp = 0, CmdSASetup = 1, CmdConfigure = 2, CmdMulticastList = 3, CmdTx = 4, CmdTDR = 5, CmdDump = 6, CmdDiagnose = 7, CmdNOp = 0, CmdSASetup = 1, CmdConfigure = 2, CmdMulticastList = 3, CmdTx = 4, CmdTDR = 5, CmdDump = 6, CmdDiagnose = 7, CmdNOp = 0, CmdSASetup = 1, CmdConfigure = 2, CmdMulticastList = 3, CmdTx = 4, CmdTDR = 5, CmdDump = 6, CmdDiagnose = 7, CmdNOP = 0, CmdIASetup = 1, CmdConfigure = 2, CmdMulticastList = 3, CmdTx = 4, CmdTDR = 5, CmdDump = 6, CmdDiagnose = 7 } |
Functions | |
struct net_device *__init | el16_probe (int unit) |
MODULE_LICENSE ("GPL") | |
#define CMD_EOL 0x8000 /* The last command of the list, stop. */ |
#define DUMP_DATA 0x56 /* A 170 byte buffer for dump and Set-MC into. */ |
enum commands |
MODULE_LICENSE | ( | "GPL" | ) |