summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2024-10-23 15:19:46 +0200
committerTom Rini <trini@konsulko.com>2024-10-27 17:12:44 -0600
commit4a3fc0f525dabecaf7e84d4d9761b56c5aebf345 (patch)
treec8760a89a25752ac5e55c7efa3f3c81bf897983a /include
parentf5f7962091e453feb2e3f1bfe79dbace5e087c3e (diff)
acpi: x86: Move MADT to common code
Write MADT in common code and let the SoC fill out the body by calling acpi_fill_madt() which must be implemented at SoC level. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Simon Glass <sjg@chromium.org> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_table.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h
index 19cf0fb43ca..c356df72bae 100644
--- a/include/acpi/acpi_table.h
+++ b/include/acpi/acpi_table.h
@@ -964,6 +964,17 @@ int acpi_fill_csrt(struct acpi_ctx *ctx);
void acpi_fill_fadt(struct acpi_fadt *fadt);
/**
+ * acpi_fill_madt() - Fill out the body of the MADT
+ *
+ * Must be implemented in SoC specific code.
+ *
+ * @madt: The MADT to update
+ * @ctx: ACPI context to write MADT sub-tables to
+ * @return Pointer to the end of tables, where the next tables can be written
+ */
+void *acpi_fill_madt(struct acpi_madt *madt, struct acpi_ctx *ctx);
+
+/**
* acpi_get_rsdp_addr() - get ACPI RSDP table address
*
* This routine returns the ACPI RSDP table address in the system memory.