blob: 81d515cdc114c97b3505148b125bfb6314bc85a1 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_LINUX_VIRTIO_CONSOLE_H
20#define _UAPI_LINUX_VIRTIO_CONSOLE_H
21#include <linux/types.h>
22#include <linux/virtio_ids.h>
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024#include <linux/virtio_config.h>
25#define VIRTIO_CONSOLE_F_SIZE 0
26#define VIRTIO_CONSOLE_F_MULTIPORT 1
Christopher Ferris38062f92014-07-09 15:33:25 -070027#define VIRTIO_CONSOLE_F_EMERG_WRITE 2
Elliott Hughes8cb52b02013-11-21 13:43:23 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029#define VIRTIO_CONSOLE_BAD_ID (~(__u32)0)
Ben Cheng655a7c02013-10-16 16:09:24 -070030struct virtio_console_config {
31 __u16 cols;
32 __u16 rows;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034 __u32 max_nr_ports;
35 __u32 emerg_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -070036} __attribute__((packed));
37struct virtio_console_control {
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039 __u32 id;
40 __u16 event;
41 __u16 value;
42};
Christopher Ferris38062f92014-07-09 15:33:25 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044#define VIRTIO_CONSOLE_DEVICE_READY 0
45#define VIRTIO_CONSOLE_PORT_ADD 1
46#define VIRTIO_CONSOLE_PORT_REMOVE 2
47#define VIRTIO_CONSOLE_PORT_READY 3
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define VIRTIO_CONSOLE_CONSOLE_PORT 4
50#define VIRTIO_CONSOLE_RESIZE 5
51#define VIRTIO_CONSOLE_PORT_OPEN 6
52#define VIRTIO_CONSOLE_PORT_NAME 7
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Kralevicha67e4de2013-01-14 11:28:26 -080054#endif