77 }
while (timeout < 0xfff);
void outb(u8 val, u16 port)
void sch5545_ec_early_init(void)
static void ec_read_write_reg_timeout(uint16_t ldn, uint8_t *val, uint16_t reg, uint8_t rw_bit)
static const struct ec_val_reg ec_gpio_init_table[]
static void ec_early_hwm_init(void)
static const struct ec_val_reg ec_hwm_early_init_table[]
static void ec_init_gpios(void)
void sch5545_emi_set_int_src(uint16_t int_src)
Writes int_src bits to clear the desired interrupt source bits.
void sch5545_emi_h2ec_mbox_write(uint8_t mbox_message)
Writes the Host to EC mailbox 8bit register with mbox_message.
void sch5545_emi_ec2h_mailbox_clear(void)
Reads the EC to Host mailbox register and then writes the same content to clear it.
void sch5545_emi_ec_write16(uint16_t addr, uint16_t data)
Writes any word of 2 words from the 32bit dword indicated by addr.
uint16_t sch5545_read_emi_bar(uint8_t sio_port)
Reads and returns the base address of EMI from the SuperIO.
uint8_t sch5545_emi_ec2h_mbox_read(void)
Reads and returns the EC to Host mailbox 8bit register.
void sch5545_emi_set_ec_addr(uint16_t addr)
Sets the EC address registers with given addr for indirect access to Embedded Memory.
#define SCH5545_EMI_EC_DATA