![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <2crypto.h>
#include <amdblocks/psp_efs.h>
#include <bl_uapp/bl_syscall_public.h>
#include <stdint.h>
#include <soc/psp_transfer.h>
Go to the source code of this file.
Functions | |
void | test_svc_calls (void) |
uint32_t | unmap_fch_devices (void) |
uint32_t | verstage_soc_early_init (void) |
void | verstage_mainboard_espi_init (void) |
void | verstage_mainboard_tpm_init (void) |
void | verstage_soc_aoac_init (void) |
void | verstage_soc_espi_init (void) |
void | verstage_soc_i2c_init (void) |
void | verstage_soc_spi_init (void) |
uintptr_t * | map_spi_rom (void) |
uint32_t | update_psp_bios_dir (uint32_t *psp_dir_offset, uint32_t *bios_dir_offset) |
uint32_t | save_uapp_data (void *address, uint32_t size) |
uint32_t | get_bios_dir_addr (struct embedded_firmware *ef_table) |
int | platform_set_sha_op (enum vb2_hash_algorithm hash_alg, struct sha_generic_data *sha_op) |
void | platform_report_mode (int developer_mode_enabled) |
#define BHD_COOKIE 0x44484224 /* 'DHB$ */ |
Definition at line 14 of file psp_verstage.h.
#define EMBEDDED_FW_SIGNATURE 0x55aa55aa |
Definition at line 12 of file psp_verstage.h.
#define MIN_TRANSFER_BUFFER_SIZE (8 * KiB) |
Definition at line 48 of file psp_verstage.h.
#define MIN_WORKBUF_TRANSFER_SIZE (MIN_TRANSFER_BUFFER_SIZE - TRANSFER_INFO_SIZE) |
Definition at line 49 of file psp_verstage.h.
#define POSTCODE_AMD_FW_MISSING 0xC9 |
Definition at line 37 of file psp_verstage.h.
#define POSTCODE_BHD_COOKIE_MISMATCH_ERROR 0xC6 |
Definition at line 34 of file psp_verstage.h.
#define POSTCODE_CMOS_RECOVERY 0xCA |
Definition at line 38 of file psp_verstage.h.
#define POSTCODE_CONSOLE_INIT 0x01 |
Definition at line 19 of file psp_verstage.h.
#define POSTCODE_DEFAULT_BUFFER_SIZE_NOTICE 0xC0 |
Definition at line 28 of file psp_verstage.h.
#define POSTCODE_EARLY_INIT 0x02 |
Definition at line 20 of file psp_verstage.h.
#define POSTCODE_EARLY_INIT_ERROR 0xCB |
Definition at line 39 of file psp_verstage.h.
#define POSTCODE_ENTERED_PSP_VERSTAGE 0x00 |
Definition at line 18 of file psp_verstage.h.
#define POSTCODE_FMAP_REGION_MISSING 0xC8 |
Definition at line 36 of file psp_verstage.h.
#define POSTCODE_INIT_TPM_FAILED 0xCC |
Definition at line 40 of file psp_verstage.h.
#define POSTCODE_LATE_INIT 0x03 |
Definition at line 21 of file psp_verstage.h.
#define POSTCODE_LEAVING_VERSTAGE 0xF2 |
Definition at line 45 of file psp_verstage.h.
#define POSTCODE_PSP_COOKIE_MISMATCH_ERROR 0xC5 |
Definition at line 33 of file psp_verstage.h.
#define POSTCODE_ROMSIG_MISMATCH_ERROR 0xC4 |
Definition at line 32 of file psp_verstage.h.
#define POSTCODE_SAVE_BUFFERS 0x0E |
Definition at line 25 of file psp_verstage.h.
#define POSTCODE_UNMAP_FCH_DEVICES 0xF1 |
Definition at line 44 of file psp_verstage.h.
#define POSTCODE_UNMAP_SPI_ROM 0xF0 |
Definition at line 43 of file psp_verstage.h.
#define POSTCODE_UPDATE_BOOT_REGION 0x0F |
Definition at line 26 of file psp_verstage.h.
#define POSTCODE_UPDATE_PSP_BIOS_DIR_ERROR 0xC7 |
Definition at line 35 of file psp_verstage.h.
#define POSTCODE_VERSTAGE_MAIN 0x04 |
Definition at line 22 of file psp_verstage.h.
#define POSTCODE_VERSTAGE_S0I3_RESUME 0x05 |
Definition at line 23 of file psp_verstage.h.
#define POSTCODE_WORKBUF_BUFFER_SIZE_ERROR 0xC3 |
Definition at line 31 of file psp_verstage.h.
#define POSTCODE_WORKBUF_RESIZE_WARNING 0xC1 |
Definition at line 29 of file psp_verstage.h.
#define POSTCODE_WORKBUF_SAVE_ERROR 0xC2 |
Definition at line 30 of file psp_verstage.h.
#define PSP_COOKIE 0x50535024 /* 'PSP$' */ |
Definition at line 13 of file psp_verstage.h.
#define PSP_VBOOT_ERROR_SUBCODE 0x0D5D0000 |
Definition at line 16 of file psp_verstage.h.
#define SPI_ADDR_MASK 0x00ffffff |
Definition at line 47 of file psp_verstage.h.
uint32_t get_bios_dir_addr | ( | struct embedded_firmware * | ef_table | ) |
Definition at line 17 of file chipset.c.
References embedded_firmware::bios1_entry, and embedded_firmware::bios3_entry.
Referenced by update_boot_region().
Definition at line 91 of file fch.c.
References addr, BIOS_DEBUG, NULL, printk, svc_get_spi_rom_info(), and svc_map_spi_rom().
Referenced by boot_device_ro().
void platform_report_mode | ( | int | developer_mode_enabled | ) |
int platform_set_sha_op | ( | enum vb2_hash_algorithm | hash_alg, |
struct sha_generic_data * | sha_op | ||
) |
Definition at line 22 of file chipset.c.
References sha_op.
Referenced by vb2ex_hwcrypto_digest_init().
Definition at line 12 of file chipset.c.
References address, and svc_save_uapp_data().
Referenced by save_buffers().
Definition at line 7 of file chipset.c.
References svc_update_psp_bios_dir().
Referenced by update_boot_region().
Definition at line 21 of file verstage.c.
References CONFIG, gpio_configure_pads(), PM_ACPI_CONF, PM_ACPI_S5_LPC_PIN_MODE, PM_ACPI_S5_LPC_PIN_MODE_SEL, PM_ESPI_CS_USE_DATA2, pm_io_read32(), pm_io_write32(), PM_SPI_PAD_PU_PD, and variant_espi_gpio_table().
Referenced by Main().
Definition at line 44 of file verstage.c.
References CONFIG, gpio_configure_pads(), and variant_tpm_gpio_table().
Referenced by Main().
Definition at line 169 of file fch.c.
References BIOS_DEBUG, enable_aoac_devices(), and printk.
Referenced by Main().
Definition at line 150 of file fch.c.
References map_fch_devices().
Referenced by Main().
Definition at line 155 of file fch.c.
References BIOS_DEBUG, CONFIG, espi_setup(), and printk.
Referenced by Main().
Definition at line 163 of file fch.c.
References BIOS_DEBUG, i2c_soc_early_init(), and printk.
Referenced by Main().
Definition at line 175 of file fch.c.
References BIOS_DEBUG, fch_spi_config_modes(), printk, and show_spi_speeds_and_modes().
Referenced by Main().