]>
Commit | Line | Data |
---|---|---|
a6eaba4d | 1 | /** @file\r |
ee4dc24f RN |
2 | Header file for AcpiView\r |
3 | \r | |
f73843d5 | 4 | Copyright (c) 2016 - 2019, ARM Limited. All rights reserved.\r |
56ba3746 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
ee4dc24f RN |
6 | **/\r |
7 | \r | |
8 | #ifndef ACPIVIEW_H_\r | |
9 | #define ACPIVIEW_H_\r | |
10 | \r | |
a6eaba4d DB |
11 | /**\r |
12 | A macro to define the max file name length\r | |
13 | **/\r | |
ee4dc24f RN |
14 | #define MAX_FILE_NAME_LEN 128\r |
15 | \r | |
a6eaba4d DB |
16 | /**\r |
17 | Offset to the RSDP revision from the start of the RSDP\r | |
18 | **/\r | |
ee4dc24f RN |
19 | #define RSDP_REVISION_OFFSET 15\r |
20 | \r | |
a6eaba4d DB |
21 | /**\r |
22 | Offset to the RSDP length from the start of the RSDP\r | |
23 | **/\r | |
ee4dc24f RN |
24 | #define RSDP_LENGTH_OFFSET 20\r |
25 | \r | |
a6eaba4d DB |
26 | /**\r |
27 | The EREPORT_OPTION enum describes ACPI table Reporting options.\r | |
28 | **/\r | |
ee4dc24f | 29 | typedef enum ReportOption {\r |
f75c7478 DB |
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 | |
ee4dc24f RN |
35 | } EREPORT_OPTION;\r |
36 | \r | |
a6eaba4d DB |
37 | /**\r |
38 | This function resets the ACPI table error counter to Zero.\r | |
39 | **/\r | |
ee4dc24f RN |
40 | VOID\r |
41 | ResetErrorCount (\r | |
42 | VOID\r | |
43 | );\r | |
44 | \r | |
a6eaba4d DB |
45 | /**\r |
46 | This function returns the ACPI table error count.\r | |
ee4dc24f RN |
47 | \r |
48 | @retval Returns the count of errors detected in the ACPI tables.\r | |
a6eaba4d | 49 | **/\r |
ee4dc24f RN |
50 | UINT32\r |
51 | GetErrorCount (\r | |
52 | VOID\r | |
53 | );\r | |
54 | \r | |
a6eaba4d DB |
55 | /**\r |
56 | This function resets the ACPI table warning counter to Zero.\r | |
57 | **/\r | |
ee4dc24f RN |
58 | VOID\r |
59 | ResetWarningCount (\r | |
60 | VOID\r | |
61 | );\r | |
62 | \r | |
a6eaba4d DB |
63 | /**\r |
64 | This function returns the ACPI table warning count.\r | |
ee4dc24f RN |
65 | \r |
66 | @retval Returns the count of warning detected in the ACPI tables.\r | |
a6eaba4d | 67 | **/\r |
ee4dc24f RN |
68 | UINT32\r |
69 | GetWarningCount (\r | |
70 | VOID\r | |
71 | );\r | |
72 | \r | |
a6eaba4d DB |
73 | /**\r |
74 | This function returns the colour highlighting status.\r | |
ee4dc24f RN |
75 | \r |
76 | @retval TRUE if colour highlighting is enabled.\r | |
a6eaba4d | 77 | **/\r |
ee4dc24f RN |
78 | BOOLEAN\r |
79 | GetColourHighlighting (\r | |
80 | VOID\r | |
81 | );\r | |
82 | \r | |
a6eaba4d DB |
83 | /**\r |
84 | This function sets the colour highlighting status.\r | |
85 | \r | |
86 | @param Highlight The Highlight status.\r | |
ee4dc24f | 87 | \r |
a6eaba4d | 88 | **/\r |
ee4dc24f RN |
89 | VOID\r |
90 | SetColourHighlighting (\r | |
91 | BOOLEAN Highlight\r | |
92 | );\r | |
93 | \r | |
f73843d5 KK |
94 | /**\r |
95 | This function returns the consistency checking status.\r | |
96 | \r | |
97 | @retval TRUE if consistency checking is enabled.\r | |
98 | **/\r | |
99 | BOOLEAN\r | |
100 | GetConsistencyChecking (\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 | |
110 | VOID\r | |
111 | SetConsistencyChecking (\r | |
112 | BOOLEAN ConsistencyChecking\r | |
113 | );\r | |
114 | \r | |
a6eaba4d DB |
115 | /**\r |
116 | This function processes the table reporting options for the ACPI table.\r | |
ee4dc24f RN |
117 | \r |
118 | @param [in] Signature The ACPI table Signature.\r | |
119 | @param [in] TablePtr Pointer to the ACPI table data.\r | |
120 | @param [in] Length The length fo the ACPI table.\r | |
121 | \r | |
122 | @retval Returns TRUE if the ACPI table should be traced.\r | |
a6eaba4d | 123 | **/\r |
ee4dc24f RN |
124 | BOOLEAN\r |
125 | ProcessTableReportOptions (\r | |
126 | IN CONST UINT32 Signature,\r | |
127 | IN CONST UINT8* TablePtr,\r | |
128 | IN CONST UINT32 Length\r | |
129 | );\r | |
130 | \r | |
131 | #endif // ACPIVIEW_H_\r |