mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/ufs: Modify lu.c to share codes with SCSI subsystem
This patch removes the code that ufs-lu was duplicating from scsi-hd and allows them to share code. It makes ufs-lu have a virtual scsi-bus and scsi-hd internally. This allows scsi related commands to be passed thorugh to the scsi-hd. The query request and nop command work the same as the existing logic. Well-known lus do not have a virtual scsi-bus and scsi-hd, and handle the necessary scsi commands by emulating them directly. Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
This commit is contained in:
parent
c60be6e3e3
commit
096434fea1
6 changed files with 334 additions and 1479 deletions
|
@ -379,7 +379,7 @@ typedef struct Attributes {
|
|||
|
||||
/* Command response result code */
|
||||
typedef enum CommandRespCode {
|
||||
UFS_COMMAND_RESULT_SUCESS = 0x00,
|
||||
UFS_COMMAND_RESULT_SUCCESS = 0x00,
|
||||
UFS_COMMAND_RESULT_FAIL = 0x01,
|
||||
} CommandRespCode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue