![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
#include <sys/types.h>
#include <soc/dramc_param_common.h>
#include <soc/dramc_soc.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_info * | get_sdram_config (void) |
struct dramc_param * | get_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) |
#define DRAMC_PARAM_HEADER_VERSION 9 |
Definition at line 16 of file dramc_param.h.
Definition at line 14 of file dramc_param.c.
References DRAMC_PARAM_HEADER_VERSION, arm64_kernel_header::flags, header, dramc_param::header, and print.
struct dramc_param* get_dramc_param_from_blob | ( | void * | blob | ) |
Definition at line 9 of file dramc_param.c.
const struct sdram_info* get_sdram_config | ( | void | ) |
Definition at line 85 of file sdram_configs.c.
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().
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().
int validate_dramc_param | ( | const void * | blob | ) |
Definition at line 11 of file dramc_param.c.
References DRAMC_ERR_INVALID_MAGIC, DRAMC_ERR_INVALID_SIZE, DRAMC_ERR_INVALID_VERSION, DRAMC_PARAM_HEADER_MAGIC, DRAMC_PARAM_HEADER_VERSION, DRAMC_SUCCESS, dramc_param::header, dramc_param_header::magic, dramc_param_header::size, and dramc_param_header::version.
Referenced by is_valid_dramc_param().