Skip to content

Commit 2e009e9

Browse files
ikegami-tigaw
authored andcommitted
types: add controller status shutdown type (CSTS.ST) definition
Added by NVMe revision 2.0 multiple controller shutdown enhancement. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 090130c commit 2e009e9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/nvme/types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,13 @@ enum nvme_cc {
343343
* @NVME_CSTS_SHST_SHIFT: Shift amount to get the shutdown status
344344
* @NVME_CSTS_NSSRO_SHIFT: Shift amount to get the NVM subsystem reset occurred
345345
* @NVME_CSTS_PP_SHIFT: Shift amount to get the processing paused
346+
* @NVME_CSTS_ST_SHIFT: Shift amount to get the shutdown type
346347
* @NVME_CSTS_RDY_MASK: Mask to get the ready
347348
* @NVME_CSTS_CFS_MASK: Mask to get the controller fatal status
348349
* @NVME_CSTS_SHST_MASK: Mask to get the shutdown status
349350
* @NVME_CSTS_NSSRO_MASK: Mask to get the NVM subsystem reset occurred
350351
* @NVME_CSTS_PP_MASK: Mask to get the processing paused
352+
* @NVME_CSTS_ST_MASK: Mask to get the shutdown type
351353
* @NVME_CSTS_SHST_NORMAL: Normal operation
352354
* @NVME_CSTS_SHST_OCCUR: Shutdown processing occurring
353355
* @NVME_CSTS_SHST_CMPLT: Shutdown processing complete
@@ -359,11 +361,13 @@ enum nvme_csts {
359361
NVME_CSTS_SHST_SHIFT = 2,
360362
NVME_CSTS_NSSRO_SHIFT = 4,
361363
NVME_CSTS_PP_SHIFT = 5,
364+
NVME_CSTS_ST_SHIFT = 6,
362365
NVME_CSTS_RDY_MASK = 0x1,
363366
NVME_CSTS_CFS_MASK = 0x1,
364367
NVME_CSTS_SHST_MASK = 0x3,
365368
NVME_CSTS_NSSRO_MASK = 0x1,
366369
NVME_CSTS_PP_MASK = 0x1,
370+
NVME_CSTS_ST_MASK = 0x1,
367371
NVME_CSTS_SHST_NORMAL = 0,
368372
NVME_CSTS_SHST_OCCUR = 1,
369373
NVME_CSTS_SHST_CMPLT = 2,
@@ -375,6 +379,7 @@ enum nvme_csts {
375379
#define NVME_CSTS_SHST(csts) NVME_GET(csts, CSTS_SHST)
376380
#define NVME_CSTS_NSSRO(csts) NVME_GET(csts, CSTS_NSSRO)
377381
#define NVME_CSTS_PP(csts) NVME_GET(csts, CSTS_PP)
382+
#define NVME_CSTS_ST(csts) NVME_GET(csts, CSTS_ST)
378383

379384
enum nvme_aqa {
380385
NVME_AQA_ASQS_SHIFT = 0,

0 commit comments

Comments
 (0)