diff options
author | Simon Glass | 2022-09-21 16:21:37 +0200 |
---|---|---|
committer | Simon Glass | 2022-09-25 08:30:05 -0600 |
commit | fc7a7ed3a6cd9ea03400e1356768e646ff00b043 (patch) | |
tree | bda6322ffa6a2c491298735361b41fe59bad7bc3 /include/scsi_emul.h | |
parent | 1377d448a26aa67907ae86a84d33c02c7c9b9dcd (diff) |
sandbox: Move buffer to scsi_emul_info
Move the buffer into this struct so it can be shared between different
implementations.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/scsi_emul.h')
-rw-r--r-- | include/scsi_emul.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi_emul.h b/include/scsi_emul.h index dec78d239c7..f27c19750b0 100644 --- a/include/scsi_emul.h +++ b/include/scsi_emul.h @@ -20,8 +20,13 @@ * @read_len: Number of bytes of data left in the current read command * @alloc_len: Allocation length from the last incoming command * @transfer_len: Transfer length from CBW header + * @buff: Data buffer for outgoing data */ struct scsi_emul_info { + /* provided by the caller: */ + void *buff; + + /* state maintained by the emulator: */ enum scsi_cmd_phase phase; int buff_used; int read_len; |