Revision 37d5ddd6 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 */
33
/* #define VIRTIO_BLK_F_IDENTIFY   8       ATA IDENTIFY supported, DEPRECATED */
34 34
#define VIRTIO_BLK_F_WCACHE     9       /* write cache enabled */
35 35

  
36
#define VIRTIO_BLK_ID_LEN       256     /* length of identify u16 array */
37
#define VIRTIO_BLK_ID_SN        10      /* start of char * serial# */
38
#define VIRTIO_BLK_ID_SN_BYTES  20      /* length in bytes of serial# */
39

  
40 36
struct virtio_blk_config
41 37
{
42 38
    uint64_t capacity;
......
46 42
    uint8_t heads;
47 43
    uint8_t sectors;
48 44
    uint32_t _blk_size;    /* structure pad, currently unused */
49
    uint16_t identify[VIRTIO_BLK_ID_LEN];
50 45
} __attribute__((packed));
51 46

  
52 47
/* These two define direction. */

Also available in: Unified diff