1#ifndef __VSF_LINUX_UINPUT_H__
2#define __VSF_LINUX_UINPUT_H__
10#define UINPUT_VERSION 5
11#define UINPUT_MAX_NAME_SIZE 80
13#define EV_UINPUT 0x0101
41#define UINPUT_IOCTL_BASE 'U'
42#define UI_DEV_CREATE _IO(UINPUT_IOCTL_BASE, 1)
43#define UI_DEV_DESTROY _IO(UINPUT_IOCTL_BASE, 2)
45#define UI_DEV_SETUP _IOW(UINPUT_IOCTL_BASE, 3, struct uinput_setup)
46#define UI_ABS_SETUP _IOW(UINPUT_IOCTL_BASE, 4, struct uinput_abs_setup)
48#define UI_SET_EVBIT _IOW(UINPUT_IOCTL_BASE, 100, int)
49#define UI_SET_KEYBIT _IOW(UINPUT_IOCTL_BASE, 101, int)
50#define UI_SET_RELBIT _IOW(UINPUT_IOCTL_BASE, 102, int)
51#define UI_SET_ABSBIT _IOW(UINPUT_IOCTL_BASE, 103, int)
52#define UI_SET_MSCBIT _IOW(UINPUT_IOCTL_BASE, 104, int)
53#define UI_SET_LEDBIT _IOW(UINPUT_IOCTL_BASE, 105, int)
54#define UI_SET_SNDBIT _IOW(UINPUT_IOCTL_BASE, 106, int)
55#define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int)
56#define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char*)
57#define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int)
58#define UI_SET_PROPBIT _IOW(UINPUT_IOCTL_BASE, 110, int)
60#define UI_BEGIN_FF_UPLOAD _IOWR(UINPUT_IOCTL_BASE, 200, struct uinput_ff_upload)
61#define UI_END_FF_UPLOAD _IOW(UINPUT_IOCTL_BASE, 201, struct uinput_ff_upload)
62#define UI_BEGIN_FF_ERASE _IOWR(UINPUT_IOCTL_BASE, 202, struct uinput_ff_erase)
63#define UI_END_FF_ERASE _IOW(UINPUT_IOCTL_BASE, 203, struct uinput_ff_erase)
int32_t __s32
Definition types.h:54
uint32_t __u32
Definition types.h:55
uint16_t __u16
Definition types.h:53