]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewConfig.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiViewConfig.h
CommitLineData
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
16BOOLEAN\r
17EFIAPI\r
18GetColourHighlighting (\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
27VOID\r
28EFIAPI\r
29SetColourHighlighting (\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
38BOOLEAN\r
39EFIAPI\r
40GetConsistencyChecking (\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
49VOID\r
50EFIAPI\r
51SetConsistencyChecking (\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
60BOOLEAN\r
61EFIAPI\r
62GetMandatoryTableValidate (\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
71VOID\r
72EFIAPI\r
73SetMandatoryTableValidate (\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
83UINTN\r
84EFIAPI\r
85GetMandatoryTableSpec (\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
95VOID\r
96EFIAPI\r
97SetMandatoryTableSpec (\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
104typedef 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
117EREPORT_OPTION\r
118EFIAPI\r
119GetReportOption (\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
128VOID\r
129EFIAPI\r
130SetReportOption (\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
138typedef 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
149VOID\r
150EFIAPI\r
151GetSelectedAcpiTable (\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
162VOID\r
163EFIAPI\r
164SelectAcpiTable (\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
171VOID\r
172EFIAPI\r
173AcpiConfigSetDefaults (\r
174 VOID\r
175 );\r
176\r
177#endif // ACPI_VIEW_CONFIG_H_\r