amdfwtool/amdfwtool.h: Allow 16 additional PSP entries to be supported
Consolidate MAX_BIOS_ENTRIES and MAX_PSP_ENTRIES definitions into one file Signed-off-by: Altamshali Hirani <al.hirani@amd.corp-partner.google.com> Change-Id: Ie3c64a1875010e7fb368967283df6baf1cc7ba8d Reviewed-on: https://review.coreboot.org/c/coreboot/+/62911 Reviewed-by: ritul guru <ritul.bits@gmail.com> Reviewed-by: Bao Zheng <fishbaozi@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Felix Held
parent
c86c0cdb11
commit
8915abe115
@@ -347,9 +347,6 @@ amd_bios_entry amd_bios_table[] = {
|
|||||||
{ .type = AMD_BIOS_INVALID },
|
{ .type = AMD_BIOS_INVALID },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#define MAX_BIOS_ENTRIES 0x2f
|
|
||||||
|
|
||||||
typedef struct _context {
|
typedef struct _context {
|
||||||
char *rom; /* target buffer, size of flash device */
|
char *rom; /* target buffer, size of flash device */
|
||||||
uint32_t rom_size; /* size of flash device */
|
uint32_t rom_size; /* size of flash device */
|
||||||
|
@@ -163,7 +163,7 @@ typedef struct _psp_directory_table {
|
|||||||
psp_directory_entry entries[];
|
psp_directory_entry entries[];
|
||||||
} __attribute__((packed, aligned(16))) psp_directory_table;
|
} __attribute__((packed, aligned(16))) psp_directory_table;
|
||||||
|
|
||||||
#define MAX_PSP_ENTRIES 0x1f
|
#define MAX_PSP_ENTRIES 0x2f
|
||||||
|
|
||||||
typedef struct _psp_combo_header {
|
typedef struct _psp_combo_header {
|
||||||
uint32_t cookie;
|
uint32_t cookie;
|
||||||
@@ -222,6 +222,8 @@ typedef struct _bios_directory_table {
|
|||||||
bios_directory_entry entries[];
|
bios_directory_entry entries[];
|
||||||
} bios_directory_table;
|
} bios_directory_table;
|
||||||
|
|
||||||
|
#define MAX_BIOS_ENTRIES 0x2f
|
||||||
|
|
||||||
#define BDT_LVL1 (1 << 0)
|
#define BDT_LVL1 (1 << 0)
|
||||||
#define BDT_LVL2 (1 << 1)
|
#define BDT_LVL2 (1 << 1)
|
||||||
#define BDT_LVL1_AB (1 << 2)
|
#define BDT_LVL1_AB (1 << 2)
|
||||||
|
Reference in New Issue
Block a user