Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/bootmem.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <asm/io.h>
#include <linux/arcdevice.h>
Go to the source code of this file.
Macros | |
#define | VERSION "arcnet: COM90xx IO-mapped mode support (by David Woodhouse et el.)\n" |
#define | ARCNET_TOTAL_SIZE 16 |
#define | _INTMASK (ioaddr+0) /* writable */ |
#define | _STATUS (ioaddr+0) /* readable */ |
#define | _COMMAND (ioaddr+1) /* writable, returns random vals on read (?) */ |
#define | _RESET (ioaddr+8) /* software reset (on read) */ |
#define | _MEMDATA (ioaddr+12) /* Data port for IO-mapped memory */ |
#define | _ADDR_HI (ioaddr+15) /* Control registers for said */ |
#define | _ADDR_LO (ioaddr+14) |
#define | _CONFIG (ioaddr+2) /* Configuration register */ |
#define | ASTATUS() inb(_STATUS) |
#define | ACOMMAND(cmd) outb((cmd),_COMMAND) |
#define | AINTMASK(msk) outb((msk),_INTMASK) |
#define | SETCONF() outb((lp->config),_CONFIG) |
Functions | |
module_param (io, int, 0) | |
module_param (irq, int, 0) | |
module_param_string (device, device, sizeof(device), 0) | |
MODULE_LICENSE ("GPL") | |
__setup ("com90io=", com90io_setup) | |
#define _CONFIG (ioaddr+2) /* Configuration register */ |
__setup | ( | ) |
MODULE_LICENSE | ( | "GPL" | ) |