blob: ab5d3eeb7ef4c5475ed990500b47cec9411c2f5c [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris05d08e92016-02-04 13:16:38 -08007#ifndef _LINUX_VIRTIO_INPUT_H
8#define _LINUX_VIRTIO_INPUT_H
9#include <linux/types.h>
10enum virtio_input_config_select {
Christopher Ferris05d08e92016-02-04 13:16:38 -080011 VIRTIO_INPUT_CFG_UNSET = 0x00,
12 VIRTIO_INPUT_CFG_ID_NAME = 0x01,
13 VIRTIO_INPUT_CFG_ID_SERIAL = 0x02,
14 VIRTIO_INPUT_CFG_ID_DEVIDS = 0x03,
Christopher Ferris05d08e92016-02-04 13:16:38 -080015 VIRTIO_INPUT_CFG_PROP_BITS = 0x10,
16 VIRTIO_INPUT_CFG_EV_BITS = 0x11,
17 VIRTIO_INPUT_CFG_ABS_INFO = 0x12,
18};
Christopher Ferris05d08e92016-02-04 13:16:38 -080019struct virtio_input_absinfo {
Christopher Ferris25c18d42020-10-14 17:42:58 -070020 __le32 min;
21 __le32 max;
22 __le32 fuzz;
23 __le32 flat;
24 __le32 res;
Christopher Ferris05d08e92016-02-04 13:16:38 -080025};
26struct virtio_input_devids {
Christopher Ferris25c18d42020-10-14 17:42:58 -070027 __le16 bustype;
28 __le16 vendor;
29 __le16 product;
30 __le16 version;
Christopher Ferris05d08e92016-02-04 13:16:38 -080031};
32struct virtio_input_config {
33 __u8 select;
34 __u8 subsel;
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 __u8 size;
36 __u8 reserved[5];
37 union {
38 char string[128];
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u8 bitmap[128];
40 struct virtio_input_absinfo abs;
41 struct virtio_input_devids ids;
42 } u;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043};
44struct virtio_input_event {
45 __le16 type;
46 __le16 code;
Christopher Ferris05d08e92016-02-04 13:16:38 -080047 __le32 value;
48};
49#endif