Home | History | Annotate | Download | only in linux
      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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24   VIRTIO_INPUT_CFG_UNSET = 0x00,
     25   VIRTIO_INPUT_CFG_ID_NAME = 0x01,
     26   VIRTIO_INPUT_CFG_ID_SERIAL = 0x02,
     27   VIRTIO_INPUT_CFG_ID_DEVIDS = 0x03,
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29   VIRTIO_INPUT_CFG_PROP_BITS = 0x10,
     30   VIRTIO_INPUT_CFG_EV_BITS = 0x11,
     31   VIRTIO_INPUT_CFG_ABS_INFO = 0x12,
     32 };
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 struct virtio_input_absinfo {
     35   __u32 min;
     36   __u32 max;
     37   __u32 fuzz;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39   __u32 flat;
     40   __u32 res;
     41 };
     42 struct virtio_input_devids {
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   __u16 bustype;
     45   __u16 vendor;
     46   __u16 product;
     47   __u16 version;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 };
     50 struct virtio_input_config {
     51   __u8 select;
     52   __u8 subsel;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   __u8 size;
     55   __u8 reserved[5];
     56   union {
     57     char string[128];
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59     __u8 bitmap[128];
     60     struct virtio_input_absinfo abs;
     61     struct virtio_input_devids ids;
     62   } u;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 };
     65 struct virtio_input_event {
     66   __le16 type;
     67   __le16 code;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   __le32 value;
     70 };
     71 #endif
     72