coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
raminit.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sys_info
 

Macros

#define DIMM_SOCKETS   2
 
#define DIMM_TCO_BASE   0x30
 
#define BURSTLENGTH   8
 
#define BOOT_PATH_NORMAL   0
 
#define BOOT_PATH_RESET   1
 
#define BOOT_PATH_RESUME   2
 
#define SYSINFO_PACKAGE_PLANAR   0x00
 
#define SYSINFO_PACKAGE_STACKED   0x01
 
#define SYSINFO_DIMM_X16DS   0x00
 
#define SYSINFO_DIMM_X8DS   0x01
 
#define SYSINFO_DIMM_X16SS   0x02
 
#define SYSINFO_DIMM_X8DDS   0x03
 
#define SYSINFO_DIMM_NOT_POPULATED   0x04
 

Functions

void receive_enable_adjust (struct sys_info *sysinfo)
 
void sdram_initialize (int boot_path, const u8 *sdram_addresses)
 
int fixup_i945gm_errata (void)
 

Variables

struct sys_info __packed
 

Macro Definition Documentation

◆ BOOT_PATH_NORMAL

#define BOOT_PATH_NORMAL   0

Definition at line 33 of file raminit.h.

◆ BOOT_PATH_RESET

#define BOOT_PATH_RESET   1

Definition at line 34 of file raminit.h.

◆ BOOT_PATH_RESUME

#define BOOT_PATH_RESUME   2

Definition at line 35 of file raminit.h.

◆ BURSTLENGTH

#define BURSTLENGTH   8

Definition at line 11 of file raminit.h.

◆ DIMM_SOCKETS

#define DIMM_SOCKETS   2

Definition at line 6 of file raminit.h.

◆ DIMM_TCO_BASE

#define DIMM_TCO_BASE   0x30

Definition at line 8 of file raminit.h.

◆ SYSINFO_DIMM_NOT_POPULATED

#define SYSINFO_DIMM_NOT_POPULATED   0x04

Definition at line 47 of file raminit.h.

◆ SYSINFO_DIMM_X16DS

#define SYSINFO_DIMM_X16DS   0x00

Definition at line 43 of file raminit.h.

◆ SYSINFO_DIMM_X16SS

#define SYSINFO_DIMM_X16SS   0x02

Definition at line 45 of file raminit.h.

◆ SYSINFO_DIMM_X8DDS

#define SYSINFO_DIMM_X8DDS   0x03

Definition at line 46 of file raminit.h.

◆ SYSINFO_DIMM_X8DS

#define SYSINFO_DIMM_X8DS   0x01

Definition at line 44 of file raminit.h.

◆ SYSINFO_PACKAGE_PLANAR

#define SYSINFO_PACKAGE_PLANAR   0x00

Definition at line 38 of file raminit.h.

◆ SYSINFO_PACKAGE_STACKED

#define SYSINFO_PACKAGE_STACKED   0x01

Definition at line 39 of file raminit.h.

Function Documentation

◆ fixup_i945gm_errata()

int fixup_i945gm_errata ( void  )

Definition at line 7 of file errata.c.

References FSBPMC3, mchbar_read32(), and mchbar_write32().

Referenced by mainboard_romstage_entry().

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

◆ receive_enable_adjust()

void receive_enable_adjust ( struct sys_info sysinfo)

Definition at line 299 of file rcven.c.

References receive_enable_autoconfig(), and SYSINFO_DIMM_NOT_POPULATED.

Referenced by sdram_program_receive_enable().

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

◆ sdram_initialize()

void sdram_initialize ( int  boot_path,
const u8 spd_map 
)
Parameters
boot_path0 = normal, 1 = reset, 2 = resume from s3
spd_addressespointer to a list of SPD addresses
boot_path0 = normal, 1 = reset, 2 = resume from s3

Definition at line 2682 of file raminit.c.

Variable Documentation

◆ __packed