10 #define SPD_CACHE_FMAP_NAME (CONFIG_SPD_CACHE_FMAP_NAME)
11 #define SC_SPD_NUMS (CONFIG_DIMM_MAX)
12 #define SC_SPD_OFFSET(n) (CONFIG_DIMM_SPD_SIZE * n)
13 #define SC_CRC_OFFSET (CONFIG_DIMM_MAX * CONFIG_DIMM_SPD_SIZE)
14 #define SC_SPD_TOTAL_LEN (CONFIG_DIMM_MAX * CONFIG_DIMM_SPD_SIZE)
15 #define SC_SPD_LEN (CONFIG_DIMM_SPD_SIZE)
16 #define SC_CRC_LEN (sizeof(uint16_t))
cb_err
coreboot error codes
bool check_if_dimm_changed(u8 *spd_cache, struct spd_block *blk)
enum cb_err load_spd_cache(uint8_t **spd_cache, size_t *spd_cache_sz)
enum cb_err spd_fill_from_cache(uint8_t *spd_cache, struct spd_block *blk)
enum cb_err update_spd_cache(struct spd_block *blk)
bool spd_cache_is_valid(uint8_t *spd_cache, size_t spd_cache_sz)