From e37459ed64b40a23880babf430fd92a847752053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 17 Jun 2020 01:04:44 +0300 Subject: ACPI: Add framework for GNVS initialisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide common initialisation point for setting up GNVS structure before first SMI is triggered. Change-Id: Iccad533c3824d70f6cbae52cc8dd79f142ece944 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/42423 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/include/acpi/acpi_gnvs.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/acpi/acpi_gnvs.h (limited to 'src/include/acpi') diff --git a/src/include/acpi/acpi_gnvs.h b/src/include/acpi/acpi_gnvs.h new file mode 100644 index 0000000000..cc0c4710ae --- /dev/null +++ b/src/include/acpi/acpi_gnvs.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ACPI_GNVS_H__ +#define __ACPI_GNVS_H__ + +#include + +void *acpi_get_gnvs(void); +void *gnvs_get_or_create(void); +void acpi_inject_nvsa(void); + +void gnvs_assign_chromeos(void); + +/* Platform code must implement these. */ +size_t gnvs_size_of_array(void); +uint32_t *gnvs_cbmc_ptr(void); +void *gnvs_chromeos_ptr(void); + +#endif -- cgit v1.2.3