Revision bf011293 hw/virtio-blk.h
b/hw/virtio-blk.h | ||
---|---|---|
30 | 30 |
#define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ |
31 | 31 |
#define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is available*/ |
32 | 32 |
#define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ |
33 |
#define VIRTIO_BLK_F_IDENTIFY 8 /* ATA IDENTIFY supported */ |
|
34 |
|
|
35 |
#define VIRTIO_BLK_ID_LEN 256 /* length of identify u16 array */ |
|
36 |
#define VIRTIO_BLK_ID_SN 10 /* start of char * serial# */ |
|
37 |
#define VIRTIO_BLK_ID_SN_BYTES 20 /* length in bytes of serial# */ |
|
33 | 38 |
|
34 | 39 |
struct virtio_blk_config |
35 | 40 |
{ |
... | ... | |
39 | 44 |
uint16_t cylinders; |
40 | 45 |
uint8_t heads; |
41 | 46 |
uint8_t sectors; |
47 |
uint32_t _blk_size; /* structure pad, currently unused */ |
|
48 |
uint16_t identify[VIRTIO_BLK_ID_LEN]; |
|
42 | 49 |
} __attribute__((packed)); |
43 | 50 |
|
44 | 51 |
/* These two define direction. */ |
Also available in: Unified diff