Commit 1c6264cc authored by Pranavkumar Sawargaonkar's avatar Pranavkumar Sawargaonkar Committed by Rusty Russell

virtio: console: Add emergency writeonly register to config space

This patch adds an emerg_wr register (writeonly) in config space
of virtio console device which can be used for debugging.
Signed-off-by: default avatarPranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: default avatarAnup Patel <anup.patel@linaro.org>
Acked-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 8b21ab14
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
/* Feature bits */ /* Feature bits */
#define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */ #define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */
#define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */ #define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */
#define VIRTIO_CONSOLE_F_EMERG_WRITE 2 /* Does host support emergency write? */
#define VIRTIO_CONSOLE_BAD_ID (~(u32)0) #define VIRTIO_CONSOLE_BAD_ID (~(u32)0)
...@@ -48,6 +49,8 @@ struct virtio_console_config { ...@@ -48,6 +49,8 @@ struct virtio_console_config {
__u16 rows; __u16 rows;
/* max. number of ports this device can hold */ /* max. number of ports this device can hold */
__u32 max_nr_ports; __u32 max_nr_ports;
/* emergency write register */
__u32 emerg_wr;
} __attribute__((packed)); } __attribute__((packed));
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment