diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-09-09 16:46:00 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-09-14 16:27:36 +0000 |
commit | dc37dab7fda215b996867eff5c4511b09f7aa37a (patch) | |
tree | 5300408976f1e5b8c0e4a8cbf48773ba92a27b13 /util/cbfstool/cbfs.h | |
parent | 98e0ac00b9cd5a1ba87b2e965584a37078c58e42 (diff) | |
download | coreboot-dc37dab7fda215b996867eff5c4511b09f7aa37a.tar.xz |
cbfstool: drop extra copy of filetype->string map
We had two mappings of filetype IDs to strings. We shouldn't.
Change-Id: I08e478b92f3316139f14294e50ede657c7d5fb01
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/11626
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbfstool/cbfs.h')
-rw-r--r-- | util/cbfstool/cbfs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index f738c60147..70f806bf50 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -175,6 +175,30 @@ struct cbfs_payload { */ #define CBFS_COMPONENT_NULL 0xFFFFFFFF +struct typedesc_t { + uint32_t type; + const char *name; +}; + +static struct typedesc_t filetypes[] unused = { + {CBFS_COMPONENT_STAGE, "stage"}, + {CBFS_COMPONENT_PAYLOAD, "payload"}, + {CBFS_COMPONENT_OPTIONROM, "optionrom"}, + {CBFS_COMPONENT_BOOTSPLASH, "bootsplash"}, + {CBFS_COMPONENT_RAW, "raw"}, + {CBFS_COMPONENT_VSA, "vsa"}, + {CBFS_COMPONENT_MBI, "mbi"}, + {CBFS_COMPONENT_MICROCODE, "microcode"}, + {CBFS_COMPONENT_FSP, "fsp"}, + {CBFS_COMPONENT_MRC, "mrc"}, + {CBFS_COMPONENT_CMOS_DEFAULT, "cmos_default"}, + {CBFS_COMPONENT_CMOS_LAYOUT, "cmos_layout"}, + {CBFS_COMPONENT_SPD, "spd"}, + {CBFS_COMPONENT_MRC_CACHE, "mrc_cache"}, + {CBFS_COMPONENT_DELETED, "deleted"}, + {CBFS_COMPONENT_NULL, "null"} +}; + #define CBFS_SUBHEADER(_p) ( (void *) ((((uint8_t *) (_p)) + ntohl((_p)->offset))) ) /* cbfs_image.c */ |