Linux Kernel
3.7.1
|
#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) | |
#define DYNAPRO_GET_TOUCHED | ( | data | ) | (DYNAPRO_FORMAT_TOUCH_BIT & data[0]) |
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 | ) |