8 #include <soc/southbridge.h>
14 #define SMBUS_TIMEOUT (100 * 1000 * 10)
uint8_t *MAYBE_CONST acpimmio_smbus
uint8_t *MAYBE_CONST acpimmio_asf
static void write8(void *addr, uint8_t val)
static uint8_t read8(const void *addr)
#define printk(level,...)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define SMBHST_CTRL_MODE_BITS
#define SMBHST_STAT_ERROR_BITS
#define SMBHST_STAT_INTERRUPT
#define SMBHST_CTRL_BDT_RW
#define SMBHST_STAT_VAL_BITS
#define SMBHST_CTRL_BTE_RW
static u8 controller_read8(const uintptr_t base, const u8 reg)
int do_smbus_recv_byte(uintptr_t mmio, u8 device)
int do_smbus_read_byte(uintptr_t mmio, u8 device, u8 address)
static int smbus_wait_until_ready(uintptr_t mmio)
static int smbus_wait_until_done(uintptr_t mmio)
int do_smbus_write_byte(uintptr_t mmio, u8 device, u8 address, u8 val)
int do_smbus_send_byte(uintptr_t mmio, u8 device, u8 val)
static void controller_write8(const uintptr_t base, const u8 reg, const u8 val)