diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-12-01 13:17:40 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-12-09 12:06:32 +0200 |
commit | 1f0f9106f92c7d49ec92baa6ac757aa8b0590eff (patch) | |
tree | b79ea77ccee79d3495f48081a6e78694b4120246 /include/uapi/linux/virtio_console.h | |
parent | dc9e51534b70e5c4a99235e940dc6f0f466fe175 (diff) | |
download | linux-1f0f9106f92c7d49ec92baa6ac757aa8b0590eff.tar.gz |
virtio_console: virtio 1.0 support
Pretty straight-forward, just use accessors for all fields.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux/virtio_console.h')
-rw-r--r-- | include/uapi/linux/virtio_console.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h index ba260dd0b33a..b7fb108c9310 100644 --- a/include/uapi/linux/virtio_console.h +++ b/include/uapi/linux/virtio_console.h @@ -32,6 +32,7 @@ #ifndef _UAPI_LINUX_VIRTIO_CONSOLE_H #define _UAPI_LINUX_VIRTIO_CONSOLE_H #include <linux/types.h> +#include <linux/virtio_types.h> #include <linux/virtio_ids.h> #include <linux/virtio_config.h> @@ -58,9 +59,9 @@ struct virtio_console_config { * particular port. */ struct virtio_console_control { - __u32 id; /* Port number */ - __u16 event; /* The kind of control event (see below) */ - __u16 value; /* Extra information for the key */ + __virtio32 id; /* Port number */ + __virtio16 event; /* The kind of control event (see below) */ + __virtio16 value; /* Extra information for the key */ }; /* Some events for control messages */ |