acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

Function acpi_get_rsdp_addr() is needed on all architectures which
write ACPI tables. Move the definition from the x86 include to an
architecture independent one.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt 2023-11-09 09:23:02 -08:00 committed by Tom Rini
parent a4bee0b455
commit c659ac7cca
3 changed files with 10 additions and 9 deletions

View file

@ -64,15 +64,6 @@ int acpi_write_dbg2_pci_uart(struct acpi_ctx *ctx, struct udevice *dev,
*/ */
int acpi_create_gnvs(struct acpi_global_nvs *gnvs); int acpi_create_gnvs(struct acpi_global_nvs *gnvs);
/**
* acpi_get_rsdp_addr() - get ACPI RSDP table address
*
* This routine returns the ACPI RSDP table address in the system memory.
*
* @return: ACPI RSDP table address
*/
ulong acpi_get_rsdp_addr(void);
/** /**
* arch_read_sci_irq_select() - Read the system-control interrupt number * arch_read_sci_irq_select() - Read the system-control interrupt number
* *

View file

@ -7,6 +7,7 @@
#define LOG_CATEGORY UCLASS_QFW #define LOG_CATEGORY UCLASS_QFW
#include <common.h> #include <common.h>
#include <acpi/acpi_table.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -920,6 +920,15 @@ void acpi_fill_header(struct acpi_table_header *header, char *signature);
*/ */
int acpi_fill_csrt(struct acpi_ctx *ctx); int acpi_fill_csrt(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.
*
* @return: ACPI RSDP table address
*/
ulong acpi_get_rsdp_addr(void);
/** /**
* write_acpi_tables() - Write out the ACPI tables * write_acpi_tables() - Write out the ACPI tables
* *