21 0xdc2a58a6, 0x5927, 0x4776, { 0xb9, 0x95, 0xd1, 0x18, 0xa2, 0x73, 0x35, 0xa2 }
26 0x2e4f2d13, 0x6240, 0x4ed0, { 0xa4, 0x01, 0xc7, 0x23, 0xfb, 0xdc, 0x34, 0xe8 }
46 VOID *AcpiParameterBuffer;
50 AcpiParameterBuffer =
NULL;
51 AcpiParamBufferDescriptor =
NULL;
52 PrmConfigProtocol =
NULL;
68 ASSERT (AcpiParameterBuffer !=
NULL);
69 if (AcpiParameterBuffer ==
NULL) {
70 Status = EFI_OUT_OF_RESOURCES;
75 AcpiParamBufferDescriptor =
AllocateZeroPool (
sizeof (*AcpiParamBufferDescriptor));
76 ASSERT (AcpiParamBufferDescriptor !=
NULL);
77 if (AcpiParamBufferDescriptor ==
NULL) {
78 Status = EFI_OUT_OF_RESOURCES;
84 ASSERT (PrmConfigProtocol !=
NULL);
85 if (PrmConfigProtocol ==
NULL) {
86 Status = EFI_OUT_OF_RESOURCES;
93 CopyGuid (&AcpiParamBufferDescriptor->HandlerGuid, &mCheckParamBufferPrmHandlerGuid);
94 AcpiParamBufferDescriptor->AcpiParameterBufferAddress = (UINT64)(
UINTN)AcpiParameterBuffer;
104 Status =
gBS->InstallProtocolInterface (
105 &mPrmConfigProtocolHandle,
106 &gPrmConfigProtocolGuid,
108 (VOID *)PrmConfigProtocol
112 if (EFI_ERROR (Status)) {
113 if (AcpiParameterBuffer !=
NULL) {
117 if (AcpiParamBufferDescriptor !=
NULL) {
118 FreePool (AcpiParamBufferDescriptor);
121 if (PrmConfigProtocol !=
NULL) {
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
EFI_STATUS EFIAPI AcpiParameterBufferModuleConfigLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateRuntimeZeroPool(IN UINTN AllocationSize)
ACPI_PARAMETER_BUFFER_DESCRIPTOR * AcpiParameterBufferDescriptors
UINTN AcpiParameterBufferDescriptorCount