diff options
| -rw-r--r-- | include/linux/virtio_scsi.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/virtio_scsi.h b/include/linux/virtio_scsi.h index 4195b97a3def..de429d1f4357 100644 --- a/include/linux/virtio_scsi.h +++ b/include/linux/virtio_scsi.h | |||
| @@ -35,11 +35,23 @@ struct virtio_scsi_cmd_req { | |||
| 35 | u8 lun[8]; /* Logical Unit Number */ | 35 | u8 lun[8]; /* Logical Unit Number */ |
| 36 | u64 tag; /* Command identifier */ | 36 | u64 tag; /* Command identifier */ |
| 37 | u8 task_attr; /* Task attribute */ | 37 | u8 task_attr; /* Task attribute */ |
| 38 | u8 prio; | 38 | u8 prio; /* SAM command priority field */ |
| 39 | u8 crn; | 39 | u8 crn; |
| 40 | u8 cdb[VIRTIO_SCSI_CDB_SIZE]; | 40 | u8 cdb[VIRTIO_SCSI_CDB_SIZE]; |
| 41 | } __packed; | 41 | } __packed; |
| 42 | 42 | ||
| 43 | /* SCSI command request, followed by protection information */ | ||
| 44 | struct virtio_scsi_cmd_req_pi { | ||
| 45 | u8 lun[8]; /* Logical Unit Number */ | ||
| 46 | u64 tag; /* Command identifier */ | ||
| 47 | u8 task_attr; /* Task attribute */ | ||
| 48 | u8 prio; /* SAM command priority field */ | ||
| 49 | u8 crn; | ||
| 50 | u32 pi_bytesout; /* DataOUT PI Number of bytes */ | ||
| 51 | u32 pi_bytesin; /* DataIN PI Number of bytes */ | ||
| 52 | u8 cdb[VIRTIO_SCSI_CDB_SIZE]; | ||
| 53 | } __packed; | ||
| 54 | |||
| 43 | /* Response, followed by sense data and data-in */ | 55 | /* Response, followed by sense data and data-in */ |
| 44 | struct virtio_scsi_cmd_resp { | 56 | struct virtio_scsi_cmd_resp { |
| 45 | u32 sense_len; /* Sense data length */ | 57 | u32 sense_len; /* Sense data length */ |
| @@ -97,6 +109,7 @@ struct virtio_scsi_config { | |||
| 97 | #define VIRTIO_SCSI_F_INOUT 0 | 109 | #define VIRTIO_SCSI_F_INOUT 0 |
| 98 | #define VIRTIO_SCSI_F_HOTPLUG 1 | 110 | #define VIRTIO_SCSI_F_HOTPLUG 1 |
| 99 | #define VIRTIO_SCSI_F_CHANGE 2 | 111 | #define VIRTIO_SCSI_F_CHANGE 2 |
| 112 | #define VIRTIO_SCSI_F_T10_PI 3 | ||
| 100 | 113 | ||
| 101 | /* Response codes */ | 114 | /* Response codes */ |
| 102 | #define VIRTIO_SCSI_S_OK 0 | 115 | #define VIRTIO_SCSI_S_OK 0 |
