-/**\r
+/** @file\r
Header file for AcpiView\r
\r
- Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
**/\r
\r
#ifndef ACPIVIEW_H_\r
#define ACPIVIEW_H_\r
\r
-/** A macro to define the max file name length\r
-*/\r
-#define MAX_FILE_NAME_LEN 128\r
-\r
-/** Offset to the RSDP revision from the start of the RSDP\r
-*/\r
-#define RSDP_REVISION_OFFSET 15\r
-\r
-/** Offset to the RSDP length from the start of the RSDP\r
-*/\r
-#define RSDP_LENGTH_OFFSET 20\r
-\r
-/** The EREPORT_OPTION enum describes ACPI table Reporting options.\r
-*/\r
-typedef enum ReportOption {\r
- EREPORT_ALL, ///< Report All tables.\r
- EREPORT_SELECTED, ///< Report Selected table.\r
- EREPORT_TABLE_LIST, ///< Report List of tables.\r
- EREPORT_DUMP_BIN_FILE, ///< Dump selected table to a file.\r
- EREPORT_MAX\r
-} EREPORT_OPTION;\r
-\r
-/** This function resets the ACPI table error counter to Zero.\r
-*/\r
+/**\r
+ A macro to define the max file name length\r
+**/\r
+#define MAX_FILE_NAME_LEN 128\r
+\r
+/**\r
+ Offset to the RSDP revision from the start of the RSDP\r
+**/\r
+#define RSDP_REVISION_OFFSET 15\r
+\r
+/**\r
+ Offset to the RSDP length from the start of the RSDP\r
+**/\r
+#define RSDP_LENGTH_OFFSET 20\r
+\r
+/**\r
+ This function resets the ACPI table error counter to Zero.\r
+**/\r
VOID\r
ResetErrorCount (\r
VOID\r
);\r
\r
-/** This function returns the ACPI table error count.\r
+/**\r
+ This function returns the ACPI table error count.\r
\r
@retval Returns the count of errors detected in the ACPI tables.\r
-*/\r
+**/\r
UINT32\r
GetErrorCount (\r
VOID\r
);\r
\r
-/** This function resets the ACPI table warning counter to Zero.\r
-*/\r
+/**\r
+ This function resets the ACPI table warning counter to Zero.\r
+**/\r
VOID\r
ResetWarningCount (\r
VOID\r
);\r
\r
-/** This function returns the ACPI table warning count.\r
+/**\r
+ This function returns the ACPI table warning count.\r
\r
@retval Returns the count of warning detected in the ACPI tables.\r
-*/\r
+**/\r
UINT32\r
GetWarningCount (\r
VOID\r
);\r
\r
-/** This function returns the colour highlighting status.\r
-\r
- @retval TRUE if colour highlighting is enabled.\r
-*/\r
-BOOLEAN\r
-GetColourHighlighting (\r
- VOID\r
- );\r
-\r
-/** This function sets the colour highlighting status.\r
-\r
-*/\r
-VOID\r
-SetColourHighlighting (\r
- BOOLEAN Highlight\r
- );\r
-\r
-/** This function processes the table reporting options for the ACPI table.\r
+/**\r
+ This function processes the table reporting options for the ACPI table.\r
\r
@param [in] Signature The ACPI table Signature.\r
@param [in] TablePtr Pointer to the ACPI table data.\r
- @param [in] Length The length fo the ACPI table.\r
+ @param [in] Length The length of the ACPI table.\r
\r
@retval Returns TRUE if the ACPI table should be traced.\r
-*/\r
+**/\r
BOOLEAN\r
ProcessTableReportOptions (\r
IN CONST UINT32 Signature,\r
- IN CONST UINT8* TablePtr,\r
+ IN CONST UINT8 *TablePtr,\r
IN CONST UINT32 Length\r
);\r
\r
+/**\r
+ This function iterates the configuration table entries in the\r
+ system table, retrieves the RSDP pointer and starts parsing the ACPI tables.\r
+\r
+ @param [in] SystemTable Pointer to the EFI system table.\r
+\r
+ @retval EFI_NOT_FOUND The RSDP pointer was not found.\r
+ @retval EFI_UNSUPPORTED The RSDP version was less than 2.\r
+ @retval EFI_SUCCESS The command was successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+AcpiView (\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
+ );\r
+\r
#endif // ACPIVIEW_H_\r