diff options
Diffstat (limited to 'include/linux/virtio_blk.h')
| -rw-r--r-- | include/linux/virtio_blk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h index 5f79a5f9de79..c1aef85243bf 100644 --- a/include/linux/virtio_blk.h +++ b/include/linux/virtio_blk.h | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #ifndef _LINUX_VIRTIO_BLK_H | 1 | #ifndef _LINUX_VIRTIO_BLK_H |
| 2 | #define _LINUX_VIRTIO_BLK_H | 2 | #define _LINUX_VIRTIO_BLK_H |
| 3 | /* This header is BSD licensed so anyone can use the definitions to implement | ||
| 4 | * compatible drivers/servers. */ | ||
| 3 | #include <linux/virtio_config.h> | 5 | #include <linux/virtio_config.h> |
| 4 | 6 | ||
| 5 | /* The ID for virtio_block */ | 7 | /* The ID for virtio_block */ |
| @@ -11,6 +13,7 @@ | |||
| 11 | #define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */ | 13 | #define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */ |
| 12 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ | 14 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ |
| 13 | #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*/ | ||
| 14 | 17 | ||
| 15 | struct virtio_blk_config | 18 | struct virtio_blk_config |
| 16 | { | 19 | { |
| @@ -26,6 +29,8 @@ struct virtio_blk_config | |||
| 26 | __u8 heads; | 29 | __u8 heads; |
| 27 | __u8 sectors; | 30 | __u8 sectors; |
| 28 | } geometry; | 31 | } geometry; |
| 32 | /* block size of device (if VIRTIO_BLK_F_BLK_SIZE) */ | ||
| 33 | __u32 blk_size; | ||
| 29 | } __attribute__((packed)); | 34 | } __attribute__((packed)); |
| 30 | 35 | ||
| 31 | /* These two define direction. */ | 36 | /* These two define direction. */ |
