• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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>
22 enum virtio_input_config_select {
23   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,
27   VIRTIO_INPUT_CFG_PROP_BITS = 0x10,
28   VIRTIO_INPUT_CFG_EV_BITS = 0x11,
29   VIRTIO_INPUT_CFG_ABS_INFO = 0x12,
30 };
31 struct virtio_input_absinfo {
32   __u32 min;
33   __u32 max;
34   __u32 fuzz;
35   __u32 flat;
36   __u32 res;
37 };
38 struct virtio_input_devids {
39   __u16 bustype;
40   __u16 vendor;
41   __u16 product;
42   __u16 version;
43 };
44 struct virtio_input_config {
45   __u8 select;
46   __u8 subsel;
47   __u8 size;
48   __u8 reserved[5];
49   union {
50     char string[128];
51     __u8 bitmap[128];
52     struct virtio_input_absinfo abs;
53     struct virtio_input_devids ids;
54   } u;
55 };
56 struct virtio_input_event {
57   __le16 type;
58   __le16 code;
59   __le32 value;
60 };
61 #endif
62