coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smn.c File Reference
#include <amdblocks/smn.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
#include <types.h>
Include dependency graph for smn.c:

Go to the source code of this file.

Macros

#define SMN_INDEX_ADDR   0xb8 /* 32 bit */
 
#define SMN_DATA_ADDR   0xbc /* 32 bit */
 

Functions

uint32_t smn_read32 (uint32_t reg)
 
void smn_write32 (uint32_t reg, uint32_t val)
 

Macro Definition Documentation

◆ SMN_DATA_ADDR

#define SMN_DATA_ADDR   0xbc /* 32 bit */

Definition at line 10 of file smn.c.

◆ SMN_INDEX_ADDR

#define SMN_INDEX_ADDR   0xb8 /* 32 bit */

Definition at line 9 of file smn.c.

Function Documentation

◆ smn_read32()

uint32_t smn_read32 ( uint32_t  reg)

Definition at line 12 of file smn.c.

References pci_read_config32(), pci_write_config32(), SMN_DATA_ADDR, SMN_INDEX_ADDR, and SOC_GNB_DEV.

Referenced by send_smu_message().

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

◆ smn_write32()

void smn_write32 ( uint32_t  reg,
uint32_t  val 
)

Definition at line 18 of file smn.c.

References pci_write_config32(), SMN_DATA_ADDR, SMN_INDEX_ADDR, SOC_GNB_DEV, and val.

Here is the call graph for this function: