summaryrefslogtreecommitdiff
path: root/util/ifdtool/ifdtool.h
diff options
context:
space:
mode:
authorChris Douglass <cdouglass.orion@gmail.com>2014-02-26 13:30:13 -0500
committerStefan Reinauer <stefan.reinauer@coreboot.org>2014-02-28 21:10:46 +0100
commit03ce014cfc35a1c51eadec46d30169b2c641e011 (patch)
tree53ba1d2662c051d527d58ed4b944d06bf9f43272 /util/ifdtool/ifdtool.h
parent970dd9c46672bd194189296977ac8bbf098c139e (diff)
downloadcoreboot-03ce014cfc35a1c51eadec46d30169b2c641e011.tar.xz
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 <cdouglass.orion@gmail.com> Reviewed-on: http://review.coreboot.org/5306 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/ifdtool/ifdtool.h')
-rw-r--r--util/ifdtool/ifdtool.h7
1 files changed, 7 insertions, 0 deletions
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 <stdint.h>
#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;
+};