Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/evdev/evdev.h
Show All 24 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _DEV_EVDEV_EVDEV_H | #ifndef _DEV_EVDEV_EVDEV_H | ||||
#define _DEV_EVDEV_EVDEV_H | #define _DEV_EVDEV_EVDEV_H | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/epoch.h> | |||||
#include <sys/kbio.h> | #include <sys/kbio.h> | ||||
#include <dev/evdev/input.h> | #include <dev/evdev/input.h> | ||||
#include <dev/kbd/kbdreg.h> | #include <dev/kbd/kbdreg.h> | ||||
#define NAMELEN 80 | #define NAMELEN 80 | ||||
struct evdev_dev; | struct evdev_dev; | ||||
▲ Show 20 Lines • Show All 41 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_EXT_EPOCH 0x03 /* evdev_push_* is allways called with | |||||
* input (global) epoch entered */ | |||||
#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 |