Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ne2k-pci.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ethtool.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include "8390.h"

Go to the source code of this file.

Data Structures

struct  ne2k_pci_card
 

Macros

#define DRV_NAME   "ne2k-pci"
 
#define DRV_VERSION   "1.03"
 
#define DRV_RELDATE   "9/22/2003"
 
#define MAX_UNITS   8 /* More are supported, limit only on options */
 
#define PFX   DRV_NAME ": "
 
#define USE_LONGIO
 
#define ne2k_flags   reg0
 
#define NE_BASE   (dev->base_addr)
 
#define NE_CMD   0x00
 
#define NE_DATAPORT   0x10 /* NatSemi-defined port window offset. */
 
#define NE_RESET   0x1f /* Issue a read to reset, a write to clear. */
 
#define NE_IO_EXTENT   0x20
 
#define NESM_START_PG   0x40 /* First page of TX buffer */
 
#define NESM_STOP_PG   0x80 /* Last page +1 of RX ring */
 

Enumerations

enum  {
  ONLY_16BIT_IO =8, ONLY_32BIT_IO =4, FORCE_FDX =0x20, REALTEK_FDX =0x40,
  HOLTEK_FDX =0x80, STOP_PG_0x60 =0x100
}
 
enum  ne2k_pci_chipsets {
  CH_RealTek_RTL_8029 = 0, CH_Winbond_89C940, CH_Compex_RL2000, CH_KTI_ET32P2,
  CH_NetVin_NV5000SC, CH_Via_86C926, CH_SureCom_NE34, CH_Winbond_W89C940F,
  CH_Holtek_HT80232, CH_Holtek_HT80229, CH_Winbond_89C940_8c4a
}
 

Functions

 MODULE_AUTHOR ("Donald Becker / Paul Gortmaker")
 
 MODULE_DESCRIPTION ("PCI NE2000 clone driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, int, 0)
 
 module_param_array (options, int, NULL, 0)
 
 module_param_array (full_duplex, int, NULL, 0)
 
 MODULE_PARM_DESC (debug,"debug level (1-2)")
 
 MODULE_PARM_DESC (options,"Bit 5: full duplex")
 
 MODULE_PARM_DESC (full_duplex,"full duplex setting(s) (1)")
 
 MODULE_DEVICE_TABLE (pci, ne2k_pci_tbl)
 
 module_init (ne2k_pci_init)
 
 module_exit (ne2k_pci_cleanup)
 

Macro Definition Documentation

#define DRV_NAME   "ne2k-pci"

Definition at line 28 of file ne2k-pci.c.

#define DRV_RELDATE   "9/22/2003"

Definition at line 30 of file ne2k-pci.c.

#define DRV_VERSION   "1.03"

Definition at line 29 of file ne2k-pci.c.

#define MAX_UNITS   8 /* More are supported, limit only on options */

Definition at line 38 of file ne2k-pci.c.

#define ne2k_flags   reg0

Definition at line 96 of file ne2k-pci.c.

#define NE_BASE   (dev->base_addr)

Definition at line 157 of file ne2k-pci.c.

#define NE_CMD   0x00

Definition at line 158 of file ne2k-pci.c.

#define NE_DATAPORT   0x10 /* NatSemi-defined port window offset. */

Definition at line 159 of file ne2k-pci.c.

#define NE_IO_EXTENT   0x20

Definition at line 161 of file ne2k-pci.c.

#define NE_RESET   0x1f /* Issue a read to reset, a write to clear. */

Definition at line 160 of file ne2k-pci.c.

#define NESM_START_PG   0x40 /* First page of TX buffer */

Definition at line 163 of file ne2k-pci.c.

#define NESM_STOP_PG   0x80 /* Last page +1 of RX ring */

Definition at line 164 of file ne2k-pci.c.

#define PFX   DRV_NAME ": "

Definition at line 73 of file ne2k-pci.c.

#define USE_LONGIO

Definition at line 89 of file ne2k-pci.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ONLY_16BIT_IO 
ONLY_32BIT_IO 
FORCE_FDX 
REALTEK_FDX 
HOLTEK_FDX 
STOP_PG_0x60 

Definition at line 97 of file ne2k-pci.c.

Enumerator:
CH_RealTek_RTL_8029 
CH_Winbond_89C940 
CH_Compex_RL2000 
CH_KTI_ET32P2 
CH_NetVin_NV5000SC 
CH_Via_86C926 
CH_SureCom_NE34 
CH_Winbond_W89C940F 
CH_Holtek_HT80232 
CH_Holtek_HT80229 
CH_Winbond_89C940_8c4a 

Definition at line 104 of file ne2k-pci.c.

Function Documentation

MODULE_AUTHOR ( "Donald Becker / Paul Gortmaker"  )
MODULE_DESCRIPTION ( "PCI NE2000 clone driver )
MODULE_DEVICE_TABLE ( pci  ,
ne2k_pci_tbl   
)
module_exit ( ne2k_pci_cleanup  )
module_init ( ne2k_pci_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
module_param_array ( options  ,
int  ,
NULL  ,
 
)
module_param_array ( full_duplex  ,
int  ,
NULL  ,
 
)
MODULE_PARM_DESC ( debug  ,
"debug level (1-2)"   
)
MODULE_PARM_DESC ( options  ,
"Bit 5: full duplex  
)
MODULE_PARM_DESC ( full_duplex  ,
"full duplex setting(s) (1)"   
)

Variable Documentation

int flags

Definition at line 121 of file ne2k-pci.c.

char* name

Definition at line 120 of file ne2k-pci.c.