![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | EC_IO 0x100 /* Mainboard specific. Could be Kconfig option */ |
#define | EC_IO_HIGH EC_IO + 1 |
#define | EC_IO_LOW EC_IO + 2 |
#define | EC_IO_DATA EC_IO + 3 |
#define | KBC_TIMEOUT_IN_MS 400 |
#define | KBD_DATA 0x60 |
#define | KBD_COMMAND 0x64 |
#define | KBD_STATUS 0x64 |
#define | KBD_IBF (1 << 1) |
#define | KBD_OBF (1 << 0) |
#define | EC_KBD_SMI_EVENT 0xCD |
#define | EC_KBD_CMD_UNMUTE 0xE8 |
#define | EC_KBD_CMD_MUTE 0xE9 |
#define | EC_DATA 0x62 |
#define | EC_SC 0x66 |
#define | SMI_EVT (1 << 6) |
#define | SCI_EVT (1 << 5) |
#define | RD_EC 0x80 |
#define | WR_EC 0x81 |
#define | QR_EC 0x84 |
#define | EC_CMD_EXIT_BOOT_BLOCK 0x85 |
#define | EC_CMD_NOTIFY_ACPI_ENTER 0x86 |
#define | EC_CMD_NOTIFY_ACPI_EXIT 0x87 |
#define | EC_CMD_WARM_RESET 0x8C |
#define | EC_PERIPH_CNTL_3 0x0D |
#define | EC_USB_S3_EN 0x26 |
#define | EC_PERIPH_STAT_3 0x35 |
#define | EC_THERM_0 0x78 |
#define | EC_WAKE_SRC_ENABLE 0xBF |
#define | EC_FW_VER 0xE8 |
#define | EC_IF_MIN_VER 0xEB |
#define | EC_STATUS_REG 0xEC |
#define | EC_IF_MAJ_VER 0xEF |
#define | EC_MBAT_STATUS 0x0138 |
#define | EC_IN_RO_MODE 0x1 |
#define | EC_IN_RECOVERY_MODE 0x3 |
#define | EC_LID_WAKE_ENABLE 0x4 |
Functions | |
u8 | ec_kbc_read_ob (void) |
void | ec_kbc_write_cmd (u8 cmd) |
void | ec_kbc_write_ib (u8 data) |
u8 | ec_read_ob (void) |
void | ec_write_cmd (u8 cmd) |
void | ec_write_ib (u8 data) |
u8 | ec_read (u16 addr) |
void | ec_write (u16 addr, u8 data) |
u8 | ec_it8518_get_event (void) |
void | ec_it8518_enable_wake_events (void) |
#define EC_IO 0x100 /* Mainboard specific. Could be Kconfig option */ |
Definition at line 123 of file ec.c.
References EC_LID_WAKE_ENABLE, ec_read(), EC_WAKE_SRC_ENABLE, and ec_write().
Referenced by mainboard_smi_sleep().
Definition at line 109 of file ec.c.
References ec_kbc_read_ob(), ec_kbc_write_cmd(), EC_KBD_SMI_EVENT, ec_read_ob(), EC_SC, ec_write_cmd(), inb(), QR_EC, SCI_EVT, and SMI_EVT.
Referenced by mainboard_smi_ec().
Definition at line 71 of file ec.c.
References ec_output_buffer_full(), inb(), kbc_output_buffer_full(), KBD_DATA, KBD_STATUS, and output_buffer_full().
Referenced by ec_get_smi_event(), ec_it8518_get_event(), mainboard_smi_ec(), parrot_ec_init(), and parrot_rev().
Definition at line 77 of file ec.c.
References ec_input_buffer_empty(), input_buffer_empty(), kbc_input_buffer_empty(), KBD_COMMAND, KBD_STATUS, and outb().
Referenced by ec_enter_acpi_mode(), ec_enter_apm_mode(), ec_get_smi_event(), ec_it8518_get_event(), enter_apm_mode(), mainboard_smi_apmc(), mainboard_smi_ec(), mainboard_smi_sleep(), parrot_ec_init(), parrot_rev(), set_keyboard_matrix_us(), and stout_ec_init().
Definition at line 83 of file ec.c.
References ec_input_buffer_empty(), input_buffer_empty(), kbc_input_buffer_empty(), KBD_DATA, KBD_STATUS, and outb().
Referenced by ec_enter_acpi_mode(), ec_enter_apm_mode(), enter_apm_mode(), mainboard_smi_apmc(), mainboard_smi_sleep(), parrot_ec_init(), parrot_rev(), and set_keyboard_matrix_us().
Definition at line 95 of file ec.c.
References addr, ec_read_ob(), ec_write_cmd(), ec_write_ib(), and RD_EC.
Definition at line 73 of file ec.c.
References EC_DATA, ec_output_buffer_full(), EC_SC, inb(), and output_buffer_full().
Referenced by ec_it8518_get_event(), ec_mem_read(), and ec_read().
Definition at line 102 of file ec.c.
References addr, ec_write_cmd(), ec_write_ib(), and WR_EC.
Definition at line 79 of file ec.c.
References EC_COMMAND, ec_input_buffer_empty(), EC_SC, input_buffer_empty(), and outb().
Referenced by early_ec_init(), ec_it8518_get_event(), ec_mem_read(), ec_mem_write(), ec_read(), ec_write(), mainboard_smi_apmc(), and mainboard_suspend_resume().
Definition at line 85 of file ec.c.
References EC_DATA, ec_input_buffer_empty(), EC_SC, input_buffer_empty(), and outb().
Referenced by ec_mem_read(), ec_mem_write(), ec_read(), and ec_write().