mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
acpi: Add an acpi command to list/dump generated ACPI items
Add a command that shows the individual blocks of data generated by each device, effectively splitting the full table into its component parts. This can be helpful for debugging. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -27,6 +27,12 @@
|
||||
|
||||
#if !defined(__ACPI__)
|
||||
|
||||
/** enum acpi_dump_option - selects what ACPI information to dump */
|
||||
enum acpi_dump_option {
|
||||
ACPI_DUMP_LIST, /* Just the list of items */
|
||||
ACPI_DUMP_CONTENTS, /* Include the binary contents also */
|
||||
};
|
||||
|
||||
/**
|
||||
* struct acpi_ctx - Context used for writing ACPI tables
|
||||
*
|
||||
@@ -171,6 +177,16 @@ int acpi_fill_ssdt(struct acpi_ctx *ctx);
|
||||
*/
|
||||
int acpi_inject_dsdt(struct acpi_ctx *ctx);
|
||||
|
||||
/**
|
||||
* acpi_dump_items() - Dump out the collected ACPI items
|
||||
*
|
||||
* This lists the ACPI DSDT and SSDT items generated by the various U-Boot
|
||||
* drivers.
|
||||
*
|
||||
* @option: Sets what should be dumpyed
|
||||
*/
|
||||
void acpi_dump_items(enum acpi_dump_option option);
|
||||
|
||||
#endif /* __ACPI__ */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user