iPXE
AcpiTable.h
Go to the documentation of this file.
1/** @file
2 The file provides the protocol to install or remove an ACPI
3 table from a platform.
4
5 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 @par Revision Reference:
9 This Protocol was introduced in UEFI Specification 2.3.
10
11**/
12
13#ifndef __ACPI_TABLE_H___
14#define __ACPI_TABLE_H___
15
16FILE_LICENCE ( BSD2_PATENT );
17FILE_SECBOOT ( PERMITTED );
18
19#define EFI_ACPI_TABLE_PROTOCOL_GUID \
20 { 0xffe06bdd, 0x6107, 0x46a6, { 0x7b, 0xb2, 0x5a, 0x9c, 0x7e, 0xc5, 0x27, 0x5c }}
21
23
24/**
25
26 The InstallAcpiTable() function allows a caller to install an
27 ACPI table. When successful, the table will be linked by the
28 RSDT/XSDT. AcpiTableBuffer specifies the table to be installed.
29 InstallAcpiTable() will make a copy of the table and insert the
30 copy into the RSDT/XSDT. InstallAcpiTable() must insert the new
31 table at the end of the RSDT/XSDT. To prevent namespace
32 collision, ACPI tables may be created using UEFI ACPI table
33 format. If this protocol is used to install a table with a
34 signature already present in the system, the new table will not
35 replace the existing table. It is a platform implementation
36 decision to add a new table with a signature matching an
37 existing table or disallow duplicate table signatures and
38 return EFI_ACCESS_DENIED. On successful output, TableKey is
39 initialized with a unique key. Its value may be used in a
40 subsequent call to UninstallAcpiTable to remove an ACPI table.
41 If an EFI application is running at the time of this call, the
42 relevant EFI_CONFIGURATION_TABLE pointer to the RSDT is no
43 longer considered valid.
44
45
46 @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.
47
48 @param AcpiTableBuffer A pointer to a buffer containing the
49 ACPI table to be installed.
50
51 @param AcpiTableBufferSize Specifies the size, in bytes, of
52 the AcpiTableBuffer buffer.
53
54
55 @param TableKey Returns a key to refer to the ACPI table.
56
57 @retval EFI_SUCCESS The table was successfully inserted
58
59 @retval EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL,
60 TableKey is NULL, or
61 AcpiTableBufferSize and the size
62 field embedded in the ACPI table
63 pointed to by AcpiTableBuffer
64 are not in sync.
65
66 @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to
67 complete the request.
68 @retval EFI_ACCESS_DENIED The table signature matches a table already
69 present in the system and platform policy
70 does not allow duplicate tables of this type.
71
72**/
73typedef
77 IN VOID *AcpiTableBuffer,
78 IN UINTN AcpiTableBufferSize,
79 OUT UINTN *TableKey
80 );
81
82/**
83
84 The UninstallAcpiTable() function allows a caller to remove an
85 ACPI table. The routine will remove its reference from the
86 RSDT/XSDT. A table is referenced by the TableKey parameter
87 returned from a prior call to InstallAcpiTable(). If an EFI
88 application is running at the time of this call, the relevant
89 EFI_CONFIGURATION_TABLE pointer to the RSDT is no longer
90 considered valid.
91
92 @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.
93
94 @param TableKey Specifies the table to uninstall. The key was
95 returned from InstallAcpiTable().
96
97 @retval EFI_SUCCESS The table was successfully inserted
98
99 @retval EFI_NOT_FOUND TableKey does not refer to a valid key
100 for a table entry.
101
102 @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to
103 complete the request.
104
105**/
106typedef
110 IN UINTN TableKey
111 );
112
113///
114/// The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component
115/// to install and uninstall ACPI tables from a platform.
116///
121
123
124#endif
UINT64 UINTN
Unsigned value of native width.
#define EFIAPI
EFI_STATUS(EFIAPI * EFI_ACPI_TABLE_INSTALL_ACPI_TABLE)(IN EFI_ACPI_TABLE_PROTOCOL *This, IN VOID *AcpiTableBuffer, IN UINTN AcpiTableBufferSize, OUT UINTN *TableKey)
The InstallAcpiTable() function allows a caller to install an ACPI table.
Definition AcpiTable.h:75
struct _EFI_ACPI_TABLE_PROTOCOL EFI_ACPI_TABLE_PROTOCOL
Definition AcpiTable.h:22
EFI_STATUS(EFIAPI * EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE)(IN EFI_ACPI_TABLE_PROTOCOL *This, IN UINTN TableKey)
The UninstallAcpiTable() function allows a caller to remove an ACPI table.
Definition AcpiTable.h:108
EFI_GUID gEfiAcpiTableProtocolGuid
#define VOID
Undeclared type.
Definition Base.h:272
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component to install and uninstall ACPI tables...
Definition AcpiTable.h:117
EFI_ACPI_TABLE_INSTALL_ACPI_TABLE InstallAcpiTable
Definition AcpiTable.h:118
EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE UninstallAcpiTable
Definition AcpiTable.h:119