summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/include/amdblocks/dimm_spd.h
blob: f52957f7d168045ab6505c797ee0298a14156b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#ifndef __DIMMSPD_H__
#define __DIMMSPD_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