Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 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 { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 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, |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 27 | VIRTIO_INPUT_CFG_PROP_BITS = 0x10, |
| 28 | VIRTIO_INPUT_CFG_EV_BITS = 0x11, |
| 29 | VIRTIO_INPUT_CFG_ABS_INFO = 0x12, |
| 30 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | struct virtio_input_absinfo { |
Christopher Ferris | 25c18d4 | 2020-10-14 17:42:58 -0700 | [diff] [blame^] | 32 | __le32 min; |
| 33 | __le32 max; |
| 34 | __le32 fuzz; |
| 35 | __le32 flat; |
| 36 | __le32 res; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 37 | }; |
| 38 | struct virtio_input_devids { |
Christopher Ferris | 25c18d4 | 2020-10-14 17:42:58 -0700 | [diff] [blame^] | 39 | __le16 bustype; |
| 40 | __le16 vendor; |
| 41 | __le16 product; |
| 42 | __le16 version; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 43 | }; |
| 44 | struct virtio_input_config { |
| 45 | __u8 select; |
| 46 | __u8 subsel; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 47 | __u8 size; |
| 48 | __u8 reserved[5]; |
| 49 | union { |
| 50 | char string[128]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 51 | __u8 bitmap[128]; |
| 52 | struct virtio_input_absinfo abs; |
| 53 | struct virtio_input_devids ids; |
| 54 | } u; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 55 | }; |
| 56 | struct virtio_input_event { |
| 57 | __le16 type; |
| 58 | __le16 code; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 59 | __le32 value; |
| 60 | }; |
| 61 | #endif |