]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h
ShellPkg: Display VENDOR_ID in ASCII when parsing PPTT
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiView.h
CommitLineData
a6eaba4d 1/** @file\r
ee4dc24f
RN
2 Header file for AcpiView\r
3\r
4 Copyright (c) 2016 - 2018, 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 29typedef 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
40VOID\r
41ResetErrorCount (\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
50UINT32\r
51GetErrorCount (\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
58VOID\r
59ResetWarningCount (\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
68UINT32\r
69GetWarningCount (\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
78BOOLEAN\r
79GetColourHighlighting (\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
89VOID\r
90SetColourHighlighting (\r
91 BOOLEAN Highlight\r
92 );\r
93\r
a6eaba4d
DB
94/**\r
95 This function processes the table reporting options for the ACPI table.\r
ee4dc24f
RN
96\r
97 @param [in] Signature The ACPI table Signature.\r
98 @param [in] TablePtr Pointer to the ACPI table data.\r
99 @param [in] Length The length fo the ACPI table.\r
100\r
101 @retval Returns TRUE if the ACPI table should be traced.\r
a6eaba4d 102**/\r
ee4dc24f
RN
103BOOLEAN\r
104ProcessTableReportOptions (\r
105 IN CONST UINT32 Signature,\r
106 IN CONST UINT8* TablePtr,\r
107 IN CONST UINT32 Length\r
108 );\r
109\r
110#endif // ACPIVIEW_H_\r