coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dimm_spd.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef AMD_BLOCK_DIMM_SPD_H
4 #define AMD_BLOCK_DIMM_SPD_H
5 
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 */
int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len)
Definition: romstage.c:8
int sb_read_spd(uint8_t spdAddress, char *buf, size_t len)
Definition: smbus_spd.c:61
static uint8_t * buf
Definition: uart.c:7
unsigned char uint8_t
Definition: stdint.h:8