/* IdeaPad/Yoga ACPI EC battery and AC (see ideapad.c). * * The Yoga 720-13IKB exposes BAT1/ACAD through the ACPI EC's PCH memory * window at 0xFF000800. The DSDT _BST/_BIF methods read the fields from that * window; this backend does the same without an ACPI interpreter. */ #ifndef IDEAPAD_H #define IDEAPAD_H #include "power_src.h" /* Probe the EC memory window. Safe to call more than once. */ int ideapad_present(void); /* Boot probe; logs the backend when found. */ void ideapad_init(void); /* Fill out->battery[0] and the AC state from BAT1/ACAD. */ void ideapad_power_read(struct power_info *out, int detail); #endif