#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <asm/ecard.h>
#include <asm/io.h>
#include "ether3.h"
Go to the source code of this file.
|
#define | BUS_16 2 |
|
#define | BUS_8 1 |
|
#define | BUS_UNKNOWN 0 |
|
#define | ether3_inb(r) ({ unsigned int __v = readb((r)); udelay(1); __v; }) |
|
#define | ether3_inw(r) ({ unsigned int __v = readw((r)); udelay(1); __v; }) |
|
#define | ether3_writebuffer(dev, data, length) writesw(REG_BUFWIN, (data), (length) >> 1) |
|
#define | ether3_writeword(dev, data) writew((data), REG_BUFWIN) |
|
#define | ether3_writelong(dev, data) |
|
#define | ether3_readbuffer(dev, data, length) readsw(REG_BUFWIN, (data), (length) >> 1) |
|
#define | ether3_readword(dev) readw(REG_BUFWIN) |
|
#define | ether3_readlong(dev) readw(REG_BUFWIN) | (readw(REG_BUFWIN) << 16) |
|
#define | TXHDR_FLAGS (TXHDR_TRANSMIT|TXHDR_CHAINCONTINUE|TXHDR_DATAFOLLOWS|TXHDR_ENSUCCESS) |
|
#define ether3_writelong |
( |
|
dev, |
|
|
|
data |
|
) |
| |
Value:{ \
writew((
data), reg_bufwin); \
writew((
data) >> 16, reg_bufwin); \
}
Definition at line 152 of file ether3.c.
- Enumerator:
-
Definition at line 92 of file ether3.c.
module_exit |
( |
ether3_exit |
| ) |
|
module_init |
( |
ether3_init |
| ) |
|