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 _UAPI_LINUX_VIRTIO_CONSOLE_H 20 #define _UAPI_LINUX_VIRTIO_CONSOLE_H 21 #include <linux/types.h> 22 #include <linux/virtio_ids.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #include <linux/virtio_config.h> 25 #define VIRTIO_CONSOLE_F_SIZE 0 26 #define VIRTIO_CONSOLE_F_MULTIPORT 1 27 #define VIRTIO_CONSOLE_BAD_ID (~(__u32)0) 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 struct virtio_console_config { 30 __u16 cols; 31 __u16 rows; 32 __u32 max_nr_ports; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 } __attribute__((packed)); 35 struct virtio_console_control { 36 __u32 id; 37 __u16 event; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u16 value; 40 }; 41 #define VIRTIO_CONSOLE_DEVICE_READY 0 42 #define VIRTIO_CONSOLE_PORT_ADD 1 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define VIRTIO_CONSOLE_PORT_REMOVE 2 45 #define VIRTIO_CONSOLE_PORT_READY 3 46 #define VIRTIO_CONSOLE_CONSOLE_PORT 4 47 #define VIRTIO_CONSOLE_RESIZE 5 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define VIRTIO_CONSOLE_PORT_OPEN 6 50 #define VIRTIO_CONSOLE_PORT_NAME 7 51 #endif 52