xref: /aosp_15_r20/external/coreboot/src/soc/amd/common/block/include/amdblocks/dimm_spd.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef AMD_BLOCK_DIMM_SPD_H
4 #define AMD_BLOCK_DIMM_SPD_H
5 
6 #include <amdblocks/agesawrapper.h>
7 #include <stddef.h>
8 #include <stdint.h>
9 
10 /*
11  * Fill the buf and returns 0 on success.
12  * Return -1 on failure and the caller tries sb_read_spd()
13  * to get the SPD from I2C.
14  */
15 int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len);
16 int sb_read_spd(uint8_t spdAddress, char *buf, size_t len);
17 
18 #endif /* AMD_BLOCK_DIMM_SPD_H */
19