]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/CcProbeLibNull/CcProbeLibNull.c
MdePkg: Add CcProbeLibNull
[mirror_edk2.git] / MdePkg / Library / CcProbeLibNull / CcProbeLibNull.c
diff --git a/MdePkg/Library/CcProbeLibNull/CcProbeLibNull.c b/MdePkg/Library/CcProbeLibNull/CcProbeLibNull.c
new file mode 100644 (file)
index 0000000..ca4111d
--- /dev/null
@@ -0,0 +1,26 @@
+/** @file\r
+\r
+  Null stub of CcProbeLib\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#include <Library/CcProbeLib.h>\r
+\r
+/**\r
+  Probe the ConfidentialComputing Guest type. See defition of\r
+  CC_GUEST_TYPE in <ConfidentialComputingGuestAttr.h>.\r
+\r
+  @return The guest type\r
+\r
+**/\r
+UINT8\r
+EFIAPI\r
+CcProbe (\r
+  VOID\r
+  )\r
+{\r
+  return CcGuestTypeNonEncrypted;\r
+}\r