#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
Go to the source code of this file.
|
| 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
} |
| |
| #define CMD_EOL 0x8000 /* The last command of the list, stop. */ |
| #define CMD_FLEX 0x0008 /* Enable flexible memory model */ |
| #define CMD_INTR 0x2000 /* Interrupt after doing cmd. */ |
| #define CMD_STAT_A 0x1000 /* CU command abnormally terminated */ |
| #define CMD_STAT_B 0x4000 /* CU command in progress */ |
| #define CMD_STAT_C 0x8000 /* CU command complete */ |
| #define CMD_STAT_OK 0x2000 /* CU command completed without errors */ |
| #define CMD_SUSP 0x4000 /* Suspend after doing cmd. */ |
| #define CUC_RESUME 0x0200 |
| #define CUC_SUSPEND 0x0300 |
| #define DRV_NAME "lp486e" |
| #define I596_NULL (0xffffffff) |
| #define IOADDR 0xcb0 /* real constant */ |
| #define IRQ 10 /* default IRQ - can be changed by ECU */ |
| #define LOG_SRCDST 0x80000000 |
| #define LOG_STARTINT 0x20000000 |
| #define LOG_STATINT 0x40000000 |
| #define LP486E_TOTAL_SIZE 16 |
| #define PORT_ALTSCP 0x02 /* alternate SCB address */ |
| #define PORT_DUMP 0x03 /* dump */ |
| #define PORT_RESET 0x00 /* reset 82596 */ |
| #define PORT_SELFTEST 0x01 /* selftest */ |
| #define RBD_SIZEMASK 0x3fff |
| #define RFD_ALIGN_ERR 0x0400 |
| #define RFD_COLLISION 0x0001 |
| #define RFD_CRC_ERR 0x0800 |
| #define RFD_DMA_ERR 0x0100 /* DMA overrun failure to acquire system bus */ |
| #define RFD_LENGTH_ERR 0x1000 |
| #define RFD_NOBUFS_ERR 0x0200 |
| #define RFD_NOEOP_ERR 0x0040 |
| #define RFD_SHORT_FRAME_ERR 0x0080 |
| #define RFD_STAT_B 0x4000 /* Frame reception in progress */ |
| #define RFD_STAT_C 0x8000 /* Frame reception complete */ |
| #define RFD_STAT_OK 0x2000 /* Frame received without errors */ |
| #define RFD_STATUS 0x1fff |
| #define RFD_TRUNC_ERR 0x0020 |
| #define RX_SUSPEND 0x0030 |
| #define STAT_CNA 0x2000 /* The CU left the active state */ |
| #define STAT_FR 0x4000 /* The RU finished receiving a frame */ |
| #define STAT_RNR 0x1000 /* The RU left the active state */ |
| #define STAT_T 0x0008 /* Bus throttle timers loaded */ |
| #define STAT_ZERO 0x0807 /* Always zero */ |
- Enumerator:
| CmdNOp |
|
| CmdSASetup |
|
| CmdConfigure |
|
| CmdMulticastList |
|
| CmdTx |
|
| CmdTDR |
|
| CmdDump |
|
| CmdDiagnose |
|
| CmdNOp |
|
| CmdSASetup |
|
| CmdConfigure |
|
| CmdMulticastList |
|
| CmdTx |
|
| CmdTDR |
|
| CmdDump |
|
| CmdDiagnose |
|
| CmdNOp |
|
| CmdSASetup |
|
| CmdConfigure |
|
| CmdMulticastList |
|
| CmdTx |
|
| CmdTDR |
|
| CmdDump |
|
| CmdDiagnose |
|
| CmdNOP |
|
| CmdIASetup |
|
| CmdConfigure |
|
| CmdMulticastList |
|
| CmdTx |
|
| CmdTDR |
|
| CmdDump |
|
| CmdDiagnose |
|
Definition at line 102 of file lp486e.c.
| MODULE_DESCRIPTION |
( |
"Intel Panther onboard i82596 driver" |
| ) |
|
| module_exit |
( |
lp486e_cleanup_module |
| ) |
|
| module_init |
( |
lp486e_init_module |
| ) |
|
| module_param |
( |
full_duplex |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |