aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-01 09:03:04 -0700
committerSimon Glass <sjg@chromium.org>2022-01-25 11:44:36 -0700
commit2d7c7382969ff2a412acb409e76b2959dd715cc3 (patch)
tree937255d5f3c65de963c652d58ced6794843e3540 /include
parent9d2adca8c3e8d195fa4be5acc8c6dfe14933e826 (diff)
downloadu-boot-2d7c7382969ff2a412acb409e76b2959dd715cc3.zip
u-boot-2d7c7382969ff2a412acb409e76b2959dd715cc3.tar.gz
u-boot-2d7c7382969ff2a412acb409e76b2959dd715cc3.tar.bz2
acpi: Collect tables in the acpi_item list
At present this list is used to collect items within the DSDT and SSDT tables. It is useful for it to collect the whole tables as well, so there is a list of what was created and which write created each one. Refactor the code accordingly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/acpi.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dm/acpi.h b/include/dm/acpi.h
index 815a887..3adfe21 100644
--- a/include/dm/acpi.h
+++ b/include/dm/acpi.h
@@ -263,6 +263,20 @@ int acpi_inject_dsdt(struct acpi_ctx *ctx);
int acpi_setup_nhlt(struct acpi_ctx *ctx, struct nhlt *nhlt);
/**
+ * acpi_add_other_item() - Add a new table to the list of ACPI tables
+ *
+ * This adds an entry of type ACPIT_TYPE_OTHER
+ *
+ * @ctx: ACPI context
+ * @writer: Writer entry that generated the data
+ * @type: Table type it refers to
+ * @start: The start of the data (the end is obtained from ctx->current)
+ * @return 0 if OK, -ENOSPC if too many items, -ENOMEM if out of memory
+ */
+int acpi_add_other_item(struct acpi_ctx *ctx, const struct acpi_writer *writer,
+ void *start);
+
+/**
* acpi_dump_items() - Dump out the collected ACPI items
*
* This lists the ACPI DSDT and SSDT items generated by the various U-Boot