111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/****************************************************************************
211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ****************************************************************************
311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***
411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   This header was automatically generated from a Linux kernel header
511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   of the same name, to make information necessary for userspace to
611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   call into the kernel available to libc.  It contains only constants,
711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   structures, and macros generated from the original header, and thus,
811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   contains no copyrightable information.
911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***
1011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   To edit the content of this header, modify the corresponding
1111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   source file (e.g. under external/kernel-headers/original/) then
1211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   run bionic/libc/kernel/tools/update_all.py
1311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***
1411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   Any manual change here will be lost the next time this script will
1511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***   be run. You've been warned!
1611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ***
1711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ****************************************************************************
1811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ****************************************************************************/
1911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef _UAPI_LINUX_VIRTIO_CONSOLE_H
2011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define _UAPI_LINUX_VIRTIO_CONSOLE_H
2111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#include <linux/types.h>
2211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#include <linux/virtio_ids.h>
2311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#include <linux/virtio_config.h>
2511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_F_SIZE 0
2611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_F_MULTIPORT 1
2711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_F_EMERG_WRITE 2
2811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_BAD_ID (~(__u32)0)
3011cd02dfb91661c65134cac258cf5924270e9d2Dan Albertstruct virtio_console_config {
3111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u16 cols;
3211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u16 rows;
3311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u32 max_nr_ports;
3511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u32 emerg_wr;
3611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert} __attribute__((packed));
3711cd02dfb91661c65134cac258cf5924270e9d2Dan Albertstruct virtio_console_control {
3811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u32 id;
4011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u16 event;
4111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert __u16 value;
4211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert};
4311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_DEVICE_READY 0
4511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_PORT_ADD 1
4611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_PORT_REMOVE 2
4711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_PORT_READY 3
4811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_CONSOLE_PORT 4
5011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_RESIZE 5
5111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_PORT_OPEN 6
5211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define VIRTIO_CONSOLE_PORT_NAME 7
5311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif
55