diff options
author | Simon Glass | 2022-09-21 16:21:39 +0200 |
---|---|---|
committer | Simon Glass | 2022-09-25 08:30:05 -0600 |
commit | a3718f1e536c564610f23298e2c0540877ef30f8 (patch) | |
tree | 52ea8499e1186884714ab81b9e261bc118143a31 /include | |
parent | 0c12d9dd23a3bce38170db2bab0cc326def6a1db (diff) |
sandbox: scsi: Move block size into 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')
-rw-r--r-- | include/scsi_emul.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi_emul.h b/include/scsi_emul.h index b281c166f6f..86c9379ca9e 100644 --- a/include/scsi_emul.h +++ b/include/scsi_emul.h @@ -17,6 +17,7 @@ * * @vendor: Vendor name * @product: Product name + * @block_size: Block size of device in bytes (normally 512) * * @phase: Current SCSI phase * @buff_used: Number of bytes ready to transfer back to host @@ -30,6 +31,7 @@ struct scsi_emul_info { void *buff; const char *vendor; const char *product; + int block_size; /* state maintained by the emulator: */ enum scsi_cmd_phase phase; |