MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / init_spd

Function init_spd

rEFIt_UEFI/Platform/spd.cpp:308–323  ·  view source on GitHub ↗

Read from spd *used* values only*/

Source from the content-addressed store, hash-verified

306
307/** Read from spd *used* values only*/
308VOID init_spd(UINT16* spd_indexes, UINT8* spd, UINT32 base, UINT8 slot)
309{
310 UINT16 i;
311 for (i=0; spd_indexes[i]; i++) {
312 READ_SPD(spd, base, slot, spd_indexes[i]);
313 }
314
315#if 0
316 DBG("Reading entire spd data\n");
317 for (i = 0; i < 512; i++) {
318 UINT8 b = smb_read_byte(base, 0x50 + slot, i);
319 DBG("%02hhX", b);
320 }
321 DBG(".\n");
322#endif
323}
324
325// Get Vendor Name from spd, 3 cases handled DDR3, DDR4 and DDR2,
326// have different formats, always return a valid ptr.

Callers 1

read_smbFunction · 0.85

Calls 1

smb_read_byteFunction · 0.85

Tested by

no test coverage detected