Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/evdev/evdev.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
/* Multitouch protocol type B interface */ | /* Multitouch protocol type B interface */ | ||||
#define MAX_MT_SLOTS 16 | #define MAX_MT_SLOTS 16 | ||||
#define EVDEV_FLAG_SOFTREPEAT 0x00 /* use evdev to repeat keys */ | #define EVDEV_FLAG_SOFTREPEAT 0x00 /* use evdev to repeat keys */ | ||||
#define EVDEV_FLAG_MT_STCOMPAT 0x01 /* autogenerate ST-compatible events | #define EVDEV_FLAG_MT_STCOMPAT 0x01 /* autogenerate ST-compatible events | ||||
* for MT protocol type B reports */ | * for MT protocol type B reports */ | ||||
#define EVDEV_FLAG_MT_AUTOREL 0x02 /* Autorelease MT-slots not listed in | #define EVDEV_FLAG_MT_AUTOREL 0x02 /* Autorelease MT-slots not listed in | ||||
* current MT protocol type B report */ | * current MT protocol type B report */ | ||||
#define EVDEV_FLAG_LOCKLESS 0x03 /* Avoid locks in evdev_push() */ | |||||
#define EVDEV_FLAG_MAX 0x1F | #define EVDEV_FLAG_MAX 0x1F | ||||
#define EVDEV_FLAG_CNT (EVDEV_FLAG_MAX + 1) | #define EVDEV_FLAG_CNT (EVDEV_FLAG_MAX + 1) | ||||
struct evdev_methods | struct evdev_methods | ||||
{ | { | ||||
evdev_open_t *ev_open; | evdev_open_t *ev_open; | ||||
evdev_close_t *ev_close; | evdev_close_t *ev_close; | ||||
evdev_event_t *ev_event; | evdev_event_t *ev_event; | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |