apm_power_info
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
int aplsmc_apminfo(struct apm_power_info *);
aplsmc_apminfo(struct apm_power_info *info)
int (*get_apminfo)(struct apm_power_info *) = apm_getdefaultinfo;
struct apm_power_info *power;
power = (struct apm_power_info *)data;
apm_getdefaultinfo(struct apm_power_info *info)
apm_setinfohook(int (*hook)(struct apm_power_info *))
int apm_getdefaultinfo(struct apm_power_info *);
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
void apm_setinfohook(int (*)(struct apm_power_info *));
struct apm_power_info *powerp =
(struct apm_power_info *)data;
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
int (*get_apminfo)(struct apm_power_info *) = apm_getdefaultinfo;
struct apm_power_info *power;
power = (struct apm_power_info *)data;
apm_getdefaultinfo(struct apm_power_info *info)
apm_setinfohook(int (*hook)(struct apm_power_info *))
int apm_getdefaultinfo(struct apm_power_info *);
int ykbec_apminfo(struct apm_power_info *);
struct apm_power_info ykbec_apmdata;
struct apm_power_info old;
ykbec_apminfo(struct apm_power_info *info)
bcopy(&ykbec_apmdata, info, sizeof(struct apm_power_info));
int stsec_apminfo(struct apm_power_info *);
struct apm_power_info stsec_apmdata;
struct apm_power_info old;
stsec_apminfo(struct apm_power_info *info)
bcopy(&stsec_apmdata, info, sizeof(struct apm_power_info));
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
void apm_setinfohook(int (*)(struct apm_power_info *));
struct apm_power_info *power;
power = (struct apm_power_info *)data;
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
#define APM_IOC_GETPOWER _IOR('A', 3, struct apm_power_info) /* fetch battery state */
acpi_apminfo(struct apm_power_info *pi)
struct apm_power_info *pi = (struct apm_power_info *)data;
struct apm_power_info;
int acpi_apminfo(struct apm_power_info *);
struct apm_power_info cwfg_power = {
cwfg_apminfo(struct apm_power_info *info)
struct apm_power_info qcpas_pmic_rtr_apm_power_info;
struct apm_power_info *info;
qcpas_pmic_rtr_apminfo(struct apm_power_info *info)
struct apm_power_info *info = &qcpas_pmic_rtr_apm_power_info;
int qcpas_pmic_rtr_apminfo(struct apm_power_info *);
pijuice_apminfo(struct apm_power_info *info)
int pijuice_apminfo(struct apm_power_info *);
struct apm_power_info batterystate;
power_status(int fd, int force, struct apm_power_info *pinfo)
struct apm_power_info bstate;
static struct apm_power_info last;
struct apm_power_info pinfo;
int power_status(int fd, int force, struct apm_power_info *pinfo);