aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2020-07-10 07:17:13 -0400
committerMichael S. Tsirkin <mst@redhat.com>2020-08-05 11:08:39 -0400
commitdbe2dc8c5838ef415620a4fe691570b062ab046f (patch)
tree43e5b12568625545e41ebf999224bad82b8a9ad4 /include/uapi
parentvirtio_blk: correct tags for config space fields (diff)
downloadwireguard-linux-dbe2dc8c5838ef415620a4fe691570b062ab046f.tar.xz
wireguard-linux-dbe2dc8c5838ef415620a4fe691570b062ab046f.zip
virtio_console: correct tags for config space fields
Tag config space fields as having virtio endian-ness. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/virtio_console.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h
index b7fb108c9310..7e6ec2ff0560 100644
--- a/include/uapi/linux/virtio_console.h
+++ b/include/uapi/linux/virtio_console.h
@@ -45,13 +45,13 @@
struct virtio_console_config {
/* colums of the screens */
- __u16 cols;
+ __virtio16 cols;
/* rows of the screens */
- __u16 rows;
+ __virtio16 rows;
/* max. number of ports this device can hold */
- __u32 max_nr_ports;
+ __virtio32 max_nr_ports;
/* emergency write register */
- __u32 emerg_wr;
+ __virtio32 emerg_wr;
} __attribute__((packed));
/*