blob: 845affc85ebdb59896d5531af0b70db2edd35032 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__UINPUT_H_
20#define _UAPI__UINPUT_H_
21#include <linux/types.h>
22#include <linux/input.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070024#define UINPUT_VERSION 4
Ben Cheng655a7c02013-10-16 16:09:24 -070025struct uinput_ff_upload {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u32 request_id;
27 __s32 retval;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 struct ff_effect effect;
30 struct ff_effect old;
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32struct uinput_ff_erase {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 request_id;
35 __s32 retval;
36 __u32 effect_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define UINPUT_IOCTL_BASE 'U'
40#define UI_DEV_CREATE _IO(UINPUT_IOCTL_BASE, 1)
41#define UI_DEV_DESTROY _IO(UINPUT_IOCTL_BASE, 2)
42#define UI_SET_EVBIT _IOW(UINPUT_IOCTL_BASE, 100, int)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define UI_SET_KEYBIT _IOW(UINPUT_IOCTL_BASE, 101, int)
45#define UI_SET_RELBIT _IOW(UINPUT_IOCTL_BASE, 102, int)
46#define UI_SET_ABSBIT _IOW(UINPUT_IOCTL_BASE, 103, int)
47#define UI_SET_MSCBIT _IOW(UINPUT_IOCTL_BASE, 104, int)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define UI_SET_LEDBIT _IOW(UINPUT_IOCTL_BASE, 105, int)
50#define UI_SET_SNDBIT _IOW(UINPUT_IOCTL_BASE, 106, int)
51#define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int)
Tao Baod7db5942015-01-28 10:07:51 -080052#define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char *)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int)
55#define UI_SET_PROPBIT _IOW(UINPUT_IOCTL_BASE, 110, int)
56#define UI_BEGIN_FF_UPLOAD _IOWR(UINPUT_IOCTL_BASE, 200, struct uinput_ff_upload)
57#define UI_END_FF_UPLOAD _IOW(UINPUT_IOCTL_BASE, 201, struct uinput_ff_upload)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define UI_BEGIN_FF_ERASE _IOWR(UINPUT_IOCTL_BASE, 202, struct uinput_ff_erase)
60#define UI_END_FF_ERASE _IOW(UINPUT_IOCTL_BASE, 203, struct uinput_ff_erase)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070061#define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 300, len)
Christopher Ferris82d75042015-01-26 10:57:07 -080062#define UI_GET_VERSION _IOR(UINPUT_IOCTL_BASE, 301, unsigned int)
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080064#define EV_UINPUT 0x0101
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070065#define UI_FF_UPLOAD 1
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define UI_FF_ERASE 2
67#define UINPUT_MAX_NAME_SIZE 80
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080069struct uinput_user_dev {
Tao Baod7db5942015-01-28 10:07:51 -080070 char name[UINPUT_MAX_NAME_SIZE];
71 struct input_id id;
72 __u32 ff_effects_max;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __s32 absmax[ABS_CNT];
75 __s32 absmin[ABS_CNT];
76 __s32 absfuzz[ABS_CNT];
77 __s32 absflat[ABS_CNT];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080079};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070080#endif