summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-12-12 10:43:58 -0800
committerAaron Durbin <adurbin@google.com>2014-01-30 05:49:13 +0100
commitf517c448a5b297662d061c03a5a89f5fd2e248e2 (patch)
treed50f0edc97061b439fcaa9b5e2d6a441e406318c /payloads/libpayload/include
parent2f6402c7a66acb7fd51794b190fbecfb852bcab4 (diff)
libpayload: Parse CBMEM ACPI GNVS pointer
Pull the ACPI GNVS pointer from CBMEM and expose it in the sysinfo structure for use by payloads. BUG=chrome-os-partner:24380 BRANCH=none TEST=build and boot rambi with emmc in ACPI mode Change-Id: I47c358f33c464a4a01080268fb553705218c940c Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/179900 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5016 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/coreboot_tables.h1
-rw-r--r--payloads/libpayload/include/sysinfo.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/include/coreboot_tables.h b/payloads/libpayload/include/coreboot_tables.h
index 26838e8dc3..911157bf93 100644
--- a/payloads/libpayload/include/coreboot_tables.h
+++ b/payloads/libpayload/include/coreboot_tables.h
@@ -195,6 +195,7 @@ struct cb_vdat {
#define CB_TAG_TIMESTAMPS 0x0016
#define CB_TAG_CBMEM_CONSOLE 0x0017
#define CB_TAG_MRC_CACHE 0x0018
+#define CB_TAG_ACPI_GNVS 0x0024
struct cb_cbmem_tab {
uint32_t tag;
uint32_t size;
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index a66c1e7c8f..e2ceffc259 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -107,6 +107,7 @@ struct sysinfo_t {
void *tstamp_table;
void *cbmem_cons;
void *mrc_cache;
+ void *acpi_gnvs;
};
extern struct sysinfo_t lib_sysinfo;