]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h
ShellPkg: acpiview: Add -r parameter for table requirements validation
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiView.h
... / ...
CommitLineData
1/** @file\r
2 Header file for AcpiView\r
3\r
4 Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6**/\r
7\r
8#ifndef ACPIVIEW_H_\r
9#define ACPIVIEW_H_\r
10\r
11/**\r
12 A macro to define the max file name length\r
13**/\r
14#define MAX_FILE_NAME_LEN 128\r
15\r
16/**\r
17 Offset to the RSDP revision from the start of the RSDP\r
18**/\r
19#define RSDP_REVISION_OFFSET 15\r
20\r
21/**\r
22 Offset to the RSDP length from the start of the RSDP\r
23**/\r
24#define RSDP_LENGTH_OFFSET 20\r
25\r
26/**\r
27 The EREPORT_OPTION enum describes ACPI table Reporting options.\r
28**/\r
29typedef enum ReportOption {\r
30 ReportAll, ///< Report All tables.\r
31 ReportSelected, ///< Report Selected table.\r
32 ReportTableList, ///< Report List of tables.\r
33 ReportDumpBinFile, ///< Dump selected table to a file.\r
34 ReportMax,\r
35} EREPORT_OPTION;\r
36\r
37/**\r
38 This function resets the ACPI table error counter to Zero.\r
39**/\r
40VOID\r
41ResetErrorCount (\r
42 VOID\r
43 );\r
44\r
45/**\r
46 This function returns the ACPI table error count.\r
47\r
48 @retval Returns the count of errors detected in the ACPI tables.\r
49**/\r
50UINT32\r
51GetErrorCount (\r
52 VOID\r
53 );\r
54\r
55/**\r
56 This function resets the ACPI table warning counter to Zero.\r
57**/\r
58VOID\r
59ResetWarningCount (\r
60 VOID\r
61 );\r
62\r
63/**\r
64 This function returns the ACPI table warning count.\r
65\r
66 @retval Returns the count of warning detected in the ACPI tables.\r
67**/\r
68UINT32\r
69GetWarningCount (\r
70 VOID\r
71 );\r
72\r
73/**\r
74 This function returns the colour highlighting status.\r
75\r
76 @retval TRUE if colour highlighting is enabled.\r
77**/\r
78BOOLEAN\r
79GetColourHighlighting (\r
80 VOID\r
81 );\r
82\r
83/**\r
84 This function sets the colour highlighting status.\r
85\r
86 @param Highlight The Highlight status.\r
87\r
88**/\r
89VOID\r
90SetColourHighlighting (\r
91 BOOLEAN Highlight\r
92 );\r
93\r
94/**\r
95 This function returns the consistency checking status.\r
96\r
97 @retval TRUE if consistency checking is enabled.\r
98**/\r
99BOOLEAN\r
100GetConsistencyChecking (\r
101 VOID\r
102 );\r
103\r
104/**\r
105 This function sets the consistency checking status.\r
106\r
107 @param ConsistencyChecking The consistency checking status.\r
108\r
109**/\r
110VOID\r
111SetConsistencyChecking (\r
112 BOOLEAN ConsistencyChecking\r
113 );\r
114\r
115/**\r
116 This function returns the ACPI table requirements validation flag.\r
117\r
118 @retval TRUE if check for mandatory table presence should be performed.\r
119**/\r
120BOOLEAN\r
121GetMandatoryTableValidate (\r
122 VOID\r
123 );\r
124\r
125/**\r
126 This function sets the ACPI table requirements validation flag.\r
127\r
128 @param Validate Enable/Disable ACPI table requirements validation.\r
129**/\r
130VOID\r
131SetMandatoryTableValidate (\r
132 BOOLEAN Validate\r
133 );\r
134\r
135/**\r
136 This function returns the identifier of specification to validate ACPI table\r
137 requirements against.\r
138\r
139 @return ID of specification listing mandatory tables.\r
140**/\r
141UINTN\r
142GetMandatoryTableSpec (\r
143 VOID\r
144 );\r
145\r
146/**\r
147 This function sets the identifier of specification to validate ACPI table\r
148 requirements against.\r
149\r
150 @param Spec ID of specification listing mandatory tables.\r
151**/\r
152VOID\r
153SetMandatoryTableSpec (\r
154 UINTN Spec\r
155 );\r
156\r
157/**\r
158 This function processes the table reporting options for the ACPI table.\r
159\r
160 @param [in] Signature The ACPI table Signature.\r
161 @param [in] TablePtr Pointer to the ACPI table data.\r
162 @param [in] Length The length fo the ACPI table.\r
163\r
164 @retval Returns TRUE if the ACPI table should be traced.\r
165**/\r
166BOOLEAN\r
167ProcessTableReportOptions (\r
168 IN CONST UINT32 Signature,\r
169 IN CONST UINT8* TablePtr,\r
170 IN CONST UINT32 Length\r
171 );\r
172\r
173#endif // ACPIVIEW_H_\r