diff options
Diffstat (limited to 'include/linux/virtio_blk.h')
-rw-r--r-- | include/linux/virtio_blk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h index 6a66c7f30bcb..c1aef85243bf 100644 --- a/include/linux/virtio_blk.h +++ b/include/linux/virtio_blk.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */ | 13 | #define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */ |
14 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ | 14 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ |
15 | #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ | 15 | #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ |
16 | #define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is available*/ | ||
16 | 17 | ||
17 | struct virtio_blk_config | 18 | struct virtio_blk_config |
18 | { | 19 | { |
@@ -28,6 +29,8 @@ struct virtio_blk_config | |||
28 | __u8 heads; | 29 | __u8 heads; |
29 | __u8 sectors; | 30 | __u8 sectors; |
30 | } geometry; | 31 | } geometry; |
32 | /* block size of device (if VIRTIO_BLK_F_BLK_SIZE) */ | ||
33 | __u32 blk_size; | ||
31 | } __attribute__((packed)); | 34 | } __attribute__((packed)); |
32 | 35 | ||
33 | /* These two define direction. */ | 36 | /* These two define direction. */ |