diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-01-20 23:34:38 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-01-20 23:34:38 +0000 |
commit | 09c839285bbc7eb5a6fd783b65e8062bddd7bf9d (patch) | |
tree | c26433986555f84a9e6a6b6a35d84bf7e4145f5e /sys/arch/arm/xscale/pxa2x0_apm.h | |
parent | 7e9121dd734b5d2fa58cbcd88fab714a947d8397 (diff) |
Enable apm/scoop drivers and report A/C power status correctly.
ok drahn@
Diffstat (limited to 'sys/arch/arm/xscale/pxa2x0_apm.h')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_apm.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_apm.h b/sys/arch/arm/xscale/pxa2x0_apm.h index 61cd37c92e5..719f0e0ddfa 100644 --- a/sys/arch/arm/xscale/pxa2x0_apm.h +++ b/sys/arch/arm/xscale/pxa2x0_apm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_apm.h,v 1.1 2005/01/19 02:02:34 uwe Exp $ */ +/* $OpenBSD: pxa2x0_apm.h,v 1.2 2005/01/20 23:34:36 uwe Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> @@ -23,6 +23,16 @@ #include <machine/bus.h> +#define PXAAPM_AC_PRESENT (1<<0) +#define PXAAPM_BATT_PRESENT (1<<1) + +struct pxaapm_battery_info { + int flags; + u_int cur_charge; + u_int max_charge; + int draw; +}; + struct pxa2x0_apm_softc { struct device sc_dev; struct proc *sc_thread; @@ -31,6 +41,8 @@ struct pxa2x0_apm_softc { int sc_flags; bus_space_tag_t sc_iot; bus_space_handle_t sc_pm_ioh; + void (*sc_battery_info)(struct pxaapm_battery_info *); + void (*sc_periodic_check)(struct pxa2x0_apm_softc *); }; extern void pxa2x0_apm_attach_sub(struct pxa2x0_apm_softc *); |