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

Go to the source code of this file.

Data Structures

struct  vsxxxaa
 

Macros

#define DRIVER_DESC   "Driver for DEC VSXXX-AA and -GA mice and VSXXX-AB tablet"
 
#define DBG(x...)   do {} while (0)
 
#define VSXXXAA_INTRO_MASK   0x80
 
#define VSXXXAA_INTRO_HEAD   0x80
 
#define IS_HDR_BYTE(x)   (((x) & VSXXXAA_INTRO_MASK) == VSXXXAA_INTRO_HEAD)
 
#define VSXXXAA_PACKET_MASK   0xe0
 
#define VSXXXAA_PACKET_REL   0x80
 
#define VSXXXAA_PACKET_ABS   0xc0
 
#define VSXXXAA_PACKET_POR   0xa0
 
#define MATCH_PACKET_TYPE(data, type)   (((data) & VSXXXAA_PACKET_MASK) == (type))
 
#define BUFLEN   15 /* At least 5 is needed for a full tablet packet */
 

Functions

 MODULE_AUTHOR ("Jan-Benedict Glaw <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (serio, vsxxaa_serio_ids)
 
 module_serio_driver (vsxxxaa_drv)
 

Macro Definition Documentation

#define BUFLEN   15 /* At least 5 is needed for a full tablet packet */

Definition at line 117 of file vsxxxaa.c.

#define DBG (   x...)    do {} while (0)

Definition at line 97 of file vsxxxaa.c.

#define DRIVER_DESC   "Driver for DEC VSXXX-AA and -GA mice and VSXXX-AB tablet"

Definition at line 87 of file vsxxxaa.c.

#define IS_HDR_BYTE (   x)    (((x) & VSXXXAA_INTRO_MASK) == VSXXXAA_INTRO_HEAD)

Definition at line 102 of file vsxxxaa.c.

#define MATCH_PACKET_TYPE (   data,
  type 
)    (((data) & VSXXXAA_PACKET_MASK) == (type))

Definition at line 109 of file vsxxxaa.c.

#define VSXXXAA_INTRO_HEAD   0x80

Definition at line 101 of file vsxxxaa.c.

#define VSXXXAA_INTRO_MASK   0x80

Definition at line 100 of file vsxxxaa.c.

#define VSXXXAA_PACKET_ABS   0xc0

Definition at line 107 of file vsxxxaa.c.

#define VSXXXAA_PACKET_MASK   0xe0

Definition at line 105 of file vsxxxaa.c.

#define VSXXXAA_PACKET_POR   0xa0

Definition at line 108 of file vsxxxaa.c.

#define VSXXXAA_PACKET_REL   0x80

Definition at line 106 of file vsxxxaa.c.

Function Documentation

MODULE_AUTHOR ( "Jan-Benedict Glaw <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( serio  ,
vsxxaa_serio_ids   
)
MODULE_LICENSE ( "GPL"  )
module_serio_driver ( vsxxxaa_drv  )