VirtualBox

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

Last change on this file since 108793 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1/** @file
2 Header file for 'acpiview' configuration.
3
4 Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6**/
7
8#ifndef ACPI_VIEW_CONFIG_H_
9#define ACPI_VIEW_CONFIG_H_
10
11/**
12 This function returns the colour highlighting status.
13
14 @retval TRUE Colour highlighting is enabled.
15**/
16BOOLEAN
17EFIAPI
18GetColourHighlighting (
19 VOID
20 );
21
22/**
23 This function sets the colour highlighting status.
24
25 @param [in] Highlight The highlight status.
26**/
27VOID
28EFIAPI
29SetColourHighlighting (
30 BOOLEAN Highlight
31 );
32
33/**
34 This function returns the consistency checking status.
35
36 @retval TRUE Consistency checking is enabled.
37**/
38BOOLEAN
39EFIAPI
40GetConsistencyChecking (
41 VOID
42 );
43
44/**
45 This function sets the consistency checking status.
46
47 @param [in] ConsistencyChecking The consistency checking status.
48**/
49VOID
50EFIAPI
51SetConsistencyChecking (
52 BOOLEAN ConsistencyChecking
53 );
54
55/**
56 This function returns the ACPI table requirements validation flag.
57
58 @retval TRUE Check for mandatory table presence should be performed.
59**/
60BOOLEAN
61EFIAPI
62GetMandatoryTableValidate (
63 VOID
64 );
65
66/**
67 This function sets the ACPI table requirements validation flag.
68
69 @param [in] Validate Enable/Disable ACPI table requirements validation.
70**/
71VOID
72EFIAPI
73SetMandatoryTableValidate (
74 BOOLEAN Validate
75 );
76
77/**
78 This function returns the identifier of specification to validate ACPI table
79 requirements against.
80
81 @return ID of specification listing mandatory tables.
82**/
83UINTN
84EFIAPI
85GetMandatoryTableSpec (
86 VOID
87 );
88
89/**
90 This function sets the identifier of specification to validate ACPI table
91 requirements against.
92
93 @param [in] Spec ID of specification listing mandatory tables.
94**/
95VOID
96EFIAPI
97SetMandatoryTableSpec (
98 UINTN Spec
99 );
100
101/**
102 The EREPORT_OPTION enum describes ACPI table Reporting options.
103**/
104typedef enum {
105 ReportAll, ///< Report All tables.
106 ReportSelected, ///< Report Selected table.
107 ReportTableList, ///< Report List of tables.
108 ReportDumpBinFile, ///< Dump selected table to a file.
109 ReportMax,
110} EREPORT_OPTION;
111
112/**
113 This function returns the report options.
114
115 @return The current report option.
116**/
117EREPORT_OPTION
118EFIAPI
119GetReportOption (
120 VOID
121 );
122
123/**
124 This function sets the report options.
125
126 @param [in] ReportType The report option to set.
127**/
128VOID
129EFIAPI
130SetReportOption (
131 EREPORT_OPTION ReportType
132 );
133
134/**
135 A structure holding the user selection detailing which
136 ACPI table is to be examined by the AcpiView code.
137**/
138typedef struct {
139 UINT32 Type; ///< 32bit signature of the selected ACPI table.
140 CONST CHAR16 *Name; ///< User friendly name of the selected ACPI table.
141 BOOLEAN Found; ///< The selected table has been found in the system.
142} SELECTED_ACPI_TABLE;
143
144/**
145 This function returns the selected ACPI table.
146
147 @param [out] SelectedAcpiTable Pointer that will contain the returned struct.
148**/
149VOID
150EFIAPI
151GetSelectedAcpiTable (
152 OUT SELECTED_ACPI_TABLE **SelectedAcpiTable
153 );
154
155/**
156 This function selects an ACPI table in current context.
157 The string name of the table is converted into UINT32
158 table signature.
159
160 @param [in] TableName The name of the ACPI table to select.
161**/
162VOID
163EFIAPI
164SelectAcpiTable (
165 CONST CHAR16 *TableName
166 );
167
168/**
169 Reset the AcpiView user configuration to defaults.
170**/
171VOID
172EFIAPI
173AcpiConfigSetDefaults (
174 VOID
175 );
176
177#endif // ACPI_VIEW_CONFIG_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