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

Go to the source code of this file.

Macros

#define DRV_NAME   "hp-plus"
 
#define HP_ID   0x00 /* ID register, always 0x4850. */
 
#define HP_PAGING   0x02 /* Registers visible @ 8-f, see PageName. */
 
#define HPP_OPTION   0x04 /* Bitmapped options, see HP_Option. */
 
#define HPP_OUT_ADDR   0x08 /* I/O output location in Perf_Page. */
 
#define HPP_IN_ADDR   0x0A /* I/O input location in Perf_Page. */
 
#define HP_DATAPORT   0x0c /* I/O data transfer in Perf_Page. */
 
#define NIC_OFFSET   0x10 /* Offset to the 8390 registers. */
 
#define HP_IO_EXTENT   32
 
#define HP_START_PG   0x00 /* First page of TX buffer */
 
#define HP_STOP_PG   0x80 /* Last page +1 of RX ring */
 

Enumerations

enum  PageName {
  Perf_Page = 0, MAC_Page = 1, HW_Page = 2, LAN_Page = 4,
  ID_Page = 6
}
 
enum  HP_Option {
  NICReset = 1, ChipReset = 2, EnableIRQ = 4, FakeIntr = 8,
  BootROMEnb = 0x10, IOEnb = 0x20, MemEnable = 0x40, ZeroWait = 0x80,
  MemDisable = 0x1000
}
 

Functions

struct net_device *__init hp_plus_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "hp-plus"

Definition at line 40 of file hp-plus.c.

#define HP_DATAPORT   0x0c /* I/O data transfer in Perf_Page. */

Definition at line 76 of file hp-plus.c.

#define HP_ID   0x00 /* ID register, always 0x4850. */

Definition at line 71 of file hp-plus.c.

#define HP_IO_EXTENT   32

Definition at line 78 of file hp-plus.c.

#define HP_PAGING   0x02 /* Registers visible @ 8-f, see PageName. */

Definition at line 72 of file hp-plus.c.

#define HP_START_PG   0x00 /* First page of TX buffer */

Definition at line 80 of file hp-plus.c.

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

Definition at line 81 of file hp-plus.c.

#define HPP_IN_ADDR   0x0A /* I/O input location in Perf_Page. */

Definition at line 75 of file hp-plus.c.

#define HPP_OPTION   0x04 /* Bitmapped options, see HP_Option. */

Definition at line 73 of file hp-plus.c.

#define HPP_OUT_ADDR   0x08 /* I/O output location in Perf_Page. */

Definition at line 74 of file hp-plus.c.

#define NIC_OFFSET   0x10 /* Offset to the 8390 registers. */

Definition at line 77 of file hp-plus.c.

Enumeration Type Documentation

enum HP_Option
Enumerator:
NICReset 
ChipReset 
EnableIRQ 
FakeIntr 
BootROMEnb 
IOEnb 
MemEnable 
ZeroWait 
MemDisable 

Definition at line 92 of file hp-plus.c.

enum PageName
Enumerator:
Perf_Page 
MAC_Page 
HW_Page 
LAN_Page 
ID_Page 

Definition at line 84 of file hp-plus.c.

Function Documentation

struct net_device* __init hp_plus_probe ( int  unit)
read

Definition at line 140 of file hp-plus.c.