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

Go to the source code of this file.

Data Structures

struct  dynapro
 

Macros

#define DRIVER_DESC   "Dynapro serial touchscreen driver"
 
#define DYNAPRO_FORMAT_TOUCH_BIT   0x40
 
#define DYNAPRO_FORMAT_LENGTH   3
 
#define DYNAPRO_RESPONSE_BEGIN_BYTE   0x80
 
#define DYNAPRO_MIN_XC   0
 
#define DYNAPRO_MAX_XC   0x3ff
 
#define DYNAPRO_MIN_YC   0
 
#define DYNAPRO_MAX_YC   0x3ff
 
#define DYNAPRO_GET_XC(data)   (data[1] | ((data[0] & 0x38) << 4))
 
#define DYNAPRO_GET_YC(data)   (data[2] | ((data[0] & 0x07) << 7))
 
#define DYNAPRO_GET_TOUCHED(data)   (DYNAPRO_FORMAT_TOUCH_BIT & data[0])
 

Functions

 MODULE_AUTHOR ("Tias Guns <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (serio, dynapro_serio_ids)
 
 module_serio_driver (dynapro_drv)
 

Macro Definition Documentation

#define DRIVER_DESC   "Dynapro serial touchscreen driver"

Definition at line 29 of file dynapro.c.

#define DYNAPRO_FORMAT_LENGTH   3

Definition at line 40 of file dynapro.c.

#define DYNAPRO_FORMAT_TOUCH_BIT   0x40

Definition at line 39 of file dynapro.c.

#define DYNAPRO_GET_TOUCHED (   data)    (DYNAPRO_FORMAT_TOUCH_BIT & data[0])

Definition at line 50 of file dynapro.c.

#define DYNAPRO_GET_XC (   data)    (data[1] | ((data[0] & 0x38) << 4))

Definition at line 48 of file dynapro.c.

#define DYNAPRO_GET_YC (   data)    (data[2] | ((data[0] & 0x07) << 7))

Definition at line 49 of file dynapro.c.

#define DYNAPRO_MAX_XC   0x3ff

Definition at line 44 of file dynapro.c.

#define DYNAPRO_MAX_YC   0x3ff

Definition at line 46 of file dynapro.c.

#define DYNAPRO_MIN_XC   0

Definition at line 43 of file dynapro.c.

#define DYNAPRO_MIN_YC   0

Definition at line 45 of file dynapro.c.

#define DYNAPRO_RESPONSE_BEGIN_BYTE   0x80

Definition at line 41 of file dynapro.c.

Function Documentation

MODULE_AUTHOR ( "Tias Guns <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( serio  ,
dynapro_serio_ids   
)
MODULE_LICENSE ( "GPL"  )
module_serio_driver ( dynapro_drv  )