coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smbus_early.c File Reference
#include <arch/io.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <device/smbus_host.h>
#include <intelblocks/smbus.h>
#include <soc/pci_devs.h>
#include "smbuslib.h"
Include dependency graph for smbus_early.c:

Go to the source code of this file.

Functions

void smbus_common_init (void)
 
uintptr_t smbus_base (void)
 

Function Documentation

◆ smbus_base()

uintptr_t smbus_base ( void  )

Definition at line 27 of file smbus_early.c.

References SMBUS_IO_BASE.

◆ smbus_common_init()

void smbus_common_init ( void  )

Definition at line 11 of file smbus_early.c.

References HOSTC, HST_EN, outb(), PCH_DEV_SMBUS, PCI_BASE_ADDRESS_4, PCI_COMMAND, PCI_COMMAND_IO, pci_write_config16(), pci_write_config32(), pci_write_config8(), SMBHSTCTL, SMBHSTSTAT, and SMBUS_IO_BASE.

Referenced by mainboard_romstage_entry().

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