diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-03-16 19:02:26 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-06-14 19:45:56 +0000 |
commit | 4bd9187dadaf4f3be5a1776d98d1f79cdfb23de8 (patch) | |
tree | cadad49316ba0b6e77d9304a5505dcede8860ea5 /src/include/acpi | |
parent | 3dc1792f1df9a9cd982bb63d3b29cc16c08bd7f6 (diff) |
ACPI: Refactor use of global and device NVS
After ChromeOS NVS was moved to a separate allocation and the use
of multiple OperationRegions, maintaining the fixed offsets is not
necessary.
Use actual structure size for OperationRegions, but align the
allocations to 8 bytes or sizeof(uint64_t).
Change-Id: I9c73b7c44d234af42c571b23187b924ca2c3894a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51639
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/include/acpi')
-rw-r--r-- | src/include/acpi/acpi_gnvs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/acpi/acpi_gnvs.h b/src/include/acpi/acpi_gnvs.h index 976726a9fe..ef98b66b51 100644 --- a/src/include/acpi/acpi_gnvs.h +++ b/src/include/acpi/acpi_gnvs.h @@ -8,6 +8,8 @@ struct global_nvs; void acpi_create_gnvs(void); +size_t size_of_dnvs(void); + #if CONFIG(ACPI_SOC_NVS) void *acpi_get_gnvs(void); void *acpi_get_device_nvs(void); |