]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h
ShellPkg: Display VENDOR_ID in ASCII when parsing PPTT
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiView.h
1 /** @file
2 Header file for AcpiView
3
4 Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6 **/
7
8 #ifndef ACPIVIEW_H_
9 #define ACPIVIEW_H_
10
11 /**
12 A macro to define the max file name length
13 **/
14 #define MAX_FILE_NAME_LEN 128
15
16 /**
17 Offset to the RSDP revision from the start of the RSDP
18 **/
19 #define RSDP_REVISION_OFFSET 15
20
21 /**
22 Offset to the RSDP length from the start of the RSDP
23 **/
24 #define RSDP_LENGTH_OFFSET 20
25
26 /**
27 The EREPORT_OPTION enum describes ACPI table Reporting options.
28 **/
29 typedef enum ReportOption {
30 ReportAll, ///< Report All tables.
31 ReportSelected, ///< Report Selected table.
32 ReportTableList, ///< Report List of tables.
33 ReportDumpBinFile, ///< Dump selected table to a file.
34 ReportMax,
35 } EREPORT_OPTION;
36
37 /**
38 This function resets the ACPI table error counter to Zero.
39 **/
40 VOID
41 ResetErrorCount (
42 VOID
43 );
44
45 /**
46 This function returns the ACPI table error count.
47
48 @retval Returns the count of errors detected in the ACPI tables.
49 **/
50 UINT32
51 GetErrorCount (
52 VOID
53 );
54
55 /**
56 This function resets the ACPI table warning counter to Zero.
57 **/
58 VOID
59 ResetWarningCount (
60 VOID
61 );
62
63 /**
64 This function returns the ACPI table warning count.
65
66 @retval Returns the count of warning detected in the ACPI tables.
67 **/
68 UINT32
69 GetWarningCount (
70 VOID
71 );
72
73 /**
74 This function returns the colour highlighting status.
75
76 @retval TRUE if colour highlighting is enabled.
77 **/
78 BOOLEAN
79 GetColourHighlighting (
80 VOID
81 );
82
83 /**
84 This function sets the colour highlighting status.
85
86 @param Highlight The Highlight status.
87
88 **/
89 VOID
90 SetColourHighlighting (
91 BOOLEAN Highlight
92 );
93
94 /**
95 This function processes the table reporting options for the ACPI table.
96
97 @param [in] Signature The ACPI table Signature.
98 @param [in] TablePtr Pointer to the ACPI table data.
99 @param [in] Length The length fo the ACPI table.
100
101 @retval Returns TRUE if the ACPI table should be traced.
102 **/
103 BOOLEAN
104 ProcessTableReportOptions (
105 IN CONST UINT32 Signature,
106 IN CONST UINT8* TablePtr,
107 IN CONST UINT32 Length
108 );
109
110 #endif // ACPIVIEW_H_