#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/hdlc.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/byteorder.h>
#include "cosa.h"
Go to the source code of this file.
Value:
Definition at line 186 of file cosa.c.
#define COSA_FW_DOWNLOAD (1<<1) /* Is the microcode downloaded? */ |
#define COSA_FW_RESET (1<<0) /* Is the ROM monitor active? */ |
#define cosa_getdata16 |
( |
|
cosa | ) |
(cosa_inw(cosa->datareg)) |
#define cosa_getdata8 |
( |
|
cosa | ) |
(cosa_inb(cosa->datareg)) |
#define cosa_getstatus |
( |
|
cosa | ) |
(cosa_inb(cosa->statusreg)) |
#define COSA_MAX_ID_STRING 128 |
#define COSA_MAX_NAME (sizeof("cosaXXXcXXX")+1) |
#define COSA_MTU 2000 /* FIXME: I don't know this exactly */ |
#define cosa_putdata16 |
( |
|
cosa, |
|
|
|
dt |
|
) |
| (cosa_outw(dt, cosa->datareg)) |
#define cosa_putdata8 |
( |
|
cosa, |
|
|
|
dt |
|
) |
| (cosa_outb(dt, cosa->datareg)) |
#define DRIVER_RX_READY 0x0001 |
#define DRIVER_TX_READY 0x0002 |
#define DRIVER_TXMAP_MASK 0x0c /* FIXME: 0xfc for 8-channel version */ |
#define DRIVER_TXMAP_SHIFT 2 |
#define is_8bit |
( |
|
cosa | ) |
(!(cosa->datareg & 0x08)) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define TX_TIMEOUT (5*HZ) |
module_exit |
( |
cosa_exit |
| ) |
|
module_init |
( |
cosa_init |
| ) |
|