diff options
| author | Simon Glass <[email protected]> | 2020-04-26 09:19:46 -0600 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2020-04-30 17:16:12 +0800 |
| commit | 93f7f82782cb3d2bd55215ce984887efc6cddfed (patch) | |
| tree | 6dede3cc6b74da87d67b67cffd6675de6bf03b15 /include/acpi | |
| parent | fa04cef6443eab008b99f6439ec8a3b9939253b4 (diff) | |
acpi: Add a method to write tables for a device
A device may want to write out ACPI tables to describe itself to Linux.
Add a method to permit this.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Wolfgang Wallner <[email protected]>
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/acpi_table.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 194be9aa589..a2bd929c920 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -505,6 +505,16 @@ int acpi_get_table_revision(enum acpi_tables table); */ int acpi_create_dmar(struct acpi_dmar *dmar, enum dmar_flags flags); +/** + * acpi_fill_header() - Set up a new table header + * + * This sets all fields except length, revision, checksum and aslc_revision + * + * @header: ACPI header to update + * @signature: Table signature to use (4 characters) + */ +void acpi_fill_header(struct acpi_table_header *header, char *signature); + #endif /* !__ACPI__*/ #include <asm/acpi_table.h> |
