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

Go to the source code of this file.

Macros

#define LOGIBM_BASE   0x23c
 
#define LOGIBM_EXTENT   4
 
#define LOGIBM_DATA_PORT   LOGIBM_BASE + 0
 
#define LOGIBM_SIGNATURE_PORT   LOGIBM_BASE + 1
 
#define LOGIBM_CONTROL_PORT   LOGIBM_BASE + 2
 
#define LOGIBM_CONFIG_PORT   LOGIBM_BASE + 3
 
#define LOGIBM_ENABLE_IRQ   0x00
 
#define LOGIBM_DISABLE_IRQ   0x10
 
#define LOGIBM_READ_X_LOW   0x80
 
#define LOGIBM_READ_X_HIGH   0xa0
 
#define LOGIBM_READ_Y_LOW   0xc0
 
#define LOGIBM_READ_Y_HIGH   0xe0
 
#define LOGIBM_DEFAULT_MODE   0x90
 
#define LOGIBM_CONFIG_BYTE   0x91
 
#define LOGIBM_SIGNATURE_BYTE   0xa5
 
#define LOGIBM_IRQ   5
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Logitech busmouse driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (irq, logibm_irq, uint, 0)
 
 MODULE_PARM_DESC (irq,"IRQ number (5=default)")
 
 module_init (logibm_init)
 
 module_exit (logibm_exit)
 

Macro Definition Documentation

#define LOGIBM_BASE   0x23c

Definition at line 50 of file logibm.c.

#define LOGIBM_CONFIG_BYTE   0x91

Definition at line 66 of file logibm.c.

#define LOGIBM_CONFIG_PORT   LOGIBM_BASE + 3

Definition at line 56 of file logibm.c.

#define LOGIBM_CONTROL_PORT   LOGIBM_BASE + 2

Definition at line 55 of file logibm.c.

#define LOGIBM_DATA_PORT   LOGIBM_BASE + 0

Definition at line 53 of file logibm.c.

#define LOGIBM_DEFAULT_MODE   0x90

Definition at line 65 of file logibm.c.

#define LOGIBM_DISABLE_IRQ   0x10

Definition at line 59 of file logibm.c.

#define LOGIBM_ENABLE_IRQ   0x00

Definition at line 58 of file logibm.c.

#define LOGIBM_EXTENT   4

Definition at line 51 of file logibm.c.

#define LOGIBM_IRQ   5

Definition at line 69 of file logibm.c.

#define LOGIBM_READ_X_HIGH   0xa0

Definition at line 61 of file logibm.c.

#define LOGIBM_READ_X_LOW   0x80

Definition at line 60 of file logibm.c.

#define LOGIBM_READ_Y_HIGH   0xe0

Definition at line 63 of file logibm.c.

#define LOGIBM_READ_Y_LOW   0xc0

Definition at line 62 of file logibm.c.

#define LOGIBM_SIGNATURE_BYTE   0xa5

Definition at line 67 of file logibm.c.

#define LOGIBM_SIGNATURE_PORT   LOGIBM_BASE + 1

Definition at line 54 of file logibm.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "Logitech busmouse driver )
module_exit ( logibm_exit  )
module_init ( logibm_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( irq  ,
logibm_irq  ,
uint  ,
 
)
MODULE_PARM_DESC ( irq  ,
"IRQ number (5=default)"   
)