summaryrefslogtreecommitdiff
path: root/util/amdfwtool/amdfwtool.h
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2024-03-13 22:51:24 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-03-20 13:34:32 +0000
commite4214b793919fa2fe8675709021437c025e95876 (patch)
tree463a593f83072bcb2117057baab10550f9ae5de0 /util/amdfwtool/amdfwtool.h
parentbb1f81271b5c8f3c39b64f045857169b08760035 (diff)
amdfwtool: Move the address of tables to the context
Instead of being local variables. This can be easier to find all the tables anywhere. TEST=Identical test on all AMD SOC platform Change-Id: I98b7d01e32c75b4f13e23d496cd3de3da900678d Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81225 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/amdfwtool/amdfwtool.h')
-rw-r--r--util/amdfwtool/amdfwtool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/amdfwtool/amdfwtool.h b/util/amdfwtool/amdfwtool.h
index fdcd6a84b1..1dc445c3ab 100644
--- a/util/amdfwtool/amdfwtool.h
+++ b/util/amdfwtool/amdfwtool.h
@@ -452,6 +452,11 @@ typedef struct _context {
uint8_t ins;
uint8_t sub;
} combo_apcb[MAX_COMBO_ENTRIES], combo_apcb_bk[MAX_COMBO_ENTRIES];
+ embedded_firmware *amd_romsig_ptr;
+ psp_directory_table *pspdir, *pspdir2, *pspdir2_b;
+ bios_directory_table *biosdir, *biosdir2, *biosdir2_b;
+ psp_combo_directory *psp_combo_dir, *bhd_combo_dir;
+ ish_directory_table *ish_a_dir, *ish_b_dir;
} context;
uint8_t process_config(FILE *config, amd_cb_config *cb_config);