]> git.proxmox.com Git - mirror_edk2.git/commitdiff
FatPkg/FatPei: Add the recognition of recovery capsule on NVME device
authorHao Wu <hao.a.wu@intel.com>
Mon, 21 May 2018 05:12:09 +0000 (13:12 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Jun 2018 01:13:12 +0000 (09:13 +0800)
The driver now can recognize the BlockIo2 PPI for NVM Express devices.
And support identifying the recovery capsule on those devices.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
FatPkg/FatPei/FatLiteApi.c
FatPkg/FatPei/FatPei.inf

index e3026571320bf1f1ce2f38c5d29c51d401dd11af..b455390610bc97b407281b5d9d3c544cdf4ce973 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT recovery PEIM entry point, Ppi Functions and FAT Api functions.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
@@ -485,6 +485,10 @@ GetRecoveryCapsuleInfo (
             CopyGuid (CapsuleType, &gRecoveryOnFatUsbDiskGuid);\r
             break;\r
 \r
+          case MSG_NVME_NAMESPACE_DP:\r
+            CopyGuid (CapsuleType, &gRecoveryOnFatNvmeDiskGuid);\r
+            break;\r
+\r
           default:\r
             break;\r
           }\r
index 273f72da2f4ef509a3d5e4c0db75af1a0a024e58..00b08df2b940d5feab84d9e57bbfc40adeffcccf 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #    Lite Fat driver only used in Pei Phase.\r
 #\r
-#  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials are licensed and made available\r
 #  under the terms and conditions of the BSD License which accompanies this\r
@@ -58,6 +58,7 @@
   gRecoveryOnFatUsbDiskGuid                   ## SOMETIMES_CONSUMES   ## UNDEFINED\r
   gRecoveryOnFatIdeDiskGuid                   ## SOMETIMES_CONSUMES   ## UNDEFINED\r
   gRecoveryOnFatFloppyDiskGuid                ## SOMETIMES_CONSUMES   ## UNDEFINED\r
+  gRecoveryOnFatNvmeDiskGuid                  ## SOMETIMES_CONSUMES   ## UNDEFINED\r
 \r
 \r
 [Ppis]\r