96 fwvh >> 4, fwvh & 0x0f, fwvl >> 4, 0x41 + (fwvl & 0xf));
109 if (event < 0 || event > 127)
117 if (event < 0 || event > 127)
170 for (i = 0; i < 8; i++) {
172 if (c < 0x20 || c > 0x7f) {
173 i =
snprintf(str,
sizeof(str),
"*INVALID");
188 #if CONFIG(GENERATE_SMBIOS_TABLES)
191 char tpec[] =
"IBM ThinkPad Embedded Controller -[ ]-";
204 #if CONFIG(HAVE_ACPI_TABLES)
205 static const char *h8_acpi_name(
const struct device *dev)
212 #if CONFIG(GENERATE_SMBIOS_TABLES)
213 .get_smbios_strings = h8_smbios_strings,
215 #if CONFIG(HAVE_ACPI_TABLES)
217 .acpi_name = h8_acpi_name,
318 if (
CONFIG(H8_HAS_PRIMARY_FN_KEYS))
static int acpi_is_wakeup_s3(void)
void * memcpy(void *dest, const void *src, size_t n)
int smbios_add_string(u8 *start, const char *str)
bool h8_has_bdc(const struct device *dev)
bool h8_bluetooth_nv_enable(void)
void h8_bluetooth_enable(int on)
#define printk(level,...)
void ec_set_bit(u8 addr, u8 bit)
void ec_clr_bit(u8 addr, u8 bit)
void ec_clear_out_queue(void)
int ec_write(u8 addr, u8 data)
static void h8_sticky_fn(int on)
void h8_enable_event(int event)
static void h8_log_ec_version(void)
struct device_operations h8_dev_ops
void h8_usb_power_enable(int onoff)
void h8_trackpoint_enable(int on)
static void h8_enable(struct device *dev)
void h8_wlan_enable(int on)
static void h8_charge_priority(enum battery battery)
static void h8_uwb_enable(int on)
static void h8_init(struct device *dev)
void __weak h8_mb_init(void)
static void h8_fn_ctrl_swap(int on)
void h8_usb_always_on_enable(enum usb_always_on on)
int h8_ultrabay_device_present(void)
u8 h8_build_id_and_function_spec_version(char *buf, u8 buf_len)
void h8_set_audio_mute(int mute)
void h8_disable_event(int event)
struct chip_operations ec_lenovo_h8_ops
static void f1_to_f12_as_primary(int on)
#define H8_TRACKPOINT_OFF
#define H8_VOLUME_CONTROL
void h8_wwan_enable(int on)
#define H8_FAN_CONTROL_AUTO
bool h8_has_wwan(const struct device *dev)
#define H8_CONFIG0_TC_ENABLE
#define H8_CONFIG0_SMM_H8_ENABLE
#define H8_USB_ALWAYS_ON_AC_ONLY
bool h8_wwan_nv_enable(void)
#define H8_USB_ALWAYS_ON_ENABLE
#define H8_TRACKPOINT_CTRL
void h8_ssdt_generator(const struct device *dev)
uint8_t pc_keyboard_init(uint8_t probe_aux)
#define BIOS_INFO
BIOS_INFO - Expected events.
unsigned int get_uint_option(const char *name, const unsigned int fallback)
const struct smm_save_state_ops *legacy_ops __weak
struct device_operations * ops
DEVTREE_CONST void * chip_info
u8 has_power_management_beeps
u8 has_keyboard_backlight
#define c(value, pmcreg, dst_bits)
int snprintf(char *buf, size_t size, const char *fmt,...)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....