mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
scsi: Move vendor/product info into the shared struct
Move this information into struct scsi_emul_info so we can use it in common code. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
/**
|
||||
* struct scsi_emul_info - information for emulating a SCSI device
|
||||
*
|
||||
* @vendor: Vendor name
|
||||
* @product: Product name
|
||||
*
|
||||
* @phase: Current SCSI phase
|
||||
* @buff_used: Number of bytes ready to transfer back to host
|
||||
* @read_len: Number of bytes of data left in the current read command
|
||||
@@ -25,6 +28,8 @@
|
||||
struct scsi_emul_info {
|
||||
/* provided by the caller: */
|
||||
void *buff;
|
||||
const char *vendor;
|
||||
const char *product;
|
||||
|
||||
/* state maintained by the emulator: */
|
||||
enum scsi_cmd_phase phase;
|
||||
|
||||
Reference in New Issue
Block a user