Commit 7757f09c authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Rusty Russell

virtio_blk: fix endianess annotations

Since commit 72e61eb4 (virtio: change config
to guest endian) config space is no longer fixed endian.

Lets change the virtio_blk_config variables.
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 7f31fe05
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
struct virtio_blk_config struct virtio_blk_config
{ {
/* The capacity (in 512-byte sectors). */ /* The capacity (in 512-byte sectors). */
__le64 capacity; __u64 capacity;
/* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */ /* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */
__le32 size_max; __u32 size_max;
/* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */ /* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
__le32 seg_max; __u32 seg_max;
/* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */ /* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */
struct virtio_blk_geometry { struct virtio_blk_geometry {
__le16 cylinders; __u16 cylinders;
__u8 heads; __u8 heads;
__u8 sectors; __u8 sectors;
} geometry; } geometry;
......
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