]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
2 | The file provides the protocol to install or remove an ACPI\r | |
3 | table from a platform. \r | |
4 | \r | |
5 | Copyright (c) 2006 - 2007, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials \r | |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
13 | \r | |
14 | Module Name: AcpiTable.h\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef __ACPI_TABLE_H___\r | |
19 | #define __ACPI_TABLE_H___\r | |
20 | \r | |
21 | #define EFI_ACPI_TABLE_PROTOCOL_GUID \\r | |
22 | { 0xffe06bdd, 0x6107, 0x46a6, { 0x7b, 0xb2, 0x5a, 0x9c, 0x7e, 0xc5, 0x27, 0x5c }}\r | |
23 | \r | |
24 | \r | |
25 | typedef struct _EFI_ACPI_TABLE_PROTOCOL EFI_ACPI_TABLE_PROTOCOL;\r | |
26 | \r | |
27 | /**\r | |
28 | \r | |
29 | The InstallAcpiTable() function allows a caller to install an \r | |
30 | ACPI table. When successful, the table will be linked by the \r | |
31 | RSDT/XSDT. AcpiTableBuffer specifies the table to be installed. \r | |
32 | InstallAcpiTable() will make a copy of the table and insert the \r | |
33 | copy into the RSDT/XSDT. InstallAcpiTable() must insert the new \r | |
34 | table at the end of the RSDT/XSDT. To prevent namespace \r | |
35 | collision, ACPI tables may be created using UEFI ACPI table \r | |
36 | format. See Appendix O. On successful output, TableKey is \r | |
37 | initialized with a unique key. Its value may be used in a \r | |
38 | subsequent call to UninstallAcpiTable to remove an ACPI table. \r | |
39 | If an EFI application is running at the time of this call, the \r | |
40 | relevant EFI_CONFIGURATION_TABLE pointer to the RSDT is no \r | |
41 | longer considered valid. \r | |
42 | \r | |
43 | \r | |
44 | @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.\r | |
45 | \r | |
46 | @param AcpiTableBuffer A pointer to a buffer containing the\r | |
47 | ACPI table to be installed.\r | |
48 | \r | |
49 | @param AcpiTableBufferSize Specifies the size, in bytes, of\r | |
50 | the AcpiTableBuffer buffer.\r | |
51 | \r | |
52 | \r | |
53 | @param TableKey Returns a key to refer to the ACPI table.\r | |
54 | \r | |
55 | @retval EFI_SUCCESS The table was successfully inserted\r | |
56 | \r | |
57 | @retval EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL,\r | |
58 | TableKey is NULL, or\r | |
59 | AcpiTableBufferSize and the size\r | |
60 | field embedded in the ACPI table\r | |
61 | pointed to by AcpiTableBuffer\r | |
62 | are not in sync.\r | |
63 | \r | |
64 | @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to\r | |
65 | complete the request.\r | |
66 | \r | |
67 | **/\r | |
68 | typedef\r | |
69 | EFI_STATUS\r | |
70 | (EFIAPI *EFI_ACPI_TABLE_INSTALL_ACPI_TABLE) (\r | |
71 | IN CONST EFI_ACPI_TABLE_PROTOCOL *This,\r | |
72 | IN CONST VOID *AcpiTableBuffer,\r | |
73 | IN CONST UINTN AcpiTableBufferSize,\r | |
74 | OUT UINTN *TableKey\r | |
75 | );\r | |
76 | \r | |
77 | \r | |
78 | /**\r | |
79 | \r | |
80 | The UninstallAcpiTable() function allows a caller to remove an\r | |
81 | ACPI table. The routine will remove its reference from the\r | |
82 | RSDT/XSDT. A table is referenced by the TableKey parameter\r | |
83 | returned from a prior call to InstallAcpiTable(). If an EFI\r | |
84 | application is running at the time of this call, the relevant\r | |
85 | EFI_CONFIGURATION_TABLE pointer to the RSDT is no longer\r | |
86 | considered valid.\r | |
87 | \r | |
88 | @param This A pointer to a EFI_ACPI_TABLE_PROTOCOL.\r | |
89 | \r | |
90 | @param TableKey Specifies the table to uninstall. The key was\r | |
91 | returned from InstallAcpiTable().\r | |
92 | \r | |
93 | @retval EFI_SUCCESS The table was successfully inserted\r | |
94 | \r | |
95 | @retval EFI_NOT_FOUND TableKey does not refer to a valid key\r | |
96 | for a table entry.\r | |
97 | \r | |
98 | @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to\r | |
99 | complete the request.\r | |
100 | \r | |
101 | **/\r | |
102 | typedef\r | |
103 | EFI_STATUS\r | |
104 | (EFIAPI *EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE) (\r | |
105 | IN CONST EFI_ACPI_TABLE_PROTOCOL *This,\r | |
106 | IN CONST UINTN TableKey\r | |
107 | );\r | |
108 | \r | |
109 | /**\r | |
110 | The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component\r | |
111 | to install and uninstall ACPI tables from a platform.\r | |
112 | \r | |
113 | \r | |
114 | @param InstallAcpiTable Installs an ACPI table into the\r | |
115 | system.\r | |
116 | \r | |
117 | @param UninstallAcpiTable Removes a previously installed ACPI\r | |
118 | table from the system.\r | |
119 | \r | |
120 | **/ \r | |
121 | struct _EFI_ACPI_TABLE_PROTOCOL {\r | |
122 | EFI_ACPI_TABLE_INSTALL_ACPI_TABLE InstallAcpiTable;\r | |
123 | EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE UninstallAcpiTable;\r | |
124 | };\r | |
125 | \r | |
126 | extern EFI_GUID gEfiAcpiTableProtocolGuid;\r | |
127 | \r | |
128 | #endif\r | |
129 | \r |