1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 10:56:02 +01:00

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 <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-10-20 18:22:55 -06:00
committed by Tom Rini
parent 606b926f9d
commit 2ff3db3a1c
5 changed files with 80 additions and 9 deletions

View File

@@ -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
*