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.
Enumerations | |
enum | usb_always_on { UAO_OFF = 0 , UAO_AC_AND_BATTERY = 1 , UAO_AC_ONLY = 2 } |
Functions | |
void | h8_trackpoint_enable (int on) |
void | h8_wlan_enable (int on) |
void | h8_set_audio_mute (int on) |
void | h8_usb_always_on_enable (enum usb_always_on on) |
void | h8_usb_power_enable (int on) |
void | h8_enable_event (int event) |
void | h8_disable_event (int event) |
int | h8_ultrabay_device_present (void) |
u8 | h8_build_id_and_function_spec_version (char *buf, u8 buf_len) |
void | h8_usb_always_on (void) |
int | h8_get_fn_key (void) |
Return the state of Fn key. More... | |
int | h8_get_sense_ready (void) |
Return the EC sense status register state. More... | |
void | h8_bluetooth_enable (int on) |
bool | h8_bluetooth_nv_enable (void) |
bool | h8_has_bdc (const struct device *dev) |
void | h8_wwan_enable (int on) |
bool | h8_wwan_nv_enable (void) |
bool | h8_has_wwan (const struct device *dev) |
void | h8_ssdt_generator (const struct device *dev) |
void | h8_mb_init (void) |
#define H8_LED_CONTROL_PULSE 0xa0 /* Some models, power LED only*/ |
enum usb_always_on |
void h8_bluetooth_enable | ( | int | on | ) |
Definition at line 16 of file bluetooth.c.
References ec_clr_bit(), and ec_set_bit().
Definition at line 49 of file bluetooth.c.
References get_uint_option().
Definition at line 164 of file h8.c.
References buf, c, ec_read(), memcpy(), MIN, and snprintf().
Referenced by h8_log_ec_version().
void h8_disable_event | ( | int | event | ) |
Definition at line 115 of file h8.c.
References ec_clr_bit().
void h8_enable_event | ( | int | event | ) |
Definition at line 107 of file h8.c.
References ec_set_bit().
int h8_get_fn_key | ( | void | ) |
Return the state of Fn key.
Only valid if h8_get_sense_ready (see above) returns true.
Definition at line 38 of file sense.c.
References ec_read(), H8_STATUS0, and H8_STATUS0_FN_KEY_DOWN.
Referenced by get_recovery_mode_switch().
int h8_get_sense_ready | ( | void | ) |
Return the EC sense status register state.
Observations showed the sense registers are all zero until the EC populates them after some time. Likely the EC sets all bits to it's valid state at once, but there's no prove as the firmware isn't available.
Wait for any register having at least one bit set. Unlikely that all register will be zero after booting has finished.
Definition at line 19 of file sense.c.
References ARRAY_SIZE, ec_read(), H8_STATUS0, H8_STATUS1, H8_STATUS2, and H8_STATUS3.
Referenced by get_recovery_mode_switch().
Definition at line 27 of file bluetooth.c.
References ec_lenovo_h8_config::bdc_gpio_lvl, ec_lenovo_h8_config::bdc_gpio_num, BIOS_INFO, device::chip_info, get_gpio(), ec_lenovo_h8_config::has_bdc_detection, and printk.
Referenced by h8_ssdt_generator().
Definition at line 25 of file wwan.c.
References BIOS_INFO, device::chip_info, get_gpio(), ec_lenovo_h8_config::has_wwan_detection, printk, ec_lenovo_h8_config::wwan_gpio_lvl, and ec_lenovo_h8_config::wwan_gpio_num.
Referenced by h8_ssdt_generator().
Definition at line 222 of file h8.c.
References BIOS_DEBUG, dock_connect(), dock_present(), and printk.
void h8_set_audio_mute | ( | int | on | ) |
Definition at line 99 of file h8.c.
References ec_clr_bit(), and ec_set_bit().
Definition at line 24 of file ssdt.c.
References acpi_device_path(), acpigen_pop_len(), acpigen_write_name_byte(), acpigen_write_scope(), BIOS_INFO, device::chip_info, h8_dsdt_scope(), h8_has_bdc(), h8_has_wwan(), ec_lenovo_h8_config::has_keyboard_backlight, ec_lenovo_h8_config::has_uwb, ONE_OP, printk, and ZERO_OP.
void h8_trackpoint_enable | ( | int | on | ) |
Definition at line 17 of file h8.c.
References ec_write(), H8_TRACKPOINT_CTRL, H8_TRACKPOINT_OFF, and H8_TRACKPOINT_ON.
int h8_ultrabay_device_present | ( | void | ) |
Definition at line 159 of file h8.c.
References ec_read(), and H8_STATUS1.
Referenced by mainboard_init().
void h8_usb_always_on_enable | ( | enum usb_always_on | on | ) |
Definition at line 123 of file h8.c.
References ec_read(), ec_write(), H8_USB_ALWAYS_ON, H8_USB_ALWAYS_ON_AC_ONLY, H8_USB_ALWAYS_ON_ENABLE, UAO_AC_AND_BATTERY, UAO_AC_ONLY, UAO_OFF, and val.
void h8_usb_power_enable | ( | int | on | ) |
Definition at line 151 of file h8.c.
References ec_clr_bit(), and ec_set_bit().
void h8_wlan_enable | ( | int | on | ) |
Definition at line 24 of file h8.c.
References ec_clr_bit(), and ec_set_bit().
void h8_wwan_enable | ( | int | on | ) |
Definition at line 14 of file wwan.c.
References ec_clr_bit(), and ec_set_bit().
Definition at line 47 of file wwan.c.
References get_uint_option().