2018-06-04 03:14:51 +02:00
|
|
|
/** @file
|
2018-04-20 10:08:22 +02:00
|
|
|
Header file for AcpiView
|
|
|
|
|
|
|
|
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
|
|
|
|
This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef ACPIVIEW_H_
|
|
|
|
#define ACPIVIEW_H_
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
A macro to define the max file name length
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
#define MAX_FILE_NAME_LEN 128
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
Offset to the RSDP revision from the start of the RSDP
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
#define RSDP_REVISION_OFFSET 15
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
Offset to the RSDP length from the start of the RSDP
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
#define RSDP_LENGTH_OFFSET 20
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
The EREPORT_OPTION enum describes ACPI table Reporting options.
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
typedef enum ReportOption {
|
2018-06-05 03:20:05 +02:00
|
|
|
ReportAll, ///< Report All tables.
|
|
|
|
ReportSelected, ///< Report Selected table.
|
|
|
|
ReportTableList, ///< Report List of tables.
|
|
|
|
ReportDumpBinFile, ///< Dump selected table to a file.
|
|
|
|
ReportMax,
|
2018-04-20 10:08:22 +02:00
|
|
|
} EREPORT_OPTION;
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function resets the ACPI table error counter to Zero.
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
VOID
|
|
|
|
ResetErrorCount (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function returns the ACPI table error count.
|
2018-04-20 10:08:22 +02:00
|
|
|
|
|
|
|
@retval Returns the count of errors detected in the ACPI tables.
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
UINT32
|
|
|
|
GetErrorCount (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function resets the ACPI table warning counter to Zero.
|
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
VOID
|
|
|
|
ResetWarningCount (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function returns the ACPI table warning count.
|
2018-04-20 10:08:22 +02:00
|
|
|
|
|
|
|
@retval Returns the count of warning detected in the ACPI tables.
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
UINT32
|
|
|
|
GetWarningCount (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function returns the colour highlighting status.
|
2018-04-20 10:08:22 +02:00
|
|
|
|
|
|
|
@retval TRUE if colour highlighting is enabled.
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
BOOLEAN
|
|
|
|
GetColourHighlighting (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function sets the colour highlighting status.
|
|
|
|
|
|
|
|
@param Highlight The Highlight status.
|
2018-04-20 10:08:22 +02:00
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
VOID
|
|
|
|
SetColourHighlighting (
|
|
|
|
BOOLEAN Highlight
|
|
|
|
);
|
|
|
|
|
2018-06-04 03:14:51 +02:00
|
|
|
/**
|
|
|
|
This function processes the table reporting options for the ACPI table.
|
2018-04-20 10:08:22 +02:00
|
|
|
|
|
|
|
@param [in] Signature The ACPI table Signature.
|
|
|
|
@param [in] TablePtr Pointer to the ACPI table data.
|
|
|
|
@param [in] Length The length fo the ACPI table.
|
|
|
|
|
|
|
|
@retval Returns TRUE if the ACPI table should be traced.
|
2018-06-04 03:14:51 +02:00
|
|
|
**/
|
2018-04-20 10:08:22 +02:00
|
|
|
BOOLEAN
|
|
|
|
ProcessTableReportOptions (
|
|
|
|
IN CONST UINT32 Signature,
|
|
|
|
IN CONST UINT8* TablePtr,
|
|
|
|
IN CONST UINT32 Length
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif // ACPIVIEW_H_
|