blob: 188b0bbd064eec44b3f7c5ae7fe3fa003819f100 [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 {
Christopher Ferris25c18d42020-10-14 17:42:58 -070032 __le32 min;
33 __le32 max;
34 __le32 fuzz;
35 __le32 flat;
36 __le32 res;
Christopher Ferris05d08e92016-02-04 13:16:38 -080037};
38struct virtio_input_devids {
Christopher Ferris25c18d42020-10-14 17:42:58 -070039 __le16 bustype;
40 __le16 vendor;
41 __le16 product;
42 __le16 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