/** @file\r
Header file for AcpiView\r
\r
- Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
+ Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
**/\r
\r
/**\r
A macro to define the max file name length\r
**/\r
-#define MAX_FILE_NAME_LEN 128\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
+#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
- The EREPORT_OPTION enum describes ACPI table Reporting options.\r
-**/\r
-typedef enum ReportOption {\r
- ReportAll, ///< Report All tables.\r
- ReportSelected, ///< Report Selected table.\r
- ReportTableList, ///< Report List of tables.\r
- ReportDumpBinFile, ///< Dump selected table to a file.\r
- ReportMax,\r
-} EREPORT_OPTION;\r
+#define RSDP_LENGTH_OFFSET 20\r
\r
/**\r
This function resets the ACPI table error counter to Zero.\r
VOID\r
);\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
-/**\r
- This function sets the colour highlighting status.\r
-\r
- @param Highlight The Highlight status.\r
-\r
-**/\r
-VOID\r
-SetColourHighlighting (\r
- BOOLEAN Highlight\r
- );\r
-\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
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