]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h
ShellPkg/AcpiView: Refactor configuration
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiView.h
CommitLineData
a6eaba4d 1/** @file\r
ee4dc24f
RN
2 Header file for AcpiView\r
3\r
8af507c1 4 Copyright (c) 2016 - 2020, 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 This function resets the ACPI table error counter to Zero.\r
28**/\r
ee4dc24f
RN
29VOID\r
30ResetErrorCount (\r
31 VOID\r
32 );\r
33\r
a6eaba4d
DB
34/**\r
35 This function returns the ACPI table error count.\r
ee4dc24f
RN
36\r
37 @retval Returns the count of errors detected in the ACPI tables.\r
a6eaba4d 38**/\r
ee4dc24f
RN
39UINT32\r
40GetErrorCount (\r
41 VOID\r
42 );\r
43\r
a6eaba4d
DB
44/**\r
45 This function resets the ACPI table warning counter to Zero.\r
46**/\r
ee4dc24f
RN
47VOID\r
48ResetWarningCount (\r
49 VOID\r
50 );\r
51\r
a6eaba4d
DB
52/**\r
53 This function returns the ACPI table warning count.\r
ee4dc24f
RN
54\r
55 @retval Returns the count of warning detected in the ACPI tables.\r
a6eaba4d 56**/\r
ee4dc24f
RN
57UINT32\r
58GetWarningCount (\r
59 VOID\r
60 );\r
61\r
a6eaba4d
DB
62/**\r
63 This function processes the table reporting options for the ACPI table.\r
ee4dc24f
RN
64\r
65 @param [in] Signature The ACPI table Signature.\r
66 @param [in] TablePtr Pointer to the ACPI table data.\r
67 @param [in] Length The length fo the ACPI table.\r
68\r
69 @retval Returns TRUE if the ACPI table should be traced.\r
a6eaba4d 70**/\r
ee4dc24f
RN
71BOOLEAN\r
72ProcessTableReportOptions (\r
73 IN CONST UINT32 Signature,\r
74 IN CONST UINT8* TablePtr,\r
75 IN CONST UINT32 Length\r
76 );\r
77\r
78#endif // ACPIVIEW_H_\r