From 0e0b9e94595a706d86d8a9daca572da9a7de35a0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 21 Sep 2022 16:21:35 +0200 Subject: 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 --- include/scsi.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/scsi.h b/include/scsi.h index 99b00e26272..a4f99f0884b 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -187,6 +187,19 @@ struct scsi_cmd { #define SCSI_WRITE_LONG 0x3F /* Write Long (O) */ #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 * -- cgit v1.3.1