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

Go to the source code of this file.

Macros

#define HTCPEN_PORT_IRQ_CLEAR   0x068
 
#define HTCPEN_PORT_INIT   0x06c
 
#define HTCPEN_PORT_INDEX   0x0250
 
#define HTCPEN_PORT_DATA   0x0251
 
#define HTCPEN_IRQ   3
 
#define DEVICE_ENABLE   0xa2
 
#define DEVICE_DISABLE   0xa3
 
#define X_INDEX   3
 
#define Y_INDEX   5
 
#define TOUCH_INDEX   0xb
 
#define LSB_XY_INDEX   0xc
 
#define X_AXIS_MAX   2040
 
#define Y_AXIS_MAX   2040
 

Functions

 MODULE_AUTHOR ("Pau Oliva Fora <[email protected]>")
 
 MODULE_DESCRIPTION ("HTC Shift touchscreen driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (invert_x, bool, 0644)
 
 MODULE_PARM_DESC (invert_x,"If set, X axis is inverted")
 
 module_param (invert_y, bool, 0644)
 
 MODULE_PARM_DESC (invert_y,"If set, Y axis is inverted")
 
 MODULE_DEVICE_TABLE (dmi, htcshift_dmi_table)
 
 module_init (htcpen_isa_init)
 
 module_exit (htcpen_isa_exit)
 

Macro Definition Documentation

#define DEVICE_DISABLE   0xa3

Definition at line 34 of file htcpen.c.

#define DEVICE_ENABLE   0xa2

Definition at line 33 of file htcpen.c.

#define HTCPEN_IRQ   3

Definition at line 31 of file htcpen.c.

#define HTCPEN_PORT_DATA   0x0251

Definition at line 30 of file htcpen.c.

#define HTCPEN_PORT_INDEX   0x0250

Definition at line 29 of file htcpen.c.

#define HTCPEN_PORT_INIT   0x06c

Definition at line 28 of file htcpen.c.

#define HTCPEN_PORT_IRQ_CLEAR   0x068

Definition at line 27 of file htcpen.c.

#define LSB_XY_INDEX   0xc

Definition at line 39 of file htcpen.c.

#define TOUCH_INDEX   0xb

Definition at line 38 of file htcpen.c.

#define X_AXIS_MAX   2040

Definition at line 40 of file htcpen.c.

#define X_INDEX   3

Definition at line 36 of file htcpen.c.

#define Y_AXIS_MAX   2040

Definition at line 41 of file htcpen.c.

#define Y_INDEX   5

Definition at line 37 of file htcpen.c.

Function Documentation

MODULE_AUTHOR ( "Pau Oliva Fora <[email protected]>"  )
MODULE_DESCRIPTION ( "HTC Shift touchscreen driver )
MODULE_DEVICE_TABLE ( dmi  ,
htcshift_dmi_table   
)
module_exit ( htcpen_isa_exit  )
module_init ( htcpen_isa_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( invert_x  ,
bool  ,
0644   
)
module_param ( invert_y  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( invert_x  ,
"If  set,
X axis is inverted"   
)
MODULE_PARM_DESC ( invert_y  ,
"If  set,
Y axis is inverted"   
)