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 
16 FILE_LICENCE ( BSD2_PATENT );
17 
18 #define EFI_ACPI_TABLE_PROTOCOL_GUID \
19  { 0xffe06bdd, 0x6107, 0x46a6, { 0x7b, 0xb2, 0x5a, 0x9c, 0x7e, 0xc5, 0x27, 0x5c }}
20 
22 
23 /**
24 
25  The InstallAcpiTable() function allows a caller to install an
26  ACPI table. When successful, the table will be linked by the
27  RSDT/XSDT. AcpiTableBuffer specifies the table to be installed.
28  InstallAcpiTable() will make a copy of the table and insert the
29  copy into the RSDT/XSDT. InstallAcpiTable() must insert the new
30  table at the end of the RSDT/XSDT. To prevent namespace
31  collision, ACPI tables may be created using UEFI ACPI table
32  format. If this protocol is used to install a table with a
33  signature already present in the system, the new table will not
34  replace the existing table. It is a platform implementation
35  decision to add a new table with a signature matching an
36  existing table or disallow duplicate table signatures and
37  return EFI_ACCESS_DENIED. On successful output, TableKey is
38  initialized with a unique key. Its value may be used in a
39  subsequent call to UninstallAcpiTable to remove an ACPI table.
40  If an EFI application is running at the time of this call, the
41  relevant EFI_CONFIGURATION_TABLE pointer to the RSDT is no
42  longer considered valid.
43 
44 
45  @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.
46 
47  @param AcpiTableBuffer A pointer to a buffer containing the
48  ACPI table to be installed.
49 
50  @param AcpiTableBufferSize Specifies the size, in bytes, of
51  the AcpiTableBuffer buffer.
52 
53 
54  @param TableKey Returns a key to refer to the ACPI table.
55 
56  @retval EFI_SUCCESS The table was successfully inserted
57 
58  @retval EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL,
59  TableKey is NULL, or
60  AcpiTableBufferSize and the size
61  field embedded in the ACPI table
62  pointed to by AcpiTableBuffer
63  are not in sync.
64 
65  @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to
66  complete the request.
67  @retval EFI_ACCESS_DENIED The table signature matches a table already
68  present in the system and platform policy
69  does not allow duplicate tables of this type.
70 
71 **/
72 typedef
76  IN VOID *AcpiTableBuffer,
77  IN UINTN AcpiTableBufferSize,
78  OUT UINTN *TableKey
79  );
80 
81 /**
82 
83  The UninstallAcpiTable() function allows a caller to remove an
84  ACPI table. The routine will remove its reference from the
85  RSDT/XSDT. A table is referenced by the TableKey parameter
86  returned from a prior call to InstallAcpiTable(). If an EFI
87  application is running at the time of this call, the relevant
88  EFI_CONFIGURATION_TABLE pointer to the RSDT is no longer
89  considered valid.
90 
91  @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.
92 
93  @param TableKey Specifies the table to uninstall. The key was
94  returned from InstallAcpiTable().
95 
96  @retval EFI_SUCCESS The table was successfully inserted
97 
98  @retval EFI_NOT_FOUND TableKey does not refer to a valid key
99  for a table entry.
100 
101  @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to
102  complete the request.
103 
104 **/
105 typedef
109  IN UINTN TableKey
110  );
111 
112 ///
113 /// The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component
114 /// to install and uninstall ACPI tables from a platform.
115 ///
119 };
120 
122 
123 #endif
The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component to install and uninstall ACPI tables...
Definition: AcpiTable.h:116
EFI_ACPI_TABLE_INSTALL_ACPI_TABLE InstallAcpiTable
Definition: AcpiTable.h:117
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
EFI_GUID gEfiAcpiTableProtocolGuid
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:74
EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE UninstallAcpiTable
Definition: AcpiTable.h:118
#define OUT
Definition: mlx_utils.h:29
FILE_LICENCE(BSD2_PATENT)
#define EFIAPI
UINT64 UINTN
Unsigned value of native width.
#define VOID
Undeclared type.
Definition: Base.h:271
#define IN
Definition: mlx_utils.h:28
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
Definition: UefiBaseType.h:31
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:107