summaryrefslogtreecommitdiffstats
path: root/src/include/boot
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2014-10-16 13:02:37 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-10 11:57:24 +0200
commitdd94b5f023b5449b6d2555ccd1d3f294ef2a99d0 (patch)
treea79276287ef89c6baeeb8b0604fc4fcd6d65840a /src/include/boot
parent931a218d685610d85b570b72889b341270e2d00a (diff)
downloadcoreboot-dd94b5f023b5449b6d2555ccd1d3f294ef2a99d0.tar.gz
coreboot-dd94b5f023b5449b6d2555ccd1d3f294ef2a99d0.tar.bz2
coreboot-dd94b5f023b5449b6d2555ccd1d3f294ef2a99d0.zip
chromeos: move VPD MAC address retrieval function
Retrieval of the MAC address from the VPD is a Chrome OS specific feature, required just on one platform so far. There is no need to look for the MAC address in the VPD on all other Chrome OS boards. BRANCH=storm BUG=chromium:417117 TEST=with the upcoming patch applied verified that MAC addresses still show up in the device tree on storm Change-Id: If5fd4895bffc758563df7d21f38995f0c8594330 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: fb4906ac559634321a01b4814f338611b9e98b2b Original-Change-Id: I8e6f8dc38294d3ab11965931be575360fd12b2fc Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/223796 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: http://review.coreboot.org/9398 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include/boot')
-rw-r--r--src/include/boot/coreboot_tables.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h
index 0efb8fdb4187..db55adaa366e 100644
--- a/src/include/boot/coreboot_tables.h
+++ b/src/include/boot/coreboot_tables.h
@@ -366,6 +366,12 @@ void lb_add_console(uint16_t consoletype, void *data);
/* Define this in mainboard.c to add board-specific table entries. */
void lb_board(struct lb_header *header);
+/*
+ * Function to retrieve MAC address(es) from the VPD and store them in the
+ * coreboot table.
+ */
+void lb_table_add_macs_from_vpd(struct lb_header *header);
+
struct lb_record *lb_new_record(struct lb_header *header);
#endif /* COREBOOT_TABLES_H */