Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ni65.c File Reference
#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/delay.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/module.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
#include "ni65.h"

Go to the source code of this file.

Data Structures

struct  card
 
struct  priv
 

Macros

#define RCV_PARANOIA_CHECK
 
#define MID_PERFORMANCE
 
#define NI65_ID0   0x00
 
#define NI65_ID1   0x55
 
#define NI65_EB_ID0   0x52
 
#define NI65_EB_ID1   0x44
 
#define NE2100_ID0   0x57
 
#define NE2100_ID1   0x57
 
#define PORT   p->cmdr_addr
 
#define RMDNUM   16
 
#define RMDNUMMASK   0x80000000
 
#define TMDNUM   4
 
#define TMDNUMMASK   0x40000000 /* log2(TMDNUM)<<29 */
 
#define R_BUF_SIZE   1544
 
#define T_BUF_SIZE   1544
 
#define L_DATAREG   0x00
 
#define L_ADDRREG   0x02
 
#define L_RESET   0x04
 
#define L_CONFIG   0x05
 
#define L_BUSIF   0x06
 
#define CSR0   0x00
 
#define CSR1   0x01
 
#define CSR2   0x02
 
#define CSR3   0x03
 
#define INIT_RING_BEFORE_START   0x1
 
#define FULL_RESET_ON_ERROR   0x2
 
#define writereg(val, reg)   {outw(reg,PORT+L_ADDRREG);outw(val,PORT+L_DATAREG);}
 
#define readreg(reg)   (outw(reg,PORT+L_ADDRREG),inw(PORT+L_DATAREG))
 
#define writedatareg(val)   { writereg(val,CSR0); }
 
#define NUM_CARDS   3
 

Functions

struct net_device *__init ni65_probe (int unit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CSR0   0x00

Definition at line 150 of file ni65.c.

#define CSR1   0x01

Definition at line 151 of file ni65.c.

#define CSR2   0x02

Definition at line 152 of file ni65.c.

#define CSR3   0x03

Definition at line 153 of file ni65.c.

#define FULL_RESET_ON_ERROR   0x2

Definition at line 156 of file ni65.c.

#define INIT_RING_BEFORE_START   0x1

Definition at line 155 of file ni65.c.

#define L_ADDRREG   0x02

Definition at line 141 of file ni65.c.

#define L_BUSIF   0x06

Definition at line 144 of file ni65.c.

#define L_CONFIG   0x05

Definition at line 143 of file ni65.c.

#define L_DATAREG   0x00

Definition at line 140 of file ni65.c.

#define L_RESET   0x04

Definition at line 142 of file ni65.c.

#define MID_PERFORMANCE

Definition at line 92 of file ni65.c.

#define NE2100_ID0   0x57

Definition at line 109 of file ni65.c.

#define NE2100_ID1   0x57

Definition at line 110 of file ni65.c.

#define NI65_EB_ID0   0x52

Definition at line 107 of file ni65.c.

#define NI65_EB_ID1   0x44

Definition at line 108 of file ni65.c.

#define NI65_ID0   0x00

Definition at line 105 of file ni65.c.

#define NI65_ID1   0x55

Definition at line 106 of file ni65.c.

#define NUM_CARDS   3

Definition at line 220 of file ni65.c.

#define PORT   p->cmdr_addr

Definition at line 112 of file ni65.c.

#define R_BUF_SIZE   1544

Definition at line 134 of file ni65.c.

#define RCV_PARANOIA_CHECK

Definition at line 90 of file ni65.c.

#define readreg (   reg)    (outw(reg,PORT+L_ADDRREG),inw(PORT+L_DATAREG))

Definition at line 170 of file ni65.c.

#define RMDNUM   16

Definition at line 118 of file ni65.c.

#define RMDNUMMASK   0x80000000

Definition at line 119 of file ni65.c.

#define T_BUF_SIZE   1544

Definition at line 135 of file ni65.c.

#define TMDNUM   4

Definition at line 129 of file ni65.c.

#define TMDNUMMASK   0x40000000 /* log2(TMDNUM)<<29 */

Definition at line 130 of file ni65.c.

#define writedatareg (   val)    { writereg(val,CSR0); }

Definition at line 171 of file ni65.c.

#define writereg (   val,
  reg 
)    {outw(reg,PORT+L_ADDRREG);outw(val,PORT+L_DATAREG);}

Definition at line 169 of file ni65.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
struct net_device* __init ni65_probe ( int  unit)
read

Definition at line 361 of file ni65.c.