aboutsummaryrefslogtreecommitdiff
path: root/include/acpi/acpi_table.h
diff options
context:
space:
mode:
authorSimon Glass2023-05-04 16:54:58 -0600
committerBin Meng2023-05-11 10:25:29 +0800
commit37bf44073bf2a51f25d82856d51ae16bc8fd8f76 (patch)
tree01cb02c82a508168f26583c5d17602e92601b6bf /include/acpi/acpi_table.h
parent0992a90daa80a17f9e7e33a56fd3f9660ee84c97 (diff)
acpi: Move the table-finding functions into the libary
This is useful for other features. Move the function into library code so it can be used outside just the 'acpi' command. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/acpi/acpi_table.h')
-rw-r--r--include/acpi/acpi_table.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h
index 4030d25c66a..7ed0443c821 100644
--- a/include/acpi/acpi_table.h
+++ b/include/acpi/acpi_table.h
@@ -923,6 +923,14 @@ int acpi_fill_csrt(struct acpi_ctx *ctx);
*/
ulong write_acpi_tables(ulong start);
+/**
+ * acpi_find_table() - Look up an ACPI table
+ *
+ * @sig: Signature of table (4 characters, upper case)
+ * Return: pointer to table header, or NULL if not found
+ */
+struct acpi_table_header *acpi_find_table(const char *sig);
+
#endif /* !__ACPI__*/
#include <asm/acpi_table.h>