coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
meminit.h File Reference
#include <fsp/soc_binding.h>
#include <types.h>
Include dependency graph for meminit.h:

Go to the source code of this file.

Data Structures

struct  spd_by_pointer
 
struct  spd_info
 
union  spd_info::spd_data_by
 
struct  mb_cfg
 

Macros

#define DQ_BITS_PER_DQS   8
 
#define DDR_NUM_PACKAGES   2
 
#define DDR_NUM_BYTE_MAPPINGS   6
 
#define NUM_DIMM_SLOT   4
 

Enumerations

enum  { DDR_CH0 , DDR_CH1 , DDR_NUM_CHANNELS }
 
enum  mem_info_read_type {
  NOT_EXISTING , READ_SMBUS , READ_SPD_CBFS , READ_SPD_MEMPTR ,
  READ_SPD_CBFS , READ_SMBUS , READ_SPD_MEMPTR , READ_SPD_CBFS ,
  READ_SMBUS , READ_SPD_MEMPTR
}
 

Functions

void memcfg_init (FSP_M_CONFIG *mem_cfg, const struct mb_cfg *board_cfg, const struct spd_info *spd_info, bool half_populated)
 

Macro Definition Documentation

◆ DDR_NUM_BYTE_MAPPINGS

#define DDR_NUM_BYTE_MAPPINGS   6

Definition at line 16 of file meminit.h.

◆ DDR_NUM_PACKAGES

#define DDR_NUM_PACKAGES   2

Definition at line 13 of file meminit.h.

◆ DQ_BITS_PER_DQS

#define DQ_BITS_PER_DQS   8

Definition at line 10 of file meminit.h.

◆ NUM_DIMM_SLOT

#define NUM_DIMM_SLOT   4

Definition at line 19 of file meminit.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DDR_CH0 
DDR_CH1 
DDR_NUM_CHANNELS 

Definition at line 22 of file meminit.h.

◆ mem_info_read_type

Enumerator
NOT_EXISTING 
READ_SMBUS 
READ_SPD_CBFS 
READ_SPD_MEMPTR 
READ_SPD_CBFS 
READ_SMBUS 
READ_SPD_MEMPTR 
READ_SPD_CBFS 
READ_SMBUS 
READ_SPD_MEMPTR 

Definition at line 33 of file meminit.h.

Function Documentation

◆ memcfg_init()

void memcfg_init ( FSP_M_CONFIG mem_cfg,
const struct mb_cfg board_cfg,
const struct spd_info spd_info,
bool  half_populated 
)