NetBSD/sys/dev
sommerfeld b8de140e4e Prototype ACPI Control Method Battery driver.
ACPI defines two different battery device interfaces: "Control Method"
batteries, in which AML methods are defined in order to get battery
status and set battery alarm thresholds, and a "Smart Battery" device,
which is an SMbus device accessed through the ACPI Embedded Controller
device; this driver knows how to attach to the former sort of device.

As a total kludge, since we haven't wired things up to sysmon/envsys
yet, we report battery status through a once-per-minute kernel printf,
so don't use this driver yet if you want your disk to spin down.

Motivated by and tested on Sony PCG-R505TL laptop, which has
nonfunctional APM.

configure as:

acpibat* at acpi ?

Sample output:

acpibat0 at acpi0: ACPI Battery
acpibat0: Sony Corp. LION
acpibat0: Design 38480mWh, Predicted 38480mWh Warn 120mWh Low 0mWh
acpibat0: discharging: 15112mV cap 25480mWh (66%) rate 16849mW
...
acpibat0: discharging: 15224mV cap 25070mWh (65%) rate 18405mW
...
acpibat0: discharging: 15200mV cap 24310mWh (63%) rate 13771mW
...
acpibat0: charging: 15768mV cap 23330mWh (60%) rate 20388mW
2002-03-24 03:46:10 +00:00
..
acpi Prototype ACPI Control Method Battery driver. 2002-03-24 03:46:10 +00:00
arcbios Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
ata
bi
cardbus
dec Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
ebus Fix some handle/tag confusion. This makes it compile on sparc64 again. 2002-03-22 11:52:07 +00:00
eisa
hpc Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
i2c
i2o
ic Add wait-for-ready code between setting MCE and changing data format, 2002-03-23 23:40:32 +00:00
ieee1394
ir Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
isa Bring the daic driver into the new ISDN world order. 2002-03-22 09:54:15 +00:00
isapnp
mca
microcode Cast for now non-const in ispdv structure. 2002-03-22 02:31:09 +00:00
mii lxtphy needs the ukphy_subr attribute now. 2002-03-17 01:34:48 +00:00
mscp
mvme
news
ofisa
ofw Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
pci whitespace and folding fix. 2002-03-23 17:17:10 +00:00
pckbc New mouse code from Peter Seebach. 2002-03-20 17:06:51 +00:00
pcmcia
podulebus
qbus Call rlreset() per controller, not per disk. 2002-03-23 18:12:09 +00:00
raidframe
rasops
rcons
sbus Properly bus_space_*=ify this so it uses accessors. 2002-03-21 00:25:41 +00:00
scsipi kern/16014- if we do an 'mt offline', make sure we've allowed the tape 2002-03-22 21:39:36 +00:00
std
sun Changed some preprocessor tests for SUN4 to test for !SUN4U 2002-03-22 00:14:37 +00:00
sysmon
tc Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
usb whitespace and folding fix. 2002-03-23 17:17:10 +00:00
vme
wscons Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
wsfont - Allocate enough space to hold an object. 2002-03-21 03:26:55 +00:00
xmi
auconv.c audio.c: revert a part of previous change. 2002-03-15 14:55:03 +00:00
auconv.h
audio_if.h Rename aurateconvproto.h to aurateconv.h. 2002-03-17 11:36:37 +00:00
audio.c whitespace and folding fix. 2002-03-23 17:17:10 +00:00
audiovar.h Make this file compiles again when AURATECONV > 0. 2002-03-18 00:42:36 +00:00
aurateconv.c Make this file compiles again when AURATECONV > 0. 2002-03-18 00:42:36 +00:00
ccd.c
ccdvar.h
clock_subr.c
clock_subr.h
clockctl.c
cninit.c
cons.c
cons.h
DEVNAMES Add uvscom. 2002-03-19 15:19:43 +00:00
ld.c
ldvar.h
Makefile
md_root.c
md.c
md.h
midi_if.h
midi.c
midisyn.c
midisynvar.h
midivar.h
mm.c
mulaw.c
mulaw.h
radio_if.h
radio.c
radiovar.h
rnd.c
rndpool.c
sequencer.c
sequencervar.h
vnd.c
vndvar.h