Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wacom_w8001.c File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/input/mt.h>
#include <linux/serio.h>
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/delay.h>

Go to the source code of this file.

Data Structures

struct  w8001_coord
 
struct  w8001_touch_query
 
struct  w8001
 

Macros

#define DRIVER_DESC   "Wacom W8001 serial touchscreen driver"
 
#define W8001_MAX_LENGTH   11
 
#define W8001_LEAD_MASK   0x80
 
#define W8001_LEAD_BYTE   0x80
 
#define W8001_TAB_MASK   0x40
 
#define W8001_TAB_BYTE   0x40
 
#define W8001_TOUCH_MASK   (0x10 | W8001_LEAD_MASK)
 
#define W8001_TOUCH_BYTE   (0x10 | W8001_LEAD_BYTE)
 
#define W8001_QUERY_PACKET   0x20
 
#define W8001_CMD_STOP   '0'
 
#define W8001_CMD_START   '1'
 
#define W8001_CMD_QUERY   '*'
 
#define W8001_CMD_TOUCHQUERY   '%'
 
#define W8001_PKTLEN_TOUCH93   5
 
#define W8001_PKTLEN_TOUCH9A   7
 
#define W8001_PKTLEN_TPCPEN   9
 
#define W8001_PKTLEN_TPCCTL   11 /* control packet */
 
#define W8001_PKTLEN_TOUCH2FG   13
 
#define W8001_PEN_RESOLUTION   100
 
#define W8001_TOUCH_RESOLUTION   10
 

Functions

 MODULE_AUTHOR ("Jaya Kumar <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (serio, w8001_serio_ids)
 
 module_serio_driver (w8001_drv)
 

Macro Definition Documentation

#define DRIVER_DESC   "Wacom W8001 serial touchscreen driver"

Definition at line 25 of file wacom_w8001.c.

#define W8001_CMD_QUERY   '*'

Definition at line 44 of file wacom_w8001.c.

#define W8001_CMD_START   '1'

Definition at line 43 of file wacom_w8001.c.

#define W8001_CMD_STOP   '0'

Definition at line 42 of file wacom_w8001.c.

#define W8001_CMD_TOUCHQUERY   '%'

Definition at line 45 of file wacom_w8001.c.

#define W8001_LEAD_BYTE   0x80

Definition at line 33 of file wacom_w8001.c.

#define W8001_LEAD_MASK   0x80

Definition at line 32 of file wacom_w8001.c.

#define W8001_MAX_LENGTH   11

Definition at line 31 of file wacom_w8001.c.

#define W8001_PEN_RESOLUTION   100

Definition at line 55 of file wacom_w8001.c.

#define W8001_PKTLEN_TOUCH2FG   13

Definition at line 52 of file wacom_w8001.c.

#define W8001_PKTLEN_TOUCH93   5

Definition at line 48 of file wacom_w8001.c.

#define W8001_PKTLEN_TOUCH9A   7

Definition at line 49 of file wacom_w8001.c.

#define W8001_PKTLEN_TPCCTL   11 /* control packet */

Definition at line 51 of file wacom_w8001.c.

#define W8001_PKTLEN_TPCPEN   9

Definition at line 50 of file wacom_w8001.c.

#define W8001_QUERY_PACKET   0x20

Definition at line 40 of file wacom_w8001.c.

#define W8001_TAB_BYTE   0x40

Definition at line 35 of file wacom_w8001.c.

#define W8001_TAB_MASK   0x40

Definition at line 34 of file wacom_w8001.c.

#define W8001_TOUCH_BYTE   (0x10 | W8001_LEAD_BYTE)

Definition at line 38 of file wacom_w8001.c.

#define W8001_TOUCH_MASK   (0x10 | W8001_LEAD_MASK)

Definition at line 37 of file wacom_w8001.c.

#define W8001_TOUCH_RESOLUTION   10

Definition at line 56 of file wacom_w8001.c.

Function Documentation

MODULE_AUTHOR ( "Jaya Kumar <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( serio  ,
w8001_serio_ids   
)
MODULE_LICENSE ( "GPL"  )
module_serio_driver ( w8001_drv  )