Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/input/mt.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include "cyttsp_core.h"
Go to the source code of this file.
Macros | |
#define | CY_NUM_BL_KEYS 8 |
#define | GET_NUM_TOUCHES(x) ((x) & 0x0F) |
#define | IS_LARGE_AREA(x) (((x) & 0x10) >> 4) |
#define | IS_BAD_PKT(x) ((x) & 0x20) |
#define | IS_VALID_APP(x) ((x) & 0x01) |
#define | IS_OPERATIONAL_ERR(x) ((x) & 0x3F) |
#define | GET_HSTMODE(reg) (((reg) & 0x70) >> 4) |
#define | GET_BOOTLOADERMODE(reg) (((reg) & 0x10) >> 4) |
#define | CY_REG_BASE 0x00 |
#define | CY_REG_ACT_DIST 0x1E |
#define | CY_REG_ACT_INTRVL 0x1D |
#define | CY_REG_TCH_TMOUT (CY_REG_ACT_INTRVL + 1) |
#define | CY_REG_LP_INTRVL (CY_REG_TCH_TMOUT + 1) |
#define | CY_MAXZ 255 |
#define | CY_DELAY_DFLT 20 /* ms */ |
#define | CY_DELAY_MAX 500 |
#define | CY_ACT_DIST_DFLT 0xF8 |
#define | CY_HNDSHK_BIT 0x80 |
#define | CY_OPERATE_MODE 0x00 |
#define | CY_SYSINFO_MODE 0x10 |
#define | CY_SOFT_RESET_MODE 0x01 /* return to Bootloader mode */ |
#define | CY_DEEP_SLEEP_MODE 0x02 |
#define | CY_LOW_POWER_MODE 0x04 |
#define | CY_MAX_FINGER 4 |
#define | CY_MAX_ID 16 |
Functions | |
SIMPLE_DEV_PM_OPS (cyttsp_pm_ops, cyttsp_suspend, cyttsp_resume) | |
EXPORT_SYMBOL_GPL (cyttsp_pm_ops) | |
struct cyttsp * | cyttsp_probe (const struct cyttsp_bus_ops *bus_ops, struct device *dev, int irq, size_t xfer_buf_size) |
EXPORT_SYMBOL_GPL (cyttsp_probe) | |
void | cyttsp_remove (struct cyttsp *ts) |
EXPORT_SYMBOL_GPL (cyttsp_remove) | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("Cypress TrueTouch(R) Standard touchscreen driver core") | |
MODULE_AUTHOR ("Cypress") | |
#define CY_ACT_DIST_DFLT 0xF8 |
Definition at line 59 of file cyttsp_core.c.
#define CY_DEEP_SLEEP_MODE 0x02 |
Definition at line 66 of file cyttsp_core.c.
#define CY_DELAY_DFLT 20 /* ms */ |
Definition at line 57 of file cyttsp_core.c.
#define CY_DELAY_MAX 500 |
Definition at line 58 of file cyttsp_core.c.
#define CY_HNDSHK_BIT 0x80 |
Definition at line 60 of file cyttsp_core.c.
#define CY_LOW_POWER_MODE 0x04 |
Definition at line 67 of file cyttsp_core.c.
#define CY_MAX_FINGER 4 |
Definition at line 70 of file cyttsp_core.c.
#define CY_MAX_ID 16 |
Definition at line 71 of file cyttsp_core.c.
#define CY_MAXZ 255 |
Definition at line 56 of file cyttsp_core.c.
#define CY_NUM_BL_KEYS 8 |
Definition at line 40 of file cyttsp_core.c.
#define CY_OPERATE_MODE 0x00 |
Definition at line 62 of file cyttsp_core.c.
#define CY_REG_ACT_DIST 0x1E |
Definition at line 52 of file cyttsp_core.c.
#define CY_REG_ACT_INTRVL 0x1D |
Definition at line 53 of file cyttsp_core.c.
#define CY_REG_BASE 0x00 |
Definition at line 51 of file cyttsp_core.c.
#define CY_REG_LP_INTRVL (CY_REG_TCH_TMOUT + 1) |
Definition at line 55 of file cyttsp_core.c.
#define CY_REG_TCH_TMOUT (CY_REG_ACT_INTRVL + 1) |
Definition at line 54 of file cyttsp_core.c.
#define CY_SOFT_RESET_MODE 0x01 /* return to Bootloader mode */ |
Definition at line 65 of file cyttsp_core.c.
#define CY_SYSINFO_MODE 0x10 |
Definition at line 63 of file cyttsp_core.c.
Definition at line 49 of file cyttsp_core.c.
Definition at line 48 of file cyttsp_core.c.
Definition at line 43 of file cyttsp_core.c.
Definition at line 45 of file cyttsp_core.c.
Definition at line 44 of file cyttsp_core.c.
Definition at line 47 of file cyttsp_core.c.
Definition at line 46 of file cyttsp_core.c.
|
read |
Definition at line 518 of file cyttsp_core.c.
Definition at line 613 of file cyttsp_core.c.
EXPORT_SYMBOL_GPL | ( | cyttsp_pm_ops | ) |
EXPORT_SYMBOL_GPL | ( | cyttsp_probe | ) |
EXPORT_SYMBOL_GPL | ( | cyttsp_remove | ) |
MODULE_AUTHOR | ( | "Cypress" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
SIMPLE_DEV_PM_OPS | ( | cyttsp_pm_ops | , |
cyttsp_suspend | , | ||
cyttsp_resume | |||
) |