TianoCore EDK2
master
Loading...
Searching...
No Matches
AcpiPlatformLib.h
Go to the documentation of this file.
1
7
#ifndef ACPI_PLATFORM_LIB_H_
8
#define ACPI_PLATFORM_LIB_H_
9
10
#include <
Protocol/AcpiTable.h
>
11
#include <
Protocol/PciIo.h
>
12
13
typedef
struct
{
14
EFI_PCI_IO_PROTOCOL
*PciIo;
15
UINT64 PciAttributes;
16
}
ORIGINAL_ATTRIBUTES
;
17
18
typedef
struct
S3_CONTEXT
S3_CONTEXT
;
19
31
EFI_STATUS
32
EFIAPI
33
GetAcpiRsdpFromMemory
(
34
IN
UINTN
StartAddress,
35
IN
UINTN
EndAddress,
36
OUT
EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER
**RsdpPtr
37
);
38
55
EFI_STATUS
56
EFIAPI
57
InstallAcpiTablesFromRsdp
(
58
IN
EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol,
59
IN
EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER
*Rsdp
60
);
61
62
EFI_STATUS
63
EFIAPI
64
InstallQemuFwCfgTables
(
65
IN
EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
66
);
67
68
VOID
69
EnablePciDecoding
(
70
OUT
ORIGINAL_ATTRIBUTES
**OriginalAttributes,
71
OUT
UINTN
*Count
72
);
73
74
VOID
75
RestorePciDecoding
(
76
IN
ORIGINAL_ATTRIBUTES
*OriginalAttributes,
77
IN
UINTN
Count
78
);
79
80
EFI_STATUS
81
AllocateS3Context
(
82
OUT
S3_CONTEXT
**S3Context,
83
IN
UINTN
WritePointerCount
84
);
85
86
VOID
87
ReleaseS3Context
(
88
IN
S3_CONTEXT
*S3Context
89
);
90
91
EFI_STATUS
92
SaveCondensedWritePointerToS3Context
(
93
IN
OUT
S3_CONTEXT
*S3Context,
94
IN
UINT16 PointerItem,
95
IN
UINT8 PointerSize,
96
IN
UINT32 PointerOffset,
97
IN
UINT64 PointerValue
98
);
99
100
EFI_STATUS
101
TransferS3ContextToBootScript
(
102
IN
S3_CONTEXT
*S3Context
103
);
104
105
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
RestorePciDecoding
VOID RestorePciDecoding(IN ORIGINAL_ATTRIBUTES *OriginalAttributes, IN UINTN Count)
Definition:
PciDecoding.c:211
SaveCondensedWritePointerToS3Context
EFI_STATUS SaveCondensedWritePointerToS3Context(IN OUT S3_CONTEXT *S3Context, IN UINT16 PointerItem, IN UINT8 PointerSize, IN UINT32 PointerOffset, IN UINT64 PointerValue)
Definition:
BootScript.c:155
AllocateS3Context
EFI_STATUS AllocateS3Context(OUT S3_CONTEXT **S3Context, IN UINTN WritePointerCount)
Definition:
BootScript.c:72
EnablePciDecoding
VOID EnablePciDecoding(OUT ORIGINAL_ATTRIBUTES **OriginalAttributes, OUT UINTN *Count)
Definition:
PciDecoding.c:40
TransferS3ContextToBootScript
EFI_STATUS TransferS3ContextToBootScript(IN S3_CONTEXT *S3Context)
Definition:
BootScript.c:258
InstallAcpiTablesFromRsdp
EFI_STATUS EFIAPI InstallAcpiTablesFromRsdp(IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol, IN EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *Rsdp)
Definition:
DxeAcpiPlatformLib.c:71
GetAcpiRsdpFromMemory
EFI_STATUS EFIAPI GetAcpiRsdpFromMemory(IN UINTN StartAddress, IN UINTN EndAddress, OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **RsdpPtr)
Definition:
DxeAcpiPlatformLib.c:18
InstallQemuFwCfgTables
EFI_STATUS EFIAPI InstallQemuFwCfgTables(IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol)
Definition:
QemuFwCfgAcpi.c:1099
ReleaseS3Context
VOID ReleaseS3Context(IN S3_CONTEXT *S3Context)
Definition:
BootScript.c:114
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
AcpiTable.h
PciIo.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
_EFI_ACPI_TABLE_PROTOCOL
Definition:
AcpiTable.h:114
_EFI_PCI_IO_PROTOCOL
Definition:
PciIo.h:516
EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER
Definition:
Acpi20.h:72
ORIGINAL_ATTRIBUTES
Definition:
AcpiPlatformLib.h:13
S3_CONTEXT
Definition:
BootScript.c:35
OvmfPkg
Include
Library
AcpiPlatformLib.h
Generated on Fri Nov 15 2024 18:01:20 for TianoCore EDK2 by
1.9.6