coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ddr_common.c File Reference
#include <device/dram/common.h>
#include <types.h>
Include dependency graph for ddr_common.c:

Go to the source code of this file.

Functions

u16 ddr_crc16 (const u8 *ptr, int n_crc)
 Calculate the CRC of a DDR SPD data. More...
 

Function Documentation

◆ ddr_crc16()

u16 ddr_crc16 ( const u8 ptr,
int  n_crc 
)

Calculate the CRC of a DDR SPD data.

Parameters
spdpointer to raw SPD data
lenlength of data in SPD
Returns
the CRC of the SPD data

Definition at line 14 of file ddr_common.c.

Referenced by mainboard_memory_init_params(), spd_ddr2_calc_unique_crc(), spd_ddr3_calc_crc(), spd_ddr3_calc_unique_crc(), and verify_block().

Here is the caller graph for this function: