Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hp.c File Reference
#include <linux/module.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"
 
#define HP_IO_EXTENT   32
 
#define HP_DATAPORT   0x0c /* "Remote DMA" data port. */
 
#define HP_ID   0x07
 
#define HP_CONFIGURE   0x08 /* Configuration register. */
 
#define HP_RUN   0x01 /* 1 == Run, 0 == reset. */
 
#define HP_IRQ   0x0E /* Mask for software-configured IRQ line. */
 
#define HP_DATAON   0x10 /* Turn on dataport */
 
#define NIC_OFFSET   0x10 /* Offset the 8390 registers. */
 
#define HP_START_PG   0x00 /* First page of TX buffer */
 
#define HP_8BSTOP_PG   0x80 /* Last page +1 of RX ring */
 
#define HP_16BSTOP_PG   0xFF /* Same, for 16 bit cards. */
 

Functions

struct net_device *__init hp_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "hp"

Definition at line 40 of file hp.c.

#define HP_16BSTOP_PG   0xFF /* Same, for 16 bit cards. */

Definition at line 58 of file hp.c.

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

Definition at line 57 of file hp.c.

#define HP_CONFIGURE   0x08 /* Configuration register. */

Definition at line 50 of file hp.c.

#define HP_DATAON   0x10 /* Turn on dataport */

Definition at line 53 of file hp.c.

#define HP_DATAPORT   0x0c /* "Remote DMA" data port. */

Definition at line 48 of file hp.c.

#define HP_ID   0x07

Definition at line 49 of file hp.c.

#define HP_IO_EXTENT   32

Definition at line 46 of file hp.c.

#define HP_IRQ   0x0E /* Mask for software-configured IRQ line. */

Definition at line 52 of file hp.c.

#define HP_RUN   0x01 /* 1 == Run, 0 == reset. */

Definition at line 51 of file hp.c.

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

Definition at line 56 of file hp.c.

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

Definition at line 54 of file hp.c.

Function Documentation

struct net_device* __init hp_probe ( int  unit)
read

Definition at line 102 of file hp.c.