diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
| commit | bbb20089a3275a19e475dbc21320c3742e3ca423 (patch) | |
| tree | 216fdc1cbef450ca688135c5b8969169482d9a48 /include/linux/virtio_blk.h | |
| parent | 3e48e656903e9fd8bc805c6a2c4264d7808d315b (diff) | |
| parent | 657a77fa7284d8ae28dfa48f1dc5d919bf5b2843 (diff) | |
Merge branch 'dmaengine' into async-tx-next
Conflicts:
crypto/async_tx/async_xor.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/pci.c
drivers/md/raid5.c
Diffstat (limited to 'include/linux/virtio_blk.h')
| -rw-r--r-- | include/linux/virtio_blk.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h index 94c56d29869d..be7d255fc7cf 100644 --- a/include/linux/virtio_blk.h +++ b/include/linux/virtio_blk.h | |||
| @@ -15,6 +15,10 @@ | |||
| 15 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ | 15 | #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ |
| 16 | #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ | 16 | #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ |
| 17 | #define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is available*/ | 17 | #define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is available*/ |
| 18 | #define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ | ||
| 19 | #define VIRTIO_BLK_F_IDENTIFY 8 /* ATA IDENTIFY supported */ | ||
| 20 | |||
| 21 | #define VIRTIO_BLK_ID_BYTES (sizeof(__u16[256])) /* IDENTIFY DATA */ | ||
| 18 | 22 | ||
| 19 | struct virtio_blk_config | 23 | struct virtio_blk_config |
| 20 | { | 24 | { |
| @@ -32,6 +36,7 @@ struct virtio_blk_config | |||
| 32 | } geometry; | 36 | } geometry; |
| 33 | /* block size of device (if VIRTIO_BLK_F_BLK_SIZE) */ | 37 | /* block size of device (if VIRTIO_BLK_F_BLK_SIZE) */ |
| 34 | __u32 blk_size; | 38 | __u32 blk_size; |
| 39 | __u8 identify[VIRTIO_BLK_ID_BYTES]; | ||
| 35 | } __attribute__((packed)); | 40 | } __attribute__((packed)); |
| 36 | 41 | ||
| 37 | /* These two define direction. */ | 42 | /* These two define direction. */ |
| @@ -55,6 +60,13 @@ struct virtio_blk_outhdr | |||
| 55 | __u64 sector; | 60 | __u64 sector; |
| 56 | }; | 61 | }; |
| 57 | 62 | ||
| 63 | struct virtio_scsi_inhdr { | ||
| 64 | __u32 errors; | ||
| 65 | __u32 data_len; | ||
| 66 | __u32 sense_len; | ||
| 67 | __u32 residual; | ||
| 68 | }; | ||
| 69 | |||
| 58 | /* And this is the final byte of the write scatter-gather list. */ | 70 | /* And this is the final byte of the write scatter-gather list. */ |
| 59 | #define VIRTIO_BLK_S_OK 0 | 71 | #define VIRTIO_BLK_S_OK 0 |
| 60 | #define VIRTIO_BLK_S_IOERR 1 | 72 | #define VIRTIO_BLK_S_IOERR 1 |
