Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
com90io.c File Reference
#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)
 

Macro Definition Documentation

#define _ADDR_HI   (ioaddr+15) /* Control registers for said */

Definition at line 68 of file com90io.c.

#define _ADDR_LO   (ioaddr+14)

Definition at line 69 of file com90io.c.

#define _COMMAND   (ioaddr+1) /* writable, returns random vals on read (?) */

Definition at line 65 of file com90io.c.

#define _CONFIG   (ioaddr+2) /* Configuration register */

Definition at line 70 of file com90io.c.

#define _INTMASK   (ioaddr+0) /* writable */

Definition at line 63 of file com90io.c.

#define _MEMDATA   (ioaddr+12) /* Data port for IO-mapped memory */

Definition at line 67 of file com90io.c.

#define _RESET   (ioaddr+8) /* software reset (on read) */

Definition at line 66 of file com90io.c.

#define _STATUS   (ioaddr+0) /* readable */

Definition at line 64 of file com90io.c.

#define ACOMMAND (   cmd)    outb((cmd),_COMMAND)

Definition at line 77 of file com90io.c.

#define AINTMASK (   msk)    outb((msk),_INTMASK)

Definition at line 78 of file com90io.c.

#define ARCNET_TOTAL_SIZE   16

Definition at line 60 of file com90io.c.

#define ASTATUS ( )    inb(_STATUS)

Definition at line 76 of file com90io.c.

#define SETCONF ( )    outb((lp->config),_CONFIG)

Definition at line 79 of file com90io.c.

#define VERSION   "arcnet: COM90xx IO-mapped mode support (by David Woodhouse et el.)\n"

Definition at line 41 of file com90io.c.

Function Documentation

__setup ( )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
 
)
module_param ( irq  ,
int  ,
 
)
module_param_string ( device  ,
device  ,
sizeof(device ,
 
)