coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <assert.h>
#include <bootblock_common.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <FsptUpd.h>
#include <intelblocks/fast_spi.h>
#include <soc/bootblock.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
#include <stdint.h>
#include <console/console.h>
Include dependency graph for bootblock.c:

Go to the source code of this file.

Functions

asmlinkage void bootblock_c_entry (uint64_t base_timestamp)
 
static void sanity_check_pci_mmconf (void)
 
void bootblock_soc_early_init (void)
 
void bootblock_soc_init (void)
 

Variables

const FSPT_UPD temp_ram_init_params
 

Function Documentation

◆ bootblock_c_entry()

asmlinkage void bootblock_c_entry ( uint64_t  base_timestamp)

Definition at line 49 of file bootblock.c.

References bootblock_main_with_basetime().

Here is the call graph for this function:

◆ bootblock_soc_early_init()

void bootblock_soc_early_init ( void  )

Definition at line 81 of file bootblock.c.

References DEFAULT_SPI_BASE, early_uart_init(), and fast_spi_early_init().

Here is the call graph for this function:

◆ bootblock_soc_init()

void bootblock_soc_init ( void  )

Definition at line 90 of file bootblock.c.

References BIOS_DEBUG, CONFIG, printk, and sanity_check_pci_mmconf().

Here is the call graph for this function:

◆ sanity_check_pci_mmconf()

static void sanity_check_pci_mmconf ( void  )
static

Definition at line 55 of file bootblock.c.

References assert, base, length, MASK_PCIEXBAR_128M, MASK_PCIEXBAR_256M, MASK_PCIEXBAR_64M, MASK_PCIEXBAR_LENGTH, MASK_PCIEXBAR_LENGTH_128M, MASK_PCIEXBAR_LENGTH_256M, MASK_PCIEXBAR_LENGTH_64M, PCH_SA_DEV, pci_io_read_config32(), and PCIEXBAR.

Referenced by bootblock_soc_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ temp_ram_init_params

const FSPT_UPD temp_ram_init_params
Initial value:
= {
.FspUpdHeader = {
.Signature = 0x545F445055564E44ULL,
.Revision = 1,
.Reserved = {0},
},
.FsptCoreUpd = {
.MicrocodeRegionBase = 0,
.MicrocodeRegionLength = 0,
.CodeRegionBase =
(UINT32)(0x100000000ULL - CONFIG_ROM_SIZE),
.CodeRegionLength = (UINT32)CONFIG_ROM_SIZE,
.Reserved1 = {0},
},
.FsptConfig = {
.PcdFsptPort80RouteDisable = 0,
.ReservedTempRamInitUpd = {0},
},
.UnusedUpdSpace0 = {0},
.UpdTerminator = 0x55AA,
}

Definition at line 16 of file bootblock.c.