|
@@ -58,7 +58,7 @@ struct virtio_blk_config {
|
|
uint32_t size_max;
|
|
uint32_t size_max;
|
|
/* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
|
|
/* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
|
|
uint32_t seg_max;
|
|
uint32_t seg_max;
|
|
- /* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */
|
|
|
|
|
|
+ /* geometry of the device (if VIRTIO_BLK_F_GEOMETRY) */
|
|
struct virtio_blk_geometry {
|
|
struct virtio_blk_geometry {
|
|
uint16_t cylinders;
|
|
uint16_t cylinders;
|
|
uint8_t heads;
|
|
uint8_t heads;
|
|
@@ -117,7 +117,11 @@ struct virtio_blk_config {
|
|
#define VIRTIO_BLK_T_BARRIER 0x80000000
|
|
#define VIRTIO_BLK_T_BARRIER 0x80000000
|
|
#endif /* !VIRTIO_BLK_NO_LEGACY */
|
|
#endif /* !VIRTIO_BLK_NO_LEGACY */
|
|
|
|
|
|
-/* This is the first element of the read scatter-gather list. */
|
|
|
|
|
|
+/*
|
|
|
|
+ * This comes first in the read scatter-gather list.
|
|
|
|
+ * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated,
|
|
|
|
+ * this is the first element of the read scatter-gather list.
|
|
|
|
+ */
|
|
struct virtio_blk_outhdr {
|
|
struct virtio_blk_outhdr {
|
|
/* VIRTIO_BLK_T* */
|
|
/* VIRTIO_BLK_T* */
|
|
__virtio32 type;
|
|
__virtio32 type;
|