aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_console.h
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-12-21 11:19:30 -0500
committerRusty Russell <rusty@rustcorp.com.au>2010-02-23 22:52:54 -0500
commit2030fa496d74b49220308eaccf656e2338019cfd (patch)
treecf8d937551d8bfefadbbc5389caaf587f2d0b13b /include/linux/virtio_console.h
parentfb08bd274df61967f40d49c4625fe6ed75a69ab5 (diff)
virtio: console: Add file operations to ports for open/read/write/poll
Allow guest userspace applications to open, read from, write to, poll the ports via the char dev interface. When a port gets opened, a notification is sent to the host via a control message indicating a connection has been established. Similarly, on closing of the port, a notification is sent indicating disconnection. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio_console.h')
-rw-r--r--include/linux/virtio_console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/virtio_console.h b/include/linux/virtio_console.h
index f4d183b5b493..bd0e2a596f93 100644
--- a/include/linux/virtio_console.h
+++ b/include/linux/virtio_console.h
@@ -39,6 +39,7 @@ struct virtio_console_control {
39#define VIRTIO_CONSOLE_PORT_READY 0 39#define VIRTIO_CONSOLE_PORT_READY 0
40#define VIRTIO_CONSOLE_CONSOLE_PORT 1 40#define VIRTIO_CONSOLE_CONSOLE_PORT 1
41#define VIRTIO_CONSOLE_RESIZE 2 41#define VIRTIO_CONSOLE_RESIZE 2
42#define VIRTIO_CONSOLE_PORT_OPEN 3
42 43
43#ifdef __KERNEL__ 44#ifdef __KERNEL__
44int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)); 45int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int));