1 /* 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 */ 7 #ifndef _LINUX_VIRTIO_INPUT_H 8 #define _LINUX_VIRTIO_INPUT_H 9 #include <linux/types.h> 10 enum virtio_input_config_select { 11 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, 15 VIRTIO_INPUT_CFG_PROP_BITS = 0x10, 16 VIRTIO_INPUT_CFG_EV_BITS = 0x11, 17 VIRTIO_INPUT_CFG_ABS_INFO = 0x12, 18 }; 19 struct virtio_input_absinfo { 20 __le32 min; 21 __le32 max; 22 __le32 fuzz; 23 __le32 flat; 24 __le32 res; 25 }; 26 struct virtio_input_devids { 27 __le16 bustype; 28 __le16 vendor; 29 __le16 product; 30 __le16 version; 31 }; 32 struct virtio_input_config { 33 __u8 select; 34 __u8 subsel; 35 __u8 size; 36 __u8 reserved[5]; 37 union { 38 char string[128]; 39 __u8 bitmap[128]; 40 struct virtio_input_absinfo abs; 41 struct virtio_input_devids ids; 42 } u; 43 }; 44 struct virtio_input_event { 45 __le16 type; 46 __le16 code; 47 __le32 value; 48 }; 49 #endif 50