diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-21 16:21:35 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-09-25 08:30:05 -0600 |
commit | 0e0b9e94595a706d86d8a9daca572da9a7de35a0 (patch) | |
tree | 0d8c1dc16d51ed61bf4a396b62f344abeea12312 /include/scsi.h | |
parent | 8bae79744b39ee7725729673202477300b2f79bc (diff) | |
download | u-boot-0e0b9e94595a706d86d8a9daca572da9a7de35a0.tar.gz |
scsi: Move cmd_phase enum to the header
This can be used by common files, so move it to the SCSI header and rename
it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/scsi.h')
-rw-r--r-- | include/scsi.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h index 99b00e2627..a4f99f0884 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -188,6 +188,19 @@ struct scsi_cmd { #define SCSI_WRITE_SAME 0x41 /* Write Same (O) */ /** + * enum scsi_cmd_phase - current phase of the SCSI protocol + * + * @SCSIPH_START: Start phase + * @SCSIPH_DATA: Data phase + * @SCSIPH_STATUS: Status phase + */ +enum scsi_cmd_phase { + SCSIPH_START, + SCSIPH_DATA, + SCSIPH_STATUS, +}; + +/** * struct scsi_plat - stores information about SCSI controller * * @base: Controller base address |