From 5368504e449e1adc78a869edbf77525e98df5779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 10 Mar 2016 05:37:27 +0100 Subject: coreinfo/cbfs: Add some missing file types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An alternative to this patch is to copy the filetypes table from util/cbfstool/cbfs.h and use that. Change-Id: Iebf3a7a8912761ff6825a6f51c8b68df0dcc5990 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/14026 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- payloads/coreinfo/cbfs_module.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'payloads/coreinfo/cbfs_module.c') diff --git a/payloads/coreinfo/cbfs_module.c b/payloads/coreinfo/cbfs_module.c index 1a59d01d28..6a3d71ef61 100644 --- a/payloads/coreinfo/cbfs_module.c +++ b/payloads/coreinfo/cbfs_module.c @@ -23,9 +23,14 @@ #define LARCHIVE_MAGIC 0x455649484352414cLL /* "LARCHIVE" */ #define COMPONENT_DELETED 0x00 +#define COMPONENT_BOOTBLOCK 0x01 +#define COMPONENT_CBFSHEADER 0x02 #define COMPONENT_STAGE 0x10 #define COMPONENT_PAYLOAD 0x20 #define COMPONENT_OPTIONROM 0x30 +#define COMPONENT_RAW 0x50 +#define COMPONENT_MICROCODE 0x53 +#define COMPONENT_CMOS_LAYOUT 0x1aa #define COMPONENT_NULL 0xffffffff struct cbheader { @@ -156,6 +161,12 @@ static int cbfs_module_redraw(WINDOW * win) /* mvwprintw(win, row++, 32, "Offset: 0x%x", f->offset); *//* FIXME */ mvwprintw(win, row, 32, "Type: "); switch (ntohl(f->type)) { + case COMPONENT_BOOTBLOCK: + mvwprintw(win, row++, 38, "bootblock"); + break; + case COMPONENT_CBFSHEADER: + mvwprintw(win, row++, 38, "CBFS header"); + break; case COMPONENT_STAGE: mvwprintw(win, row++, 38, "stage"); break; @@ -165,6 +176,15 @@ static int cbfs_module_redraw(WINDOW * win) case COMPONENT_OPTIONROM: mvwprintw(win, row++, 38, "optionrom"); break; + case COMPONENT_RAW: + mvwprintw(win, row++, 38, "raw"); + break; + case COMPONENT_MICROCODE: + mvwprintw(win, row++, 38, "microcode"); + break; + case COMPONENT_CMOS_LAYOUT: + mvwprintw(win, row++, 38, "cmos layout"); + break; case COMPONENT_NULL: mvwprintw(win, row++, 38, "free"); break; -- cgit v1.2.3