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

Go to the source code of this file.

Data Structures

struct  gtco
 
struct  hid_descriptor
 

Macros

#define GTCO_VERSION   "2.00.0006"
 
#define VENDOR_ID_GTCO   0x078C
 
#define PID_400   0x400
 
#define PID_401   0x401
 
#define PID_1000   0x1000
 
#define PID_1001   0x1001
 
#define PID_1002   0x1002
 
#define REPORT_MAX_SIZE   10
 
#define MASK_INRANGE   0x20
 
#define MASK_BUTTON   0x01F
 
#define PATHLENGTH   64
 
#define HID_DESCRIPTOR_SIZE   9
 
#define HID_DEVICE_TYPE   33
 
#define REPORT_DEVICE_TYPE   34
 
#define PREF_TAG(x)   ((x)>>4)
 
#define PREF_TYPE(x)   ((x>>2)&0x03)
 
#define PREF_SIZE(x)   ((x)&0x03)
 
#define TYPE_MAIN   0
 
#define TYPE_GLOBAL   1
 
#define TYPE_LOCAL   2
 
#define TYPE_RESERVED   3
 
#define TAG_MAIN_INPUT   0x8
 
#define TAG_MAIN_OUTPUT   0x9
 
#define TAG_MAIN_FEATURE   0xB
 
#define TAG_MAIN_COL_START   0xA
 
#define TAG_MAIN_COL_END   0xC
 
#define TAG_GLOB_USAGE   0
 
#define TAG_GLOB_LOG_MIN   1
 
#define TAG_GLOB_LOG_MAX   2
 
#define TAG_GLOB_PHYS_MIN   3
 
#define TAG_GLOB_PHYS_MAX   4
 
#define TAG_GLOB_UNIT_EXP   5
 
#define TAG_GLOB_UNIT   6
 
#define TAG_GLOB_REPORT_SZ   7
 
#define TAG_GLOB_REPORT_ID   8
 
#define TAG_GLOB_REPORT_CNT   9
 
#define TAG_GLOB_PUSH   10
 
#define TAG_GLOB_POP   11
 
#define TAG_GLOB_MAX   12
 
#define DIGITIZER_USAGE_TIP_PRESSURE   0x30
 
#define DIGITIZER_USAGE_TILT_X   0x3D
 
#define DIGITIZER_USAGE_TILT_Y   0x3E
 

Functions

 MODULE_DEVICE_TABLE (usb, gtco_usbid_table)
 
struct hid_descriptor __attribute__ ((packed))
 
 module_usb_driver (gtco_driverinfo_table)
 
 MODULE_DESCRIPTION ("GTCO digitizer USB driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct usb_descriptor_header header
 
__le16 bcdHID
 
u8 bCountryCode
 
u8 bNumDescriptors
 
u8 bDescriptorType
 
__le16 wDescriptorLength
 

Macro Definition Documentation

#define DIGITIZER_USAGE_TILT_X   0x3D

Definition at line 183 of file gtco.c.

#define DIGITIZER_USAGE_TILT_Y   0x3E

Definition at line 184 of file gtco.c.

#define DIGITIZER_USAGE_TIP_PRESSURE   0x30

Definition at line 182 of file gtco.c.

#define GTCO_VERSION   "2.00.0006"

Definition at line 68 of file gtco.c.

#define HID_DESCRIPTOR_SIZE   9

Definition at line 147 of file gtco.c.

#define HID_DEVICE_TYPE   33

Definition at line 148 of file gtco.c.

#define MASK_BUTTON   0x01F

Definition at line 86 of file gtco.c.

#define MASK_INRANGE   0x20

Definition at line 85 of file gtco.c.

#define PATHLENGTH   64

Definition at line 88 of file gtco.c.

#define PID_1000   0x1000

Definition at line 76 of file gtco.c.

#define PID_1001   0x1001

Definition at line 77 of file gtco.c.

#define PID_1002   0x1002

Definition at line 78 of file gtco.c.

#define PID_400   0x400

Definition at line 74 of file gtco.c.

#define PID_401   0x401

Definition at line 75 of file gtco.c.

#define PREF_SIZE (   x)    ((x)&0x03)

Definition at line 154 of file gtco.c.

#define PREF_TAG (   x)    ((x)>>4)

Definition at line 152 of file gtco.c.

#define PREF_TYPE (   x)    ((x>>2)&0x03)

Definition at line 153 of file gtco.c.

#define REPORT_DEVICE_TYPE   34

Definition at line 149 of file gtco.c.

#define REPORT_MAX_SIZE   10

Definition at line 81 of file gtco.c.

#define TAG_GLOB_LOG_MAX   2

Definition at line 169 of file gtco.c.

#define TAG_GLOB_LOG_MIN   1

Definition at line 168 of file gtco.c.

#define TAG_GLOB_MAX   12

Definition at line 180 of file gtco.c.

#define TAG_GLOB_PHYS_MAX   4

Definition at line 171 of file gtco.c.

#define TAG_GLOB_PHYS_MIN   3

Definition at line 170 of file gtco.c.

#define TAG_GLOB_POP   11

Definition at line 178 of file gtco.c.

#define TAG_GLOB_PUSH   10

Definition at line 177 of file gtco.c.

#define TAG_GLOB_REPORT_CNT   9

Definition at line 176 of file gtco.c.

#define TAG_GLOB_REPORT_ID   8

Definition at line 175 of file gtco.c.

#define TAG_GLOB_REPORT_SZ   7

Definition at line 174 of file gtco.c.

#define TAG_GLOB_UNIT   6

Definition at line 173 of file gtco.c.

#define TAG_GLOB_UNIT_EXP   5

Definition at line 172 of file gtco.c.

#define TAG_GLOB_USAGE   0

Definition at line 167 of file gtco.c.

#define TAG_MAIN_COL_END   0xC

Definition at line 165 of file gtco.c.

#define TAG_MAIN_COL_START   0xA

Definition at line 164 of file gtco.c.

#define TAG_MAIN_FEATURE   0xB

Definition at line 163 of file gtco.c.

#define TAG_MAIN_INPUT   0x8

Definition at line 161 of file gtco.c.

#define TAG_MAIN_OUTPUT   0x9

Definition at line 162 of file gtco.c.

#define TYPE_GLOBAL   1

Definition at line 157 of file gtco.c.

#define TYPE_LOCAL   2

Definition at line 158 of file gtco.c.

#define TYPE_MAIN   0

Definition at line 156 of file gtco.c.

#define TYPE_RESERVED   3

Definition at line 159 of file gtco.c.

#define VENDOR_ID_GTCO   0x078C

Definition at line 73 of file gtco.c.

Function Documentation

struct hid_descriptor __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

MODULE_DESCRIPTION ( "GTCO digitizer USB driver )
MODULE_DEVICE_TABLE ( usb  ,
gtco_usbid_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( gtco_driverinfo_table  )

Variable Documentation

__le16 bcdHID

Definition at line 146 of file gtco.c.

u8 bCountryCode

Definition at line 147 of file gtco.c.

__u8 bDescriptorType

Definition at line 149 of file gtco.c.

u8 bNumDescriptors

Definition at line 148 of file gtco.c.

Definition at line 145 of file gtco.c.

__le16 wDescriptorLength

Definition at line 150 of file gtco.c.