Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
3c507.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/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")
 

Macro Definition Documentation

#define CMD_EOL   0x8000 /* The last command of the list, stop. */

Definition at line 110 of file 3c507.c.

#define CMD_INTR   0x2000 /* Interrupt after doing cmd. */

Definition at line 112 of file 3c507.c.

#define CMD_SUSP   0x4000 /* Suspend after doing cmd. */

Definition at line 111 of file 3c507.c.

#define CONFIG_CMD   0x0018

Definition at line 184 of file 3c507.c.

#define CUC_RESUME   0x0200

Definition at line 92 of file 3c507.c.

#define CUC_START   0x0100

Definition at line 91 of file 3c507.c.

#define CUC_SUSPEND   0x0300

Definition at line 93 of file 3c507.c.

#define debug   net_debug

Definition at line 73 of file 3c507.c.

#define DIAG_CMD   0x48

Definition at line 191 of file 3c507.c.

#define DRV_NAME   "3c507"

Definition at line 28 of file 3c507.c.

#define DRV_RELDATE   "11/17/2001"

Definition at line 30 of file 3c507.c.

#define DRV_VERSION   "1.10a"

Definition at line 29 of file 3c507.c.

#define DUMP_CMD   0x40

Definition at line 190 of file 3c507.c.

#define DUMP_DATA   0x56 /* A 170 byte buffer for dump and Set-MC into. */

Definition at line 193 of file 3c507.c.

#define EL16_IO_EXTENT   16

Definition at line 146 of file 3c507.c.

#define ID_PORT   0x100

Definition at line 149 of file 3c507.c.

#define IDLELOOP   0x30

Definition at line 187 of file 3c507.c.

#define IRQ_CONFIG   15

Definition at line 145 of file 3c507.c.

#define iSCB_CBL   0xC /* Command BLock offset. */

Definition at line 154 of file 3c507.c.

#define iSCB_CMD   0xA

Definition at line 153 of file 3c507.c.

#define iSCB_RFA   0xE /* Rx Frame Area offset. */

Definition at line 155 of file 3c507.c.

#define iSCB_STATUS   0x8

Definition at line 152 of file 3c507.c.

#define MEM_CONFIG   14

Definition at line 144 of file 3c507.c.

#define MISC_CTRL   6 /* Switch the SA_DATA banks, and bus config bits. */

Definition at line 140 of file 3c507.c.

#define NET_DEBUG   1

Definition at line 70 of file 3c507.c.

#define NUM_TX_BUFS   5

Definition at line 196 of file 3c507.c.

#define RESET_IRQ   10 /* Reset the latched IRQ line. */

Definition at line 141 of file 3c507.c.

#define ROM_CONFIG   13

Definition at line 143 of file 3c507.c.

#define RX_BUF_END   (dev->mem_end - dev->mem_start)

Definition at line 201 of file 3c507.c.

#define RX_BUF_SIZE   (1518+14+18) /* packet+header+RBD */

Definition at line 200 of file 3c507.c.

#define RX_BUF_START   0x2000

Definition at line 199 of file 3c507.c.

#define RX_RESUME   0x0020

Definition at line 95 of file 3c507.c.

#define RX_START   0x0010

Definition at line 94 of file 3c507.c.

#define RX_SUSPEND   0x0030

Definition at line 96 of file 3c507.c.

#define SA_DATA   0 /* Station address data, or 3Com signature. */

Definition at line 139 of file 3c507.c.

#define SA_OFFSET   0x002A

Definition at line 186 of file 3c507.c.

#define SCB_BASE   ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))

Definition at line 166 of file 3c507.c.

#define SET_MC_CMD   0x4E

Definition at line 192 of file 3c507.c.

#define SET_SA_CMD   0x0024

Definition at line 185 of file 3c507.c.

#define SIGNAL_CA   11 /* Frob the 82586 Channel Attention line. */

Definition at line 142 of file 3c507.c.

#define TDR_CMD   0x38

Definition at line 188 of file 3c507.c.

#define TDR_TIME   0x3C

Definition at line 189 of file 3c507.c.

#define TX_BUF_SIZE   (1518+14+20+16) /* packet+header+TBD */

Definition at line 197 of file 3c507.c.

#define TX_BUF_START   0x0100

Definition at line 195 of file 3c507.c.

#define TX_TIMEOUT   (HZ/20)

Definition at line 203 of file 3c507.c.

Enumeration Type Documentation

enum commands
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 114 of file 3c507.c.

Function Documentation

struct net_device* __init el16_probe ( int  unit)
read

Definition at line 310 of file 3c507.c.

MODULE_LICENSE ( "GPL"  )