#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/input-polldev.h>
#include <linux/kernel.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/dmi.h>
#include <linux/jiffies.h>
#include <linux/io.h>
Go to the source code of this file.
Value:{ \
.callback = hdaps_dmi_match_invert, \
.driver_data = (void *)axes, \
.matches = { \
} \
}
Definition at line 501 of file hdaps.c.
#define HDAPS_INPUT_FLAT 4 |
#define HDAPS_LOW_PORT 0x1600 /* first port used by hdaps */ |
#define HDAPS_NR_PORTS 0x30 /* number of ports: 0x1600 - 0x162f */ |
#define HDAPS_POLL_INTERVAL 50 /* poll for input every 1/20s (50 ms)*/ |
#define HDAPS_PORT_KMACT 0x161d /* keyboard or mouse activity */ |
#define HDAPS_PORT_STATE 0x1611 /* device state */ |
#define HDAPS_PORT_TEMP1 0x1616 /* device temperature, in Celsius */ |
#define HDAPS_PORT_TEMP2 0x161b /* device temperature (again?) */ |
#define HDAPS_PORT_UNKNOWN 0x161c /* what is this? */ |
#define HDAPS_PORT_XPOS 0x1614 /* x-axis position */ |
#define HDAPS_PORT_XVAR 0x1619 /* x-axis variance (what is this?) */ |
#define HDAPS_PORT_YPOS 0x1612 /* y-axis position */ |
#define HDAPS_PORT_YVAR 0x1617 /* y-axis variance (what is this?) */ |
#define HDAPS_X_AXIS (1 << 0) |
#define HDAPS_Y_AXIS (1 << 1) |
#define INIT_TIMEOUT_MSECS 4000 /* wait up to 4s for device init ... */ |
#define INIT_WAIT_MSECS 200 /* ... in 200ms increments */ |
#define KEYBD_MASK 0x20 /* set if keyboard activity */ |
#define MOUSE_MASK 0x40 /* set if mouse activity */ |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define STATE_FRESH 0x50 /* accelerometer data is fresh */ |
MODULE_AUTHOR |
( |
"Robert Love" |
| ) |
|
module_exit |
( |
hdaps_exit |
| ) |
|
module_init |
( |
hdaps_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_param_named |
( |
invert |
, |
|
|
hdaps_invert |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
invert |
, |
|
|
"invert data along each axis. 1 invert x- |
axis, |
|
|
""2 invert y- |
axis, |
|
|
3 invert both axes." |
|
|
) |
| |