diff options
| author | Simon Glass <[email protected]> | 2022-10-20 18:22:55 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-10-31 11:02:44 -0400 |
| commit | 2ff3db3a1c5ef128a4f33c22d7be8ee37fca3613 (patch) | |
| tree | b039cad266e4cb9f32200eadbaebb5f6c484e514 /include/scsi.h | |
| parent | 606b926f9d76eaab11be2d95cfd7734644e1627c (diff) | |
usb: Update the test to cover reading and writing
Add test coverage for blk_write() as well.
The blk_erase() is not tested for now as the USB stor interface does not
support erase.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/scsi.h')
| -rw-r--r-- | include/scsi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h index 94e1d8ccb28..9efefea99bb 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -255,6 +255,16 @@ struct __packed scsi_read10_req { u8 spare2[3]; }; +/** struct scsi_write10_req - data for the write10 command */ +struct __packed scsi_write10_req { + u8 cmd; + u8 lun_flags; + u32 lba; + u8 spare; + u16 xfer_len; + u8 spare2[3]; +}; + /** * struct scsi_plat - stores information about SCSI controller * |
