From 03ce014cfc35a1c51eadec46d30169b2c641e011 Mon Sep 17 00:00:00 2001 From: Chris Douglass Date: Wed, 26 Feb 2014 13:30:13 -0500 Subject: util/ifdtool: add option to dump flashrom layout Dump the Intel Flash Descriptor map in the format expected by flashrom's "layout" option. Example usage: Given a 4MB flash image vpx7654.bin that was generated by Intel's FITC tool for a 6-Series chipset... ./ifdtool --layout l.txt vpx7654.bin cat l.txt 00000000:00000fff fd 00180000:003fffff bios 00001000:0017ffff me 00fff000:00000fff gbe 00fff000:00000fff pd Change-Id: Ib740178ed6935b5f6e1dba1be674303f9f980429 Signed-off-by: Christopher Douglass Reviewed-on: http://review.coreboot.org/5306 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/ifdtool/ifdtool.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/ifdtool/ifdtool.h') diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 7537f1d009..ed8f440bd1 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -20,6 +20,8 @@ #include #define IFDTOOL_VERSION "1.1" +#define LAYOUT_LINELEN 80 + enum spi_frequency { SPI_FREQUENCY_20MHZ = 0, SPI_FREQUENCY_33MHZ = 1, @@ -109,3 +111,8 @@ typedef struct { typedef struct { int base, limit, size; } region_t; + +struct region_name { + char *pretty; + char *terse; +}; -- cgit v1.2.3