scsi: Move core emulation state into a new struct
authorSimon Glass <sjg@chromium.org>
Wed, 21 Sep 2022 14:21:36 +0000 (16:21 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2022 14:30:05 +0000 (08:30 -0600)
commit1377d448a26aa67907ae86a84d33c02c7c9b9dcd
treec89f40de7229917d54f51138d4bacc62b637fadc
parent0e0b9e94595a706d86d8a9daca572da9a7de35a0
scsi: Move core emulation state into a new struct

In preparation for sharing the emulation code between two drivers, move
some of the fields into a new struct. Use a separate header file so it
can be used by various drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/emul/sandbox_flash.c
include/scsi_emul.h [new file with mode: 0644]