![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pnp.h>
#include <delay.h>
#include <elog.h>
#include <pc80/keyboard.h>
#include "ec.h"
#include "chip.h"
Go to the source code of this file.
Functions | |
static int | ec_input_buffer_empty (u8 status_port) |
static int | ec_output_buffer_full (u8 status_port) |
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_mem_read (u8 addr) |
void | ec_mem_write (u8 addr, u8 data) |
static void | ene_kb3940q_log_events (void) |
static void | ene_kb3940q_init (struct device *dev) |
static void | enable_dev (struct device *dev) |
Variables | |
static struct device_operations | ops |
static struct pnp_info | pnp_dev_info [] |
struct chip_operations | ec_quanta_ene_kb3940q_ops |
|
static |
Definition at line 15 of file ec.c.
References BIOS_WARNING, inb(), KBC_TIMEOUT_IN_MS, KBD_IBF, mdelay(), and printk.
Referenced by ec_kbc_write_cmd(), ec_kbc_write_ib(), ec_write_cmd(), and ec_write_ib().
Definition at line 54 of file ec.c.
References ec_output_buffer_full(), inb(), KBD_DATA, and KBD_STATUS.
Definition at line 60 of file ec.c.
References ec_input_buffer_empty(), KBD_COMMAND, KBD_STATUS, and outb().
Definition at line 66 of file ec.c.
References ec_input_buffer_empty(), KBD_DATA, KBD_STATUS, and outb().
Definition at line 94 of file ec.c.
References addr, EC_CMD_READ_RAM, ec_read_ob(), ec_write_cmd(), and ec_write_ib().
Referenced by butterfly_ec_init(), ene_kb3940q_log_events(), get_lid_switch(), and mainboard_smi_sleep().
Definition at line 101 of file ec.c.
References addr, EC_CMD_WRITE_RAM, ec_write_cmd(), and ec_write_ib().
Referenced by butterfly_ec_init(), mainboard_smi_sleep(), and program_keyboard_type().
|
static |
Definition at line 29 of file ec.c.
References BIOS_INFO, inb(), KBC_TIMEOUT_IN_MS, KBD_OBF, mdelay(), and printk.
Referenced by ec_kbc_read_ob(), and ec_read_ob().
Definition at line 73 of file ec.c.
References EC_DATA, ec_output_buffer_full(), EC_SC, and inb().
Referenced by ec_it8518_get_event(), ec_mem_read(), and ec_read().
Definition at line 79 of file ec.c.
References EC_COMMAND, ec_input_buffer_empty(), EC_SC, 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, and outb().
Referenced by ec_mem_read(), ec_mem_write(), ec_read(), and ec_write().
Definition at line 117 of file ec.c.
References BIOS_DEBUG, device::enabled, ene_kb3940q_log_events(), NO_AUX_DEVICE, pc_keyboard_init(), and printk.
Definition at line 108 of file ec.c.
References CONFIG, ec_mem_read(), EC_SHUTDOWN_REASON, elog_add_event_byte(), and ELOG_TYPE_EC_SHUTDOWN.
Referenced by ene_kb3940q_init().
struct chip_operations ec_quanta_ene_kb3940q_ops |
|
static |