summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_console.h
diff options
context:
space:
mode:
authorPranavkumar Sawargaonkar <pranavkumar@linaro.org>2013-05-20 00:55:38 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2013-05-20 02:39:03 (GMT)
commit1c6264cc67ac8712d84392fbc9293289011407c0 (patch)
tree999a41ce5d955faab99dd16cdd1db1235324fc39 /include/uapi/linux/virtio_console.h
parent8b21ab140ec581caf3340a51cdbe91a76c36d9d8 (diff)
downloadlinux-fsl-qoriq-1c6264cc67ac8712d84392fbc9293289011407c0.tar.xz
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: Pranavkumar Sawargaonkar <pranavkumar@linaro.org> Signed-off-by: Anup Patel <anup.patel@linaro.org> Acked-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/uapi/linux/virtio_console.h')
-rw-r--r--include/uapi/linux/virtio_console.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h
index ee13ab6..3fd0dce 100644
--- a/include/uapi/linux/virtio_console.h
+++ b/include/uapi/linux/virtio_console.h
@@ -38,6 +38,7 @@
/* Feature bits */
#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_EMERG_WRITE 2 /* Does host support emergency write? */
#define VIRTIO_CONSOLE_BAD_ID (~(u32)0)
@@ -48,6 +49,8 @@ struct virtio_console_config {
__u16 rows;
/* max. number of ports this device can hold */
__u32 max_nr_ports;
+ /* emergency write register */
+ __u32 emerg_wr;
} __attribute__((packed));
/*