TianoCore EDK2
master
Loading...
Searching...
No Matches
EntryPoint.c
Go to the documentation of this file.
1
10
#include <
Library/DebugLib.h
>
// ASSERT_EFI_ERROR()
11
#include <
Library/UefiBootServicesTableLib.h
>
// gBS
12
#include <
Protocol/AcpiTable.h
>
// EFI_ACPI_TABLE_PROTOCOL
13
14
#include "
AcpiPlatform.h
"
15
16
STATIC
17
EFI_ACPI_TABLE_PROTOCOL
*
18
FindAcpiTableProtocol
(
19
VOID
20
)
21
{
22
EFI_STATUS
Status;
23
EFI_ACPI_TABLE_PROTOCOL
*AcpiTable;
24
25
Status =
gBS
->LocateProtocol (
26
&gEfiAcpiTableProtocolGuid,
27
NULL
,
28
(VOID **)&AcpiTable
29
);
30
ASSERT_EFI_ERROR
(Status);
31
return
AcpiTable;
32
}
33
34
EFI_STATUS
35
EFIAPI
36
AcpiPlatformEntryPoint
(
37
IN
EFI_HANDLE
ImageHandle,
38
IN
EFI_SYSTEM_TABLE
*SystemTable
39
)
40
{
41
return
InstallAcpiTables
(FindAcpiTableProtocol ());
42
}
FindAcpiTableProtocol
STATIC EFI_ACPI_TABLE_PROTOCOL * FindAcpiTableProtocol(VOID)
Definition:
CloudHvAcpi.c:25
AcpiPlatformEntryPoint
EFI_STATUS EFIAPI AcpiPlatformEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition:
AcpiPlatform.c:159
NULL
#define NULL
Definition:
Base.h:319
STATIC
#define STATIC
Definition:
Base.h:264
IN
#define IN
Definition:
Base.h:279
DebugLib.h
ASSERT_EFI_ERROR
#define ASSERT_EFI_ERROR(StatusParameter)
Definition:
DebugLib.h:462
AcpiTable.h
InstallAcpiTables
EFI_STATUS EFIAPI InstallAcpiTables(IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable)
Definition:
AcpiPlatform.c:30
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
UefiBootServicesTableLib.h
gBS
EFI_BOOT_SERVICES * gBS
Definition:
UefiBootServicesTableLib.c:17
AcpiPlatform.h
_EFI_ACPI_TABLE_PROTOCOL
Definition:
AcpiTable.h:114
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
OvmfPkg
XenAcpiPlatformDxe
EntryPoint.c
Generated on Fri Nov 15 2024 18:01:20 for TianoCore EDK2 by
1.9.6