blob: e1fc3e58b86d770643adf75bcdbeb14f041937ee [file] [log] [blame]
Christopher Ferris05d08e92016-02-04 13:16:38 -08001/****************************************************************************
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 _LINUX_VIRTIO_INPUT_H
20#define _LINUX_VIRTIO_INPUT_H
21#include <linux/types.h>
22enum virtio_input_config_select {
Christopher Ferris05d08e92016-02-04 13:16:38 -080023 VIRTIO_INPUT_CFG_UNSET = 0x00,
24 VIRTIO_INPUT_CFG_ID_NAME = 0x01,
25 VIRTIO_INPUT_CFG_ID_SERIAL = 0x02,
26 VIRTIO_INPUT_CFG_ID_DEVIDS = 0x03,
Christopher Ferris05d08e92016-02-04 13:16:38 -080027 VIRTIO_INPUT_CFG_PROP_BITS = 0x10,
28 VIRTIO_INPUT_CFG_EV_BITS = 0x11,
29 VIRTIO_INPUT_CFG_ABS_INFO = 0x12,
30};
Christopher Ferris05d08e92016-02-04 13:16:38 -080031struct virtio_input_absinfo {
32 __u32 min;
33 __u32 max;
34 __u32 fuzz;
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 __u32 flat;
36 __u32 res;
37};
38struct virtio_input_devids {
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u16 bustype;
40 __u16 vendor;
41 __u16 product;
42 __u16 version;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043};
44struct virtio_input_config {
45 __u8 select;
46 __u8 subsel;
Christopher Ferris05d08e92016-02-04 13:16:38 -080047 __u8 size;
48 __u8 reserved[5];
49 union {
50 char string[128];
Christopher Ferris05d08e92016-02-04 13:16:38 -080051 __u8 bitmap[128];
52 struct virtio_input_absinfo abs;
53 struct virtio_input_devids ids;
54 } u;
Christopher Ferris05d08e92016-02-04 13:16:38 -080055};
56struct virtio_input_event {
57 __le16 type;
58 __le16 code;
Christopher Ferris05d08e92016-02-04 13:16:38 -080059 __le32 value;
60};
61#endif