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
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 */
agesawrapper.h
mainboard_read_spd
int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len)
Definition:
romstage.c:8
sb_read_spd
int sb_read_spd(uint8_t spdAddress, char *buf, size_t len)
Definition:
smbus_spd.c:61
buf
static uint8_t * buf
Definition:
uart.c:7
stddef.h
stdint.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
src
soc
amd
common
block
include
amdblocks
dimm_spd.h
Generated by
1.9.1