Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
com90xx.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <linux/arcdevice.h>

Go to the source code of this file.

Macros

#define VERSION   "arcnet: COM90xx chipset support\n"
 
#define ARCNET_TOTAL_SIZE   16
 
#define BUFFER_SIZE   (512)
 
#define MIRROR_SIZE   (BUFFER_SIZE*4)
 
#define _INTMASK   (ioaddr+0) /* writable */
 
#define _STATUS   (ioaddr+0) /* readable */
 
#define _COMMAND   (ioaddr+1) /* writable, returns random vals on read (?) */
 
#define _CONFIG   (ioaddr+2) /* Configuration register */
 
#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 ASTATUS()   inb(_STATUS)
 
#define ACOMMAND(cmd)   outb((cmd),_COMMAND)
 
#define AINTMASK(msk)   outb((msk),_INTMASK)
 

Functions

 module_param (io, int, 0)
 
 module_param (irq, int, 0)
 
 module_param (shmem, int, 0)
 
 module_param_string (device, device, sizeof(device), 0)
 
 MODULE_LICENSE ("GPL")
 
 module_init (com90xx_init)
 
 module_exit (com90xx_exit)
 
 __setup ("com90xx=", com90xx_setup)
 

Macro Definition Documentation

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

Definition at line 89 of file com90xx.c.

#define _ADDR_LO   (ioaddr+14)

Definition at line 90 of file com90xx.c.

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

Definition at line 85 of file com90xx.c.

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

Definition at line 86 of file com90xx.c.

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

Definition at line 83 of file com90xx.c.

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

Definition at line 88 of file com90xx.c.

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

Definition at line 87 of file com90xx.c.

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

Definition at line 84 of file com90xx.c.

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

Definition at line 97 of file com90xx.c.

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

Definition at line 98 of file com90xx.c.

#define ARCNET_TOTAL_SIZE   16

Definition at line 76 of file com90xx.c.

#define ASTATUS ( )    inb(_STATUS)

Definition at line 96 of file com90xx.c.

#define BUFFER_SIZE   (512)

Definition at line 79 of file com90xx.c.

#define MIRROR_SIZE   (BUFFER_SIZE*4)

Definition at line 80 of file com90xx.c.

#define VERSION   "arcnet: COM90xx chipset support\n"

Definition at line 39 of file com90xx.c.

Function Documentation

__setup ( )
module_exit ( com90xx_exit  )
module_init ( com90xx_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
 
)
module_param ( irq  ,
int  ,
 
)
module_param ( shmem  ,
int  ,
 
)
module_param_string ( device  ,
device  ,
sizeof(device ,
 
)