diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-05-20 00:15:47 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-19 08:45:47 -0400 |
commit | eaeff9608a8cf43a676b6f4b6235ea9d76192230 (patch) | |
tree | 256259307b5ea4d2985d998896b10b1194182aa6 /include | |
parent | 3425e706bf6faa2965c4e99f39085f7367a8f4e2 (diff) |
virtio: console: Let host know of port or device add failures
The host may want to know and let management apps notify of port or
device add failures. Send a control message saying the device or port is
not ready in this case.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/virtio_console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/virtio_console.h b/include/linux/virtio_console.h index ae4f039515b4..015736113c25 100644 --- a/include/linux/virtio_console.h +++ b/include/linux/virtio_console.h | |||
@@ -14,6 +14,8 @@ | |||
14 | #define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */ | 14 | #define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */ |
15 | #define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */ | 15 | #define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */ |
16 | 16 | ||
17 | #define VIRTIO_CONSOLE_BAD_ID (~(u32)0) | ||
18 | |||
17 | struct virtio_console_config { | 19 | struct virtio_console_config { |
18 | /* colums of the screens */ | 20 | /* colums of the screens */ |
19 | __u16 cols; | 21 | __u16 cols; |
@@ -42,6 +44,7 @@ struct virtio_console_control { | |||
42 | #define VIRTIO_CONSOLE_PORT_OPEN 3 | 44 | #define VIRTIO_CONSOLE_PORT_OPEN 3 |
43 | #define VIRTIO_CONSOLE_PORT_NAME 4 | 45 | #define VIRTIO_CONSOLE_PORT_NAME 4 |
44 | #define VIRTIO_CONSOLE_PORT_REMOVE 5 | 46 | #define VIRTIO_CONSOLE_PORT_REMOVE 5 |
47 | #define VIRTIO_CONSOLE_DEVICE_READY 6 | ||
45 | 48 | ||
46 | #ifdef __KERNEL__ | 49 | #ifdef __KERNEL__ |
47 | int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)); | 50 | int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)); |