blob: c2c8073597427f2bd878e9e181e4f51d52af74a8 [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>
Christopher Ferris05d08e92016-02-04 13:16:38 -080022#include <linux/virtio_types.h>
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#include <linux/virtio_ids.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070025#include <linux/virtio_config.h>
26#define VIRTIO_CONSOLE_F_SIZE 0
27#define VIRTIO_CONSOLE_F_MULTIPORT 1
Elliott Hughes8cb52b02013-11-21 13:43:23 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080029#define VIRTIO_CONSOLE_F_EMERG_WRITE 2
Tao Baod7db5942015-01-28 10:07:51 -080030#define VIRTIO_CONSOLE_BAD_ID (~(__u32) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070031struct virtio_console_config {
Tao Baod7db5942015-01-28 10:07:51 -080032 __u16 cols;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034 __u16 rows;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u32 max_nr_ports;
36 __u32 emerg_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -070037} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039struct virtio_console_control {
Christopher Ferris05d08e92016-02-04 13:16:38 -080040 __virtio32 id;
41 __virtio16 event;
42 __virtio16 value;
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};
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define VIRTIO_CONSOLE_DEVICE_READY 0
46#define VIRTIO_CONSOLE_PORT_ADD 1
47#define VIRTIO_CONSOLE_PORT_REMOVE 2
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define VIRTIO_CONSOLE_PORT_READY 3
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define VIRTIO_CONSOLE_CONSOLE_PORT 4
51#define VIRTIO_CONSOLE_RESIZE 5
52#define VIRTIO_CONSOLE_PORT_OPEN 6
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054#define VIRTIO_CONSOLE_PORT_NAME 7
Nick Kralevicha67e4de2013-01-14 11:28:26 -080055#endif