coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c File Reference
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <option.h>
#include <types.h>
#include "sandybridge.h"
Include dependency graph for early_init.c:

Go to the source code of this file.

Functions

static void systemagent_vtd_init (void)
 
static void enable_pam_region (void)
 
static void sandybridge_setup_bars (void)
 
static void sandybridge_setup_graphics (void)
 
static void start_peg_link_training (void)
 
void systemagent_early_init (void)
 
void northbridge_romstage_finalize (void)
 

Function Documentation

◆ enable_pam_region()

static void enable_pam_region ( void  )
static

Definition at line 37 of file early_init.c.

References HOST_BRIDGE, PAM0, PAM1, PAM2, PAM3, PAM4, PAM5, PAM6, and pci_write_config8().

Referenced by systemagent_early_init().

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

◆ northbridge_romstage_finalize()

void northbridge_romstage_finalize ( void  )

Definition at line 195 of file early_init.c.

References mchbar_write16(), and SSKPD_HI.

Referenced by mainboard_romstage_entry().

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

◆ sandybridge_setup_bars()

static void sandybridge_setup_bars ( void  )
static

Definition at line 48 of file early_init.c.

References BIOS_DEBUG, DMIBAR, EPBAR, HOST_BRIDGE, MCHBAR, pci_write_config32(), and printk.

Referenced by systemagent_early_init().

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

◆ sandybridge_setup_graphics()

static void sandybridge_setup_graphics ( void  )
static

Definition at line 62 of file early_init.c.

References BIOS_DEBUG, get_uint_option(), GGC, HOST_BRIDGE, INTRDIRCTL, mchbar_clrbits32, mchbar_setbits32, MSAC, PCI_DEV, PCI_DEVICE_ID, pci_read_config16(), pci_update_config8(), pci_write_config16(), printk, SAPMCTL, and SSKPD_HI.

Referenced by systemagent_early_init().

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

◆ start_peg_link_training()

static void start_peg_link_training ( void  )
static

Definition at line 120 of file early_init.c.

References AFE_PWRON, BASE_REV_IVB, BASE_REV_MASK, CONFIG, DEVEN, DEVEN_PEG10, DEVEN_PEG11, DEVEN_PEG12, DEVEN_PEG60, HOST_BRIDGE, PCI_DEV, PCI_DEVICE_ID, pci_read_config16(), pci_read_config32(), and pci_update_config32().

Referenced by systemagent_early_init().

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

◆ systemagent_early_init()

void systemagent_early_init ( void  )

◆ systemagent_vtd_init()

static void systemagent_vtd_init ( void  )
static

Definition at line 13 of file early_init.c.

References CAPID0_A, device::enabled, GFXVT_BASE, GFXVTBAR, HOST_BRIDGE, mchbar_write32(), pci_read_config32(), pcidev_on_root(), VTVC0_BASE, VTVC0BAR, and write32().

Referenced by systemagent_early_init().

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