]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/Nvme.h
MdePkg/Nvme: Add NVME shutdown notification related macros
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Nvme.h
index 85649f0d3f55f62290ab2cde7da6fa5c7654f389..d0bd354139f040ac4b3f044281a24c7c5e9b2fc2 100644 (file)
@@ -2,6 +2,7 @@
   Definitions based on NVMe spec. version 1.1.\r
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
+  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -86,6 +87,8 @@ typedef struct {
   UINT8  Iocqes:4;   // I/O Completion Queue Entry Size\r
   UINT8  Rsvd2;\r
 } NVME_CC;\r
+#define NVME_CC_SHN_NORMAL_SHUTDOWN    1\r
+#define NVME_CC_SHN_ABRUPT_SHUTDOWN    2\r
 \r
 //\r
 // 3.1.6 Offset 1Ch: CSTS - Controller Status\r
@@ -97,7 +100,8 @@ typedef struct {
   UINT32 Nssro:1;    // NVM Subsystem Reset Occurred\r
   UINT32 Rsvd1:27;\r
 } NVME_CSTS;\r
-\r
+#define NVME_CSTS_SHST_SHUTDOWN_OCCURRING 1\r
+#define NVME_CSTS_SHST_SHUTDOWN_COMPLETED 2\r
 //\r
 // 3.1.8 Offset 24h: AQA - Admin Queue Attributes\r
 //\r