Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inport.c File Reference
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/input.h>
#include <asm/io.h>
#include <asm/irq.h>

Go to the source code of this file.

Macros

#define INPORT_BASE   0x23c
 
#define INPORT_EXTENT   4
 
#define INPORT_CONTROL_PORT   INPORT_BASE + 0
 
#define INPORT_DATA_PORT   INPORT_BASE + 1
 
#define INPORT_SIGNATURE_PORT   INPORT_BASE + 2
 
#define INPORT_REG_BTNS   0x00
 
#define INPORT_REG_X   0x01
 
#define INPORT_REG_Y   0x02
 
#define INPORT_REG_MODE   0x07
 
#define INPORT_RESET   0x80
 
#define INPORT_NAME   "Microsoft InPort Mouse"
 
#define INPORT_VENDOR   0x0001
 
#define INPORT_MODE_BASE   0x10
 
#define INPORT_MODE_IRQ   0x01
 
#define INPORT_MODE_HOLD   0x20
 
#define INPORT_IRQ   5
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Inport (ATI XL and Microsoft) busmouse driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (irq, inport_irq, uint, 0)
 
 MODULE_PARM_DESC (irq,"IRQ number (5=default)")
 
 module_init (inport_init)
 
 module_exit (inport_exit)
 

Macro Definition Documentation

#define INPORT_BASE   0x23c

Definition at line 48 of file inport.c.

#define INPORT_CONTROL_PORT   INPORT_BASE + 0

Definition at line 51 of file inport.c.

#define INPORT_DATA_PORT   INPORT_BASE + 1

Definition at line 52 of file inport.c.

#define INPORT_EXTENT   4

Definition at line 49 of file inport.c.

#define INPORT_IRQ   5

Definition at line 78 of file inport.c.

#define INPORT_MODE_BASE   0x10

Definition at line 73 of file inport.c.

#define INPORT_MODE_HOLD   0x20

Definition at line 76 of file inport.c.

#define INPORT_MODE_IRQ   0x01

Definition at line 74 of file inport.c.

#define INPORT_NAME   "Microsoft InPort Mouse"

Definition at line 71 of file inport.c.

#define INPORT_REG_BTNS   0x00

Definition at line 55 of file inport.c.

#define INPORT_REG_MODE   0x07

Definition at line 58 of file inport.c.

#define INPORT_REG_X   0x01

Definition at line 56 of file inport.c.

#define INPORT_REG_Y   0x02

Definition at line 57 of file inport.c.

#define INPORT_RESET   0x80

Definition at line 59 of file inport.c.

#define INPORT_SIGNATURE_PORT   INPORT_BASE + 2

Definition at line 53 of file inport.c.

#define INPORT_VENDOR   0x0001

Definition at line 72 of file inport.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "Inport (ATI XL and Microsoft) busmouse driver )
module_exit ( inport_exit  )
module_init ( inport_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( irq  ,
inport_irq  ,
uint  ,
 
)
MODULE_PARM_DESC ( irq  ,
"IRQ number (5=default)"   
)