coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smbus_spd.c File Reference
#include <amdblocks/acpimmio.h>
#include <device/pci_def.h>
#include <device/device.h>
#include <console/console.h>
#include <stddef.h>
#include <Porting.h>
#include <AGESA.h>
#include <amdlib.h>
#include <northbridge/amd/agesa/dimmSpd.h>
Include dependency graph for smbus_spd.c:

Go to the source code of this file.

Functions

static int readSmbusByteData (int iobase, int address, char *buffer, int offset)
 
static int readSmbusByte (int iobase, int address, char *buffer)
 
static int readspd (int iobase, int SmbusSlaveAddress, char *buffer, int count)
 
static void setupFch (int ioBase)
 
int hudson_readSpd (int spdAddress, char *buf, size_t len)
 

Function Documentation

◆ hudson_readSpd()

int hudson_readSpd ( int  spdAddress,
char *  buf,
size_t  len 
)

Definition at line 124 of file smbus_spd.c.

◆ readSmbusByte()

static int readSmbusByte ( int  iobase,
int  address,
char *  buffer 
)
static

Definition at line 54 of file smbus_spd.c.

References buffer.

Referenced by readspd().

Here is the caller graph for this function:

◆ readSmbusByteData()

static int readSmbusByteData ( int  iobase,
int  address,
char *  buffer,
int  offset 
)
static

Definition at line 19 of file smbus_spd.c.

References address, buffer, and offset.

Referenced by readspd().

Here is the caller graph for this function:

◆ readspd()

static int readspd ( int  iobase,
int  SmbusSlaveAddress,
char *  buffer,
int  count 
)
static

Definition at line 87 of file smbus_spd.c.

References BIOS_ERR, BIOS_SPEW, buffer, count, printk, readSmbusByte(), and readSmbusByteData().

Referenced by hudson_readSpd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setupFch()

static void setupFch ( int  ioBase)
static

Definition at line 118 of file smbus_spd.c.

References pm_write16().

Referenced by hudson_readSpd().

Here is the call graph for this function:
Here is the caller graph for this function: