aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-01 09:02:46 -0700
committerSimon Glass <sjg@chromium.org>2022-01-25 11:44:36 -0700
commitfb746fdec6d58eacd7d9323eda7ccbde9419a41e (patch)
tree840af67c895fc5116de3e1568b03141c85408151 /include
parent383bf1bc9ee21c649d04a03a19eedbffa84b7237 (diff)
downloadu-boot-fb746fdec6d58eacd7d9323eda7ccbde9419a41e.zip
u-boot-fb746fdec6d58eacd7d9323eda7ccbde9419a41e.tar.gz
u-boot-fb746fdec6d58eacd7d9323eda7ccbde9419a41e.tar.bz2
acpi: Add a table start
It is useful to record the start of an ACPI table so that offsets from that point can be easily calculated. Add this to the context and set it before calling the writer method. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/acpi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dm/acpi.h b/include/dm/acpi.h
index 0fa239e..a2da57f 100644
--- a/include/dm/acpi.h
+++ b/include/dm/acpi.h
@@ -43,6 +43,9 @@ enum acpi_dump_option {
*
* @base: Base address of ACPI tables
* @current: Current address for writing
+ * @tab_start: Address of start of the table being written. This is set up
+ * before the writer or driver method is called. It must not be changed by the
+ * method
* @rsdp: Pointer to the Root System Description Pointer, typically used when
* adding a new table. The RSDP holds pointers to the RSDT and XSDT.
* @rsdt: Pointer to the Root System Description Table
@@ -56,6 +59,7 @@ enum acpi_dump_option {
struct acpi_ctx {
void *base;
void *current;
+ void *tab_start;
struct acpi_rsdp *rsdp;
struct acpi_rsdt *rsdt;
struct acpi_xsdt *xsdt;