VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h@ 85716

Last change on this file since 85716 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1/** @file
2 Header file for AcpiView
3
4 Copyright (c) 2016 - 2019, 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**/
29typedef 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**/
40VOID
41ResetErrorCount (
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**/
50UINT32
51GetErrorCount (
52 VOID
53 );
54
55/**
56 This function resets the ACPI table warning counter to Zero.
57**/
58VOID
59ResetWarningCount (
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**/
68UINT32
69GetWarningCount (
70 VOID
71 );
72
73/**
74 This function returns the colour highlighting status.
75
76 @retval TRUE if colour highlighting is enabled.
77**/
78BOOLEAN
79GetColourHighlighting (
80 VOID
81 );
82
83/**
84 This function sets the colour highlighting status.
85
86 @param Highlight The Highlight status.
87
88**/
89VOID
90SetColourHighlighting (
91 BOOLEAN Highlight
92 );
93
94/**
95 This function returns the consistency checking status.
96
97 @retval TRUE if consistency checking is enabled.
98**/
99BOOLEAN
100GetConsistencyChecking (
101 VOID
102 );
103
104/**
105 This function sets the consistency checking status.
106
107 @param ConsistencyChecking The consistency checking status.
108
109**/
110VOID
111SetConsistencyChecking (
112 BOOLEAN ConsistencyChecking
113 );
114
115/**
116 This function processes the table reporting options for the ACPI table.
117
118 @param [in] Signature The ACPI table Signature.
119 @param [in] TablePtr Pointer to the ACPI table data.
120 @param [in] Length The length fo the ACPI table.
121
122 @retval Returns TRUE if the ACPI table should be traced.
123**/
124BOOLEAN
125ProcessTableReportOptions (
126 IN CONST UINT32 Signature,
127 IN CONST UINT8* TablePtr,
128 IN CONST UINT32 Length
129 );
130
131#endif // ACPIVIEW_H_
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette