![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <delay.h>
#include <stdint.h>
#include "ec.h"
Go to the source code of this file.
Functions | |
int | send_ec_command (u8 command) |
int | send_ec_data (u8 data) |
int | send_ec_data_nowait (u8 data) |
u8 | recv_ec_data (void) |
void | ec_clear_out_queue (void) |
u8 | ec_read (u8 addr) |
int | ec_write (u8 addr, u8 data) |
u8 | ec_status (void) |
u8 | ec_query (void) |
void | ec_set_bit (u8 addr, u8 bit) |
void | ec_clr_bit (u8 addr, u8 bit) |
void | ec_set_ports (u16 cmd_reg, u16 data_reg) |
Variables | |
static u16 | ec_cmd_reg = EC_SC |
static u16 | ec_data_reg = EC_DATA |
Definition at line 92 of file ec.c.
References BIOS_ERR, BIOS_SPEW, ec_cmd_reg, ec_data_reg, EC_OBF, inb(), printk, and udelay().
Referenced by mainboard_smi_apmc().
Definition at line 138 of file ec.c.
References addr, ec_read(), and ec_write().
Referenced by dock_disconnect(), f1_to_f12_as_primary(), h8_bluetooth_enable(), h8_charge_priority(), h8_disable_event(), h8_fn_ctrl_swap(), h8_set_audio_mute(), h8_sticky_fn(), h8_usb_power_enable(), h8_uwb_enable(), h8_wlan_enable(), h8_wwan_enable(), mainboard_init(), mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 127 of file ec.c.
References recv_ec_data(), and send_ec_command().
Referenced by mainboard_smi_handle_ec_sci().
Definition at line 107 of file ec.c.
References addr, recv_ec_data(), send_ec_command(), and send_ec_data().
Referenced by configure_ec_gpio(), early_ec_init(), ec_clr_bit(), ec_enable_devices(), ec_get_version(), ec_init(), ec_it8518_enable_wake_events(), ec_running(), ec_set_bit(), enable_rf_by_capability(), get_lid_switch(), h8_build_id_and_function_spec_version(), h8_get_fn_key(), h8_get_sense_ready(), h8_log_ec_version(), h8_ultrabay_device_present(), h8_usb_always_on_enable(), mainboard_io_trap_handler(), mainboard_smi_hotkey(), mainboard_smi_save_cmos(), mainboard_smi_sleep(), stout_ec_finalize_smm(), and stout_ec_init().
Definition at line 133 of file ec.c.
References addr, ec_read(), and ec_write().
Referenced by bootblock_mainboard_early_init(), dock_connect(), f1_to_f12_as_primary(), h8_bluetooth_enable(), h8_charge_priority(), h8_enable_event(), h8_fn_ctrl_swap(), h8_set_audio_mute(), h8_sticky_fn(), h8_usb_power_enable(), h8_uwb_enable(), h8_wlan_enable(), h8_wwan_enable(), mainboard_final(), mainboard_init(), mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 143 of file ec.c.
References ec_cmd_reg, ec_data_reg, and ENV_STAGE_HAS_DATA_SECTION.
Referenced by chausie_ec_init(), mainboard_smi_apmc(), mainboard_smi_gpi(), and wilco_ec_init().
Definition at line 122 of file ec.c.
References ec_cmd_reg, and inb().
Referenced by ec_running(), and it8518_init().
Definition at line 115 of file ec.c.
References addr, send_ec_command(), and send_ec_data().
Referenced by configure_ec_gpio(), dock_connect(), dock_disconnect(), ec_clr_bit(), ec_enable(), ec_enable_devices(), ec_it8518_enable_wake_events(), ec_set_bit(), ec_setup(), enable_rf_by_capability(), h8_panic(), h8_trackpoint_enable(), h8_usb_always_on_enable(), handle_acpi_osys(), lumpy_ec_init(), m3885_gpio(), mainboard_enable(), mainboard_init(), mainboard_io_trap_handler(), mainboard_smi_apmc(), mainboard_smi_handle_ec_sci(), mainboard_smi_hotkey(), mainboard_smi_sleep(), merlin_init(), stout_ec_init(), and wilco_ec_init().
Definition at line 65 of file ec.c.
References BIOS_DEBUG, BIOS_SPEW, ec_cmd_reg, ec_data_reg, EC_OBF, inb(), printk, and udelay().
Referenced by board_id(), ec_cmd_90_read(), ec_cmd_94_query(), ec_query(), ec_read(), ec_send_time(), get_board_id(), and get_ec_boardinfo().
int send_ec_command | ( | u8 | command | ) |
Definition at line 13 of file ec.c.
References BIOS_DEBUG, BIOS_SPEW, ec_cmd_reg, EC_IBF, inb(), outb(), printk, and udelay().
Referenced by board_id(), ec_cmd_90_read(), ec_cmd_91_write(), ec_cmd_94_query(), ec_query(), ec_read(), ec_send_time(), ec_setup(), ec_write(), get_board_id(), get_ec_boardinfo(), it8516e_set_fan_limits(), it8516e_set_fan_mode(), it8516e_set_fan_pwm(), it8516e_set_fan_speed(), it8516e_set_fan_temperature(), it8516e_set_systemp_type(), it8518_init(), lumpy_ec_init(), mainboard_smi_apmc(), mainboard_smi_gpi(), mainboard_suspend_resume(), and read_ec_command_byte().
int send_ec_data | ( | u8 | data | ) |
Definition at line 35 of file ec.c.
References BIOS_DEBUG, BIOS_SPEW, ec_cmd_reg, ec_data_reg, EC_IBF, inb(), outb(), printk, and udelay().
Referenced by ec_cmd_90_read(), ec_cmd_91_write(), ec_read(), ec_send_time(), ec_write(), it8516e_set_fan_limits(), it8516e_set_fan_mode(), it8516e_set_fan_pwm(), it8516e_set_fan_speed(), it8516e_set_fan_temperature(), it8516e_set_systemp_type(), it8518_init(), and mainboard_smi_apmc().
int send_ec_data_nowait | ( | u8 | data | ) |
Definition at line 58 of file ec.c.
References ec_data_reg, and outb().
Definition at line 10 of file ec.c.
Referenced by ec_clear_out_queue(), ec_set_ports(), ec_status(), recv_ec_data(), send_ec_command(), and send_ec_data().
Definition at line 11 of file ec.c.
Referenced by ec_clear_out_queue(), ec_set_ports(), recv_ec_data(), send_ec_data(), and send_ec_data_nowait().