]>
Commit | Line | Data |
---|---|---|
e18ac66d TP |
1 | /** @file\r |
2 | Header file for 'acpiview' configuration.\r | |
3 | \r | |
4 | Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | **/\r | |
7 | \r | |
8 | #ifndef ACPI_VIEW_CONFIG_H_\r | |
9 | #define ACPI_VIEW_CONFIG_H_\r | |
10 | \r | |
11 | /**\r | |
12 | This function returns the colour highlighting status.\r | |
13 | \r | |
14 | @retval TRUE Colour highlighting is enabled.\r | |
15 | **/\r | |
16 | BOOLEAN\r | |
17 | EFIAPI\r | |
18 | GetColourHighlighting (\r | |
19 | VOID\r | |
20 | );\r | |
21 | \r | |
22 | /**\r | |
23 | This function sets the colour highlighting status.\r | |
24 | \r | |
25 | @param [in] Highlight The highlight status.\r | |
26 | **/\r | |
27 | VOID\r | |
28 | EFIAPI\r | |
29 | SetColourHighlighting (\r | |
47d20b54 | 30 | BOOLEAN Highlight\r |
e18ac66d TP |
31 | );\r |
32 | \r | |
33 | /**\r | |
34 | This function returns the consistency checking status.\r | |
35 | \r | |
36 | @retval TRUE Consistency checking is enabled.\r | |
37 | **/\r | |
38 | BOOLEAN\r | |
39 | EFIAPI\r | |
40 | GetConsistencyChecking (\r | |
41 | VOID\r | |
42 | );\r | |
43 | \r | |
44 | /**\r | |
45 | This function sets the consistency checking status.\r | |
46 | \r | |
47 | @param [in] ConsistencyChecking The consistency checking status.\r | |
48 | **/\r | |
49 | VOID\r | |
50 | EFIAPI\r | |
51 | SetConsistencyChecking (\r | |
47d20b54 | 52 | BOOLEAN ConsistencyChecking\r |
e18ac66d TP |
53 | );\r |
54 | \r | |
55 | /**\r | |
56 | This function returns the ACPI table requirements validation flag.\r | |
57 | \r | |
58 | @retval TRUE Check for mandatory table presence should be performed.\r | |
59 | **/\r | |
60 | BOOLEAN\r | |
61 | EFIAPI\r | |
62 | GetMandatoryTableValidate (\r | |
63 | VOID\r | |
64 | );\r | |
65 | \r | |
66 | /**\r | |
67 | This function sets the ACPI table requirements validation flag.\r | |
68 | \r | |
69 | @param [in] Validate Enable/Disable ACPI table requirements validation.\r | |
70 | **/\r | |
71 | VOID\r | |
72 | EFIAPI\r | |
73 | SetMandatoryTableValidate (\r | |
47d20b54 | 74 | BOOLEAN Validate\r |
e18ac66d TP |
75 | );\r |
76 | \r | |
77 | /**\r | |
78 | This function returns the identifier of specification to validate ACPI table\r | |
79 | requirements against.\r | |
80 | \r | |
81 | @return ID of specification listing mandatory tables.\r | |
82 | **/\r | |
83 | UINTN\r | |
84 | EFIAPI\r | |
85 | GetMandatoryTableSpec (\r | |
86 | VOID\r | |
87 | );\r | |
88 | \r | |
89 | /**\r | |
90 | This function sets the identifier of specification to validate ACPI table\r | |
91 | requirements against.\r | |
92 | \r | |
93 | @param [in] Spec ID of specification listing mandatory tables.\r | |
94 | **/\r | |
95 | VOID\r | |
96 | EFIAPI\r | |
97 | SetMandatoryTableSpec (\r | |
47d20b54 | 98 | UINTN Spec\r |
e18ac66d TP |
99 | );\r |
100 | \r | |
101 | /**\r | |
102 | The EREPORT_OPTION enum describes ACPI table Reporting options.\r | |
103 | **/\r | |
104 | typedef enum {\r | |
105 | ReportAll, ///< Report All tables.\r | |
106 | ReportSelected, ///< Report Selected table.\r | |
107 | ReportTableList, ///< Report List of tables.\r | |
108 | ReportDumpBinFile, ///< Dump selected table to a file.\r | |
109 | ReportMax,\r | |
110 | } EREPORT_OPTION;\r | |
111 | \r | |
112 | /**\r | |
113 | This function returns the report options.\r | |
114 | \r | |
115 | @return The current report option.\r | |
116 | **/\r | |
117 | EREPORT_OPTION\r | |
118 | EFIAPI\r | |
119 | GetReportOption (\r | |
120 | VOID\r | |
121 | );\r | |
122 | \r | |
123 | /**\r | |
124 | This function sets the report options.\r | |
125 | \r | |
126 | @param [in] ReportType The report option to set.\r | |
127 | **/\r | |
128 | VOID\r | |
129 | EFIAPI\r | |
130 | SetReportOption (\r | |
47d20b54 | 131 | EREPORT_OPTION ReportType\r |
e18ac66d TP |
132 | );\r |
133 | \r | |
134 | /**\r | |
135 | A structure holding the user selection detailing which\r | |
136 | ACPI table is to be examined by the AcpiView code.\r | |
137 | **/\r | |
138 | typedef struct {\r | |
47d20b54 MK |
139 | UINT32 Type; ///< 32bit signature of the selected ACPI table.\r |
140 | CONST CHAR16 *Name; ///< User friendly name of the selected ACPI table.\r | |
141 | BOOLEAN Found; ///< The selected table has been found in the system.\r | |
e18ac66d TP |
142 | } SELECTED_ACPI_TABLE;\r |
143 | \r | |
144 | /**\r | |
145 | This function returns the selected ACPI table.\r | |
146 | \r | |
147 | @param [out] SelectedAcpiTable Pointer that will contain the returned struct.\r | |
148 | **/\r | |
149 | VOID\r | |
150 | EFIAPI\r | |
151 | GetSelectedAcpiTable (\r | |
47d20b54 | 152 | OUT SELECTED_ACPI_TABLE **SelectedAcpiTable\r |
e18ac66d TP |
153 | );\r |
154 | \r | |
155 | /**\r | |
156 | This function selects an ACPI table in current context.\r | |
157 | The string name of the table is converted into UINT32\r | |
158 | table signature.\r | |
159 | \r | |
160 | @param [in] TableName The name of the ACPI table to select.\r | |
161 | **/\r | |
162 | VOID\r | |
163 | EFIAPI\r | |
164 | SelectAcpiTable (\r | |
47d20b54 | 165 | CONST CHAR16 *TableName\r |
e18ac66d TP |
166 | );\r |
167 | \r | |
168 | /**\r | |
169 | Reset the AcpiView user configuration to defaults.\r | |
170 | **/\r | |
171 | VOID\r | |
172 | EFIAPI\r | |
173 | AcpiConfigSetDefaults (\r | |
174 | VOID\r | |
175 | );\r | |
176 | \r | |
177 | #endif // ACPI_VIEW_CONFIG_H_\r |