blob: d5eb61762099871f758c8029634b316040036792 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef AMD_BLOCK_DIMM_SPD_H
#define AMD_BLOCK_DIMM_SPD_H
#include <amdblocks/agesawrapper.h>
#include <stddef.h>
#include <stdint.h>
/*
* Fill the buf and returns 0 on success.
* Return -1 on failure and the caller tries sb_read_spd()
* to get the SPD from I2C.
*/
int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len);
int sb_read_spd(uint8_t spdAddress, char *buf, size_t len);
#endif /* AMD_BLOCK_DIMM_SPD_H */