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

Go to the source code of this file.

Functions

int i945_silicon_revision (void)
 
static void i945m_detect_chipset (void)
 
static void i945_detect_chipset (void)
 
static void i945_setup_bars (void)
 
static void i945_setup_egress_port (void)
 
static void ich7_setup_dmi_rcrb (void)
 
static void i945_setup_dmi_rcrb (void)
 
static void i945_setup_pci_express_x16 (void)
 
static void i945_setup_root_complex_topology (void)
 
static void ich7_setup_root_complex_topology (void)
 
static void ich7_setup_pci_express (void)
 
void i945_early_initialization (void)
 
static void i945_prepare_resume (int s3resume)
 
void i945_late_initialization (int s3resume)
 

Function Documentation

◆ i945_detect_chipset()

static void i945_detect_chipset ( void  )
static

Definition at line 85 of file early_init.c.

References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, CONFIG, HOST_BRIDGE, pci_read_config8(), and printk.

Referenced by i945_early_initialization().

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

◆ i945_early_initialization()

void i945_early_initialization ( void  )

Definition at line 775 of file early_init.c.

References GCS, HOST_BRIDGE, i945_detect_chipset(), i945_setup_bars(), i945m_detect_chipset(), pci_read_config32(), and RCBA32.

Referenced by mainboard_romstage_entry().

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

◆ i945_late_initialization()

void i945_late_initialization ( int  s3resume)

◆ i945_prepare_resume()

static void i945_prepare_resume ( int  s3resume)
static

Definition at line 798 of file early_init.c.

References cbmem_recovery(), and romstage_handoff_init().

Referenced by i945_late_initialization().

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

◆ i945_setup_bars()

static void i945_setup_bars ( void  )
static

Definition at line 136 of file early_init.c.

References BIOS_DEBUG, BIOS_INFO, DEFAULT_X60BAR, DMIBAR, EPBAR, ESMRAMC, get_uint_option(), GGC, HOST_BRIDGE, i945_silicon_revision(), MCHBAR, PAM0, PAM1, PAM2, PAM3, PAM4, PAM5, PAM6, pci_read_config32(), pci_update_config8(), pci_write_config16(), pci_write_config32(), pci_write_config8(), printk, and X60BAR.

Referenced by i945_early_initialization().

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

◆ i945_setup_dmi_rcrb()

◆ i945_setup_egress_port()

static void i945_setup_egress_port ( void  )
static

Definition at line 182 of file early_init.c.

References BIOS_DEBUG, CLKCFG, CONFIG, DEVEN, DEVEN_D2F0, DEVEN_D2F1, epbar_read16(), epbar_read32(), epbar_setbits32, epbar_write32(), EPPVCCAP1, EPVC0RCTL, EPVC1IST, EPVC1MTS, EPVC1RCAP, EPVC1RCTL, EPVC1RSTS, HOST_BRIDGE, mchbar_read32(), mchbar_setbits32, MMARB1, pci_read_config8(), PORTARB, and printk.

Referenced by i945_late_initialization().

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

◆ i945_setup_pci_express_x16()

◆ i945_setup_root_complex_topology()

static void i945_setup_root_complex_topology ( void  )
static

Definition at line 702 of file early_init.c.

References BIOS_DEBUG, DEVEN, DEVEN_D1F0, dmibar_read32(), dmibar_setbits32, dmibar_write32(), DMILE1A, DMILE1D, DMILE2A, DMILE2D, epbar_read32(), epbar_setbits32, epbar_write32(), EPESD, EPLE1A, EPLE1D, EPLE2D, HOST_BRIDGE, LE1A, LE1D, PCI_DEV, pci_or_config32(), pci_read_config8(), pci_write_config32(), and printk.

Referenced by i945_late_initialization().

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

◆ i945_silicon_revision()

int i945_silicon_revision ( void  )

Definition at line 15 of file early_init.c.

References HOST_BRIDGE, PCI_CLASS_REVISION, and pci_read_config8().

Referenced by i945_setup_bars(), i945_setup_dmi_rcrb(), i945_setup_pci_express_x16(), sdram_force_rcomp(), sdram_power_management(), sdram_program_graphics_frequency(), and sdram_setup_processor_side().

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

◆ i945m_detect_chipset()

static void i945m_detect_chipset ( void  )
static

Definition at line 20 of file early_init.c.

References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, CONFIG, HOST_BRIDGE, pci_read_config8(), and printk.

Referenced by i945_early_initialization().

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

◆ ich7_setup_dmi_rcrb()

static void ich7_setup_dmi_rcrb ( void  )
static

Definition at line 297 of file early_init.c.

References LCAP, LCTL, PCI_DEV, pci_write_config16(), pci_write_config32(), RCBA16, RCBA32, V0CTL, V1CAP, and V1CTL.

Referenced by i945_late_initialization().

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

◆ ich7_setup_pci_express()

static void ich7_setup_pci_express ( void  )
static

Definition at line 764 of file early_init.c.

References CG, PCI_DEV, pci_write_config32(), and RCBA32.

Referenced by i945_late_initialization().

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

◆ ich7_setup_root_complex_topology()

static void ich7_setup_root_complex_topology ( void  )
static

Definition at line 745 of file early_init.c.

References ESD, HDD, RCBA32, RP1D, RP2D, RP3D, RP4D, RP5D, RP6D, ULBA, and ULD.

Referenced by i945_late_initialization().

Here is the caller graph for this function: