Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
depca.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/crc32.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/time.h>
#include <linux/types.h>
#include <linux/unistd.h>
#include <linux/ctype.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/bitops.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/dma.h>
#include "depca.h"

Go to the source code of this file.

Data Structures

struct  depca_rx_desc
 
struct  depca_tx_desc
 
struct  depca_init
 
struct  depca_private
 

Macros

#define DEPCA_NDA   0xffe0 /* No Device Address */
 
#define TX_TIMEOUT   (1*HZ)
 
#define PROBE_LENGTH   32
 
#define ETH_PROM_SIG   0xAA5500FFUL
 
#define NUM_RX_DESC   8 /* Number of RX descriptors */
 
#define NUM_TX_DESC   8 /* Number of TX descriptors */
 
#define RX_BUFF_SZ   1536 /* Buffer size for each Rx buffer */
 
#define TX_BUFF_SZ   1536 /* Buffer size for each Tx buffer */
 
#define DEPCA_EISA_IO_PORTS   0x0c00 /* I/O port base address, slot 0 */
 
#define DEPCA_RAM_BASE_ADDRESSES   {0xc0000,0xd0000,0xe0000,0x00000}
 
#define DEPCA_TOTAL_SIZE   0x10
 
#define DEPCA_SIGNATURE
 
#define DEPCA_STRLEN   16
 
#define DEPCA_ALIGN4   ((u_long)4 - 1) /* 1 longword align */
 
#define DEPCA_ALIGN8   ((u_long)8 - 1) /* 2 longword (quadword) align */
 
#define DEPCA_ALIGN   DEPCA_ALIGN8 /* Keep the LANCE happy... */
 
#define LA_MASK
 
#define DEPCA_PKT_STAT_SZ   16
 
#define DEPCA_PKT_BIN_SZ
 
#define TX_BUFFS_AVAIL
 
#define STOP_DEPCA
 

Enumerations

enum  depca_type {
  DEPCA, de100, de101, de200,
  de201, de202, de210, de212,
  de422, unknown
}
 

Functions

 module_param (irq, int, 0)
 
 module_param (io, int, 0)
 
 module_param (adapter_name, charp, 0)
 
 module_param (mem, int, 0)
 
 MODULE_PARM_DESC (irq,"DEPCA IRQ number")
 
 MODULE_PARM_DESC (io,"DEPCA I/O base address")
 
 MODULE_PARM_DESC (adapter_name,"DEPCA adapter name")
 
 MODULE_PARM_DESC (mem,"DEPCA shared memory address")
 
 MODULE_LICENSE ("GPL")
 
 module_init (depca_module_init)
 
 module_exit (depca_module_exit)
 

Macro Definition Documentation

#define DEPCA_ALIGN   DEPCA_ALIGN8 /* Keep the LANCE happy... */

Definition at line 374 of file depca.c.

#define DEPCA_ALIGN4   ((u_long)4 - 1) /* 1 longword align */

Definition at line 372 of file depca.c.

#define DEPCA_ALIGN8   ((u_long)8 - 1) /* 2 longword (quadword) align */

Definition at line 373 of file depca.c.

#define DEPCA_EISA_IO_PORTS   0x0c00 /* I/O port base address, slot 0 */

Definition at line 290 of file depca.c.

#define DEPCA_NDA   0xffe0 /* No Device Address */

Definition at line 265 of file depca.c.

#define DEPCA_PKT_BIN_SZ
Value:
128 /* Should be >=100 unless you
increase DEPCA_PKT_STAT_SZ */

Definition at line 405 of file depca.c.

#define DEPCA_PKT_STAT_SZ   16

Definition at line 404 of file depca.c.

#define DEPCA_RAM_BASE_ADDRESSES   {0xc0000,0xd0000,0xe0000,0x00000}

Definition at line 295 of file depca.c.

#define DEPCA_SIGNATURE
Value:
{"DEPCA",\
"DE100","DE101",\
"DE200","DE201","DE202",\
"DE210","DE212",\
"DE422",\
""}

Definition at line 310 of file depca.c.

#define DEPCA_STRLEN   16

Definition at line 364 of file depca.c.

#define DEPCA_TOTAL_SIZE   0x10

Definition at line 296 of file depca.c.

#define ETH_PROM_SIG   0xAA5500FFUL

Definition at line 273 of file depca.c.

#define LA_MASK
Value:
0x0000ffff /* LANCE address mask for mapping network RAM
to LANCE memory address space */

Definition at line 391 of file depca.c.

#define NUM_RX_DESC   8 /* Number of RX descriptors */

Definition at line 282 of file depca.c.

#define NUM_TX_DESC   8 /* Number of TX descriptors */

Definition at line 283 of file depca.c.

#define PROBE_LENGTH   32

Definition at line 272 of file depca.c.

#define RX_BUFF_SZ   1536 /* Buffer size for each Rx buffer */

Definition at line 284 of file depca.c.

#define STOP_DEPCA
Value:

Definition at line 509 of file depca.c.

#define TX_BUFF_SZ   1536 /* Buffer size for each Tx buffer */

Definition at line 285 of file depca.c.

#define TX_BUFFS_AVAIL
Value:
((lp->tx_old<=lp->tx_new)?\
lp->tx_old+lp->txRingMask-lp->tx_new:\
lp->tx_old -lp->tx_new-1)

Definition at line 454 of file depca.c.

#define TX_TIMEOUT   (1*HZ)

Definition at line 267 of file depca.c.

Enumeration Type Documentation

enum depca_type
Enumerator:
DEPCA 
de100 
de101 
de200 
de201 
de202 
de210 
de212 
de422 
unknown 

Definition at line 319 of file depca.c.

Function Documentation

module_exit ( depca_module_exit  )
module_init ( depca_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( irq  ,
int  ,
 
)
module_param ( io  ,
int  ,
 
)
module_param ( adapter_name  ,
charp  ,
 
)
module_param ( mem  ,
int  ,
 
)
MODULE_PARM_DESC ( irq  ,
"DEPCA IRQ number  
)
MODULE_PARM_DESC ( io  ,
"DEPCA I/O base address  
)
MODULE_PARM_DESC ( adapter_name  ,
"DEPCA adapter name  
)
MODULE_PARM_DESC ( mem  ,
"DEPCA shared memory address  
)

Variable Documentation

Definition at line 300 of file depca.c.

u_long iobase

Definition at line 299 of file depca.c.