TianoCore EDK2 master
Loading...
Searching...
No Matches
AcpiSystemDescriptionTable.h
Go to the documentation of this file.
1
12#ifndef __ACPI_SYSTEM_DESCRIPTION_TABLE_H___
13#define __ACPI_SYSTEM_DESCRIPTION_TABLE_H___
14
15#define EFI_ACPI_SDT_PROTOCOL_GUID \
16 { 0xeb97088e, 0xcfdf, 0x49c6, { 0xbe, 0x4b, 0xd9, 0x6, 0xa5, 0xb2, 0xe, 0x86 }}
17
18typedef UINT32 EFI_ACPI_TABLE_VERSION;
19typedef VOID *EFI_ACPI_HANDLE;
20
21#define EFI_ACPI_TABLE_VERSION_NONE (1 << 0)
22#define EFI_ACPI_TABLE_VERSION_1_0B (1 << 1)
23#define EFI_ACPI_TABLE_VERSION_2_0 (1 << 2)
24#define EFI_ACPI_TABLE_VERSION_3_0 (1 << 3)
25#define EFI_ACPI_TABLE_VERSION_4_0 (1 << 4)
26#define EFI_ACPI_TABLE_VERSION_5_0 (1 << 5)
27
28typedef UINT32 EFI_ACPI_DATA_TYPE;
29#define EFI_ACPI_DATA_TYPE_NONE 0
30#define EFI_ACPI_DATA_TYPE_OPCODE 1
31#define EFI_ACPI_DATA_TYPE_NAME_STRING 2
32#define EFI_ACPI_DATA_TYPE_OP 3
33#define EFI_ACPI_DATA_TYPE_UINT 4
34#define EFI_ACPI_DATA_TYPE_STRING 5
35#define EFI_ACPI_DATA_TYPE_CHILD 6
36
37typedef struct {
38 UINT32 Signature;
39 UINT32 Length;
40 UINT8 Revision;
41 UINT8 Checksum;
42 CHAR8 OemId[6];
43 CHAR8 OemTableId[8];
44 UINT32 OemRevision;
45 UINT32 CreatorId;
46 UINT32 CreatorRevision;
48
49typedef
52 IN EFI_ACPI_SDT_HEADER *Table,
53 IN EFI_ACPI_TABLE_VERSION Version,
54 IN UINTN TableKey
55 );
56
83typedef
86 IN UINTN Index,
88 OUT EFI_ACPI_TABLE_VERSION *Version,
89 OUT UINTN *TableKey
90 );
91
106typedef
109 IN BOOLEAN Register,
110 IN EFI_ACPI_NOTIFICATION_FN Notification
111 );
112
124typedef
126(EFIAPI *EFI_ACPI_OPEN)(
127 IN VOID *Buffer,
128 OUT EFI_ACPI_HANDLE *Handle
129 );
130
140typedef
142(EFIAPI *EFI_ACPI_OPEN_SDT)(
143 IN UINTN TableKey,
144 OUT EFI_ACPI_HANDLE *Handle
145 );
146
155typedef
157(EFIAPI *EFI_ACPI_CLOSE)(
158 IN EFI_ACPI_HANDLE Handle
159 );
160
172typedef
174(EFIAPI *EFI_ACPI_GET_CHILD)(
175 IN EFI_ACPI_HANDLE ParentHandle,
176 IN OUT EFI_ACPI_HANDLE *Handle
177 );
178
192typedef
194(EFIAPI *EFI_ACPI_GET_OPTION)(
195 IN EFI_ACPI_HANDLE Handle,
196 IN UINTN Index,
197 OUT EFI_ACPI_DATA_TYPE *DataType,
198 OUT CONST VOID **Data,
199 OUT UINTN *DataSize
200 );
201
217typedef
219(EFIAPI *EFI_ACPI_SET_OPTION)(
220 IN EFI_ACPI_HANDLE Handle,
221 IN UINTN Index,
222 IN CONST VOID *Data,
223 IN UINTN DataSize
224 );
225
237typedef
239(EFIAPI *EFI_ACPI_FIND_PATH)(
240 IN EFI_ACPI_HANDLE HandleIn,
241 IN VOID *AcpiPath,
242 OUT EFI_ACPI_HANDLE *HandleOut
243 );
244
249 EFI_ACPI_TABLE_VERSION AcpiVersion;
250 EFI_ACPI_GET_ACPI_TABLE2 GetAcpiTable;
251 EFI_ACPI_REGISTER_NOTIFY RegisterNotify;
252 EFI_ACPI_OPEN Open;
253 EFI_ACPI_OPEN_SDT OpenSdt;
254 EFI_ACPI_CLOSE Close;
255 EFI_ACPI_GET_CHILD GetChild;
256 EFI_ACPI_GET_OPTION GetOption;
257 EFI_ACPI_SET_OPTION SetOption;
258 EFI_ACPI_FIND_PATH FindPath;
260
261extern EFI_GUID gEfiAcpiSdtProtocolGuid;
262
263#endif // __ACPI_SYSTEM_DESCRIPTION_TABLE_H___
UINT64 UINTN
EFI_STATUS(EFIAPI * EFI_ACPI_SET_OPTION)(IN EFI_ACPI_HANDLE Handle, IN UINTN Index, IN CONST VOID *Data, IN UINTN DataSize)
EFI_STATUS(EFIAPI * EFI_ACPI_GET_OPTION)(IN EFI_ACPI_HANDLE Handle, IN UINTN Index, OUT EFI_ACPI_DATA_TYPE *DataType, OUT CONST VOID **Data, OUT UINTN *DataSize)
EFI_STATUS(EFIAPI * EFI_ACPI_OPEN_SDT)(IN UINTN TableKey, OUT EFI_ACPI_HANDLE *Handle)
EFI_STATUS(EFIAPI * EFI_ACPI_OPEN)(IN VOID *Buffer, OUT EFI_ACPI_HANDLE *Handle)
EFI_STATUS(EFIAPI * EFI_ACPI_GET_ACPI_TABLE2)(IN UINTN Index, OUT EFI_ACPI_SDT_HEADER **Table, OUT EFI_ACPI_TABLE_VERSION *Version, OUT UINTN *TableKey)
EFI_STATUS(EFIAPI * EFI_ACPI_CLOSE)(IN EFI_ACPI_HANDLE Handle)
EFI_STATUS(EFIAPI * EFI_ACPI_GET_CHILD)(IN EFI_ACPI_HANDLE ParentHandle, IN OUT EFI_ACPI_HANDLE *Handle)
EFI_STATUS(EFIAPI * EFI_ACPI_REGISTER_NOTIFY)(IN BOOLEAN Register, IN EFI_ACPI_NOTIFICATION_FN Notification)
EFI_STATUS(EFIAPI * EFI_ACPI_NOTIFICATION_FN)(IN EFI_ACPI_SDT_HEADER *Table, IN EFI_ACPI_TABLE_VERSION Version, IN UINTN TableKey)
EFI_STATUS(EFIAPI * EFI_ACPI_FIND_PATH)(IN EFI_ACPI_HANDLE HandleIn, IN VOID *AcpiPath, OUT EFI_ACPI_HANDLE *HandleOut)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_ACPI_TABLE_VERSION AcpiVersion
Definition: Base.h:213