coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dramc_param.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <soc/dramc_param_common.h>
#include <soc/dramc_soc.h>
Include dependency graph for dramc_param.h:

Go to the source code of this file.

Data Structures

struct  sdram_params
 Defines the SDRAM parameter structure. More...
 
struct  dramc_data
 
struct  dramc_param
 

Macros

#define DRAMC_PARAM_HEADER_VERSION   9
 

Functions

const struct sdram_infoget_sdram_config (void)
 
struct dramc_paramget_dramc_param_from_blob (void *blob)
 
void dump_param_header (const void *blob)
 
int validate_dramc_param (const void *blob)
 
int is_valid_dramc_param (const void *blob)
 
int initialize_dramc_param (void *blob)
 

Macro Definition Documentation

◆ DRAMC_PARAM_HEADER_VERSION

#define DRAMC_PARAM_HEADER_VERSION   9

Definition at line 16 of file dramc_param.h.

Function Documentation

◆ dump_param_header()

void dump_param_header ( const void blob)

◆ get_dramc_param_from_blob()

struct dramc_param* get_dramc_param_from_blob ( void blob)

Definition at line 9 of file dramc_param.c.

◆ get_sdram_config()

const struct sdram_info* get_sdram_config ( void  )

Definition at line 85 of file sdram_configs.c.

◆ initialize_dramc_param()

int initialize_dramc_param ( void blob)

Definition at line 27 of file dramc_param.c.

References DRAMC_PARAM_HEADER_VERSION, dramc_param::header, memset(), dramc_param_header::size, and dramc_param_header::version.

Referenced by dram_run_full_calibration().

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

◆ is_valid_dramc_param()

int is_valid_dramc_param ( const void blob)

Definition at line 28 of file dramc_param.c.

References DRAMC_SUCCESS, and validate_dramc_param().

Referenced by dram_run_fast_calibration().

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

◆ validate_dramc_param()