]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: Add MpInitLibDepLib related PPI/Protocol definitions
authorMin M Xu <min.m.xu@intel.com>
Sat, 7 May 2022 01:36:19 +0000 (09:36 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 11 May 2022 08:40:53 +0000 (08:40 +0000)
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3918

MpInitLibDepLib is a set of libraries which depend on PPI/Protocol.
This patch defines the related PPI/Protocols in OvmfPkg.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
OvmfPkg/Include/Ppi/MpInitLibDep.h [new file with mode: 0644]
OvmfPkg/Include/Protocol/MpInitLibDepProtocols.h [new file with mode: 0644]
OvmfPkg/OvmfPkg.dec

diff --git a/OvmfPkg/Include/Ppi/MpInitLibDep.h b/OvmfPkg/Include/Ppi/MpInitLibDep.h
new file mode 100644 (file)
index 0000000..232ff52
--- /dev/null
@@ -0,0 +1,28 @@
+/** @file\r
+  MpInitLibDepLib PPI definitions\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef MPINITLIB_DEP_H_\r
+#define MPINITLIB_DEP_H_\r
+\r
+// {138F9CF4-F0E7-4721-8F49-F5FFECF42D40}\r
+#define EFI_PEI_MPINITLIB_MP_DEP_PPI_GUID \\r
+{ \\r
+  0x138f9cf4, 0xf0e7, 0x4721, { 0x8f, 0x49, 0xf5, 0xff, 0xec, 0xf4, 0x2d, 0x40 } \\r
+};\r
+\r
+extern EFI_GUID  gEfiPeiMpInitLibMpDepPpiGuid;\r
+\r
+// {0B590774-BC67-49F4-A7DB-E82E89E6B5D6}\r
+#define EFI_PEI_MPINITLIB_UP_DEP_PPI_GUID \\r
+{ \\r
+  0xb590774, 0xbc67, 0x49f4, { 0xa7, 0xdb, 0xe8, 0x2e, 0x89, 0xe6, 0xb5, 0xd6 } \\r
+};\r
+\r
+extern EFI_GUID  gEfiPeiMpInitLibUpDepPpiGuid;\r
+\r
+#endif\r
diff --git a/OvmfPkg/Include/Protocol/MpInitLibDepProtocols.h b/OvmfPkg/Include/Protocol/MpInitLibDepProtocols.h
new file mode 100644 (file)
index 0000000..449c8fe
--- /dev/null
@@ -0,0 +1,28 @@
+/** @file\r
+  MpInitLibDep Protocol Guid definitions\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef MPINITLIB_DEP_PROTOCOLS_H_\r
+#define MPINITLIB_DEP_PROTOCOLS_H_\r
+\r
+// {BB00A5CA-08CE-462F-A537-43C74A825CA4}\r
+#define EFI_MPINITLIB_MP_DEP_PROTOCOL_GUID \\r
+{ \\r
+  0xbb00a5ca, 0x8ce, 0x462f, { 0xa5, 0x37, 0x43, 0xc7, 0x4a, 0x82, 0x5c, 0xa4 } \\r
+};\r
+\r
+extern EFI_GUID  gEfiMpInitLibMpDepProtocolGuid;\r
+\r
+// {A9E7CEF1-5682-42CC-B123-9930973F4A9F}\r
+#define EFI_PEI_MPINITLIB_UP_DEP_PPI_GUID \\r
+{ \\r
+  0xa9e7cef1, 0x5682, 0x42cc, { 0xb1, 0x23, 0x99, 0x30, 0x97, 0x3f, 0x4a, 0x9f } \\r
+};\r
+\r
+extern EFI_GUID  gEfiMpInitLibUpDepProtocolGuid;\r
+\r
+#endif\r
index b9ca44120289e6ea89ff3955e840bcc60088a6fe..8c2048051bea2887035bee33c01036b9ca682b96 100644 (file)
   # the PEI phase, regardless of memory encryption\r
   gOvmfTpmMmioAccessiblePpiGuid         = {0x35c84ff2, 0x7bfe, 0x453d, {0x84, 0x5f, 0x68, 0x3a, 0x49, 0x2c, 0xf7, 0xb7}}\r
 \r
+  gEfiPeiMpInitLibMpDepPpiGuid          = {0x138f9cf4, 0xf0e7, 0x4721, { 0x8f, 0x49, 0xf5, 0xff, 0xec, 0xf4, 0x2d, 0x40}}\r
+  gEfiPeiMpInitLibUpDepPpiGuid          = {0xb590774, 0xbc67, 0x49f4, { 0xa7, 0xdb, 0xe8, 0x2e, 0x89, 0xe6, 0xb5, 0xd6}}\r
+\r
 [Protocols]\r
   gVirtioDeviceProtocolGuid             = {0xfa920010, 0x6785, 0x4941, {0xb6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}}\r
   gXenBusProtocolGuid                   = {0x3d3ca290, 0xb9a5, 0x11e3, {0xb7, 0x5d, 0xb8, 0xac, 0x6f, 0x7d, 0x65, 0xe6}}\r
   gEfiVgaMiniPortProtocolGuid           = {0xc7735a2f, 0x88f5, 0x4882, {0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3}}\r
   gOvmfLoadedX86LinuxKernelProtocolGuid = {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}}\r
   gQemuAcpiTableNotifyProtocolGuid      = {0x928939b2, 0x4235, 0x462f, {0x95, 0x80, 0xf6, 0xa2, 0xb2, 0xc2, 0x1a, 0x4f}}\r
+  gEfiMpInitLibMpDepProtocolGuid        = {0xbb00a5ca, 0x8ce,  0x462f, {0xa5, 0x37, 0x43, 0xc7, 0x4a, 0x82, 0x5c, 0xa4}}\r
+  gEfiMpInitLibUpDepProtocolGuid        = {0xa9e7cef1, 0x5682, 0x42cc, {0xb1, 0x23, 0x99, 0x30, 0x97, 0x3f, 0x4a, 0x9f}}\r
 \r
 [PcdsFixedAtBuild]\r
   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|0x0|UINT32|0\r