aboutsummaryrefslogtreecommitdiff
path: root/include/scsi_emul.h
diff options
context:
space:
mode:
authorSimon Glass2022-09-21 16:21:38 +0200
committerSimon Glass2022-09-25 08:30:05 -0600
commit0c12d9dd23a3bce38170db2bab0cc326def6a1db (patch)
treecb70b869ee859e68618a4d8fbdf820c31c9aca70 /include/scsi_emul.h
parentfc7a7ed3a6cd9ea03400e1356768e646ff00b043 (diff)
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>
Diffstat (limited to 'include/scsi_emul.h')
-rw-r--r--include/scsi_emul.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi_emul.h b/include/scsi_emul.h
index f27c19750b0..b281c166f6f 100644
--- a/include/scsi_emul.h
+++ b/include/scsi_emul.h
@@ -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;