![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | EC_DATA 0x62 |
#define | EC_SC 0x66 |
#define | EC_SMI_EVT (1 << 6) |
#define | EC_SCI_EVT (1 << 5) |
#define | EC_BURST (1 << 4) |
#define | EC_CMD (1 << 3) |
#define | EC_IBF (1 << 1) |
#define | EC_OBF (1 << 0) |
#define | RD_EC 0x80 |
#define | WR_EC 0x81 |
#define | BE_EC 0x82 |
#define | BD_EC 0x83 |
#define | QR_EC 0x84 |
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_status (void) |
u8 | ec_query (void) |
u8 | ec_read (u8 addr) |
int | ec_write (u8 addr, u8 data) |
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) |
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 127 of file ec.c.
References recv_ec_data(), and send_ec_command().
Referenced by mainboard_smi_handle_ec_sci().
Definition at line 122 of file ec.c.
References ec_cmd_reg, and inb().
Referenced by ec_running(), and it8518_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_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().