From 34846ad6baa2d2dcc020382a43c35e6dad3581ce Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Wed, 22 May 2019 11:59:23 +0200 Subject: acpigen: Add support for IndexField Add support for generating IndexField, which is similar to Field. Change-Id: If66a627e64953696b0b68488256bd5c141e4c205 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/33032 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/acpigen.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/x86/include') diff --git a/src/arch/x86/include/arch/acpigen.h b/src/arch/x86/include/arch/acpigen.h index 6114667c6c..db003fe113 100644 --- a/src/arch/x86/include/arch/acpigen.h +++ b/src/arch/x86/include/arch/acpigen.h @@ -420,6 +420,12 @@ void acpigen_write_opregion(struct opregion *opreg); */ void acpigen_write_field(const char *name, struct fieldlist *l, size_t count, uint8_t flags); +/* + * Generate ACPI AML code for IndexField + * This function takes input index name, data name, fieldlist, count & flags. + */ +void acpigen_write_indexfield(const char *idx, const char *data, + struct fieldlist *l, size_t count, uint8_t flags); int get_cst_entries(acpi_cstate_t **); -- cgit v1.2.3