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 add the dma command ext translations. pointed out by manuel. 2002-01-14 02:17:59 +00:00
bi
cardbus Undo my previous change that worked around a problem attaching a 3c562d. 2002-03-10 22:27:04 +00:00
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 - Always validate the return value read from the outbound FIFO. 2002-01-25 16:10:35 +00:00
hpc Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
i2c
i2o PR 15552: don't explode if the board fails to respond during initalization. 2002-03-08 11:37:04 +00:00
ic Add wait-for-ready code between setting MCE and changing data format, 2002-03-23 23:40:32 +00:00
ieee1394 Remove a variable that is unused after the previous ALTQ commit. 2002-03-06 05:33:05 +00:00
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 Add explicit support of OPL3-SA2 (YMF711). 2002-03-10 13:57:10 +00:00
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 Don't "extern int cold;" - this is in <sys/kernel.h>. 2002-03-04 02:19:07 +00:00
mvme Separate out devices common to many Motorola mvme boards (68k, 88k and ppc) 2002-02-12 20:38:43 +00:00
news
ofisa make this compile: 2002-02-03 23:17:58 +00:00
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 Search for space to attach a 3c562d correctly. From Hayakawa Koichi 2002-03-10 22:28:02 +00:00
podulebus Regen: Morley user/analogue. 2002-03-09 13:45:13 +00:00
qbus Call rlreset() per controller, not per disk. 2002-03-23 18:12:09 +00:00
raidframe Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
rasops Reorganise the wsfont stuff slightly so that multiple display adapters 2002-03-13 15:05:13 +00:00
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 SBP is a firewire/ieee1394 specific protocol, not a generic standard. Move this 2002-02-27 04:59:29 +00:00
sun Changed some preprocessor tests for SUN4 to test for !SUN4U 2002-03-22 00:14:37 +00:00
sysmon The device close routine is called when _last_ descriptor to the 2002-01-03 22:35:53 +00:00
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 Call malloc(9) with M_ZERO flag instead of bzero() after malloc(). 2002-01-14 13:32:44 +00:00
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 Move prototypes of sampling rate functions to aurateconvproto.h. 2002-03-09 20:35:28 +00:00
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 Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
ccdvar.h
clock_subr.c
clock_subr.h
clockctl.c Two more trivial bug fixes: 2002-03-01 22:58:33 +00:00
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 * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options 2002-03-10 19:56:37 +00:00
md.c Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-13 19:28:06 +00:00
md.h
midi_if.h
midi.c
midisyn.c Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-13 19:28:06 +00:00
midisynvar.h
midivar.h
mm.c Start of mi /dev/{mem,kmem,zero,null} driver. We add an ioctl entry, because 2002-02-27 01:16:14 +00:00
mulaw.c Add new two convert functions slinear16_to_alaw_[lb]e. 2002-03-09 05:39:00 +00:00
mulaw.h Add new two convert functions slinear16_to_alaw_[lb]e. 2002-03-09 05:39:00 +00:00
radio_if.h
radio.c Initialize _ca struct right. 2002-01-05 01:30:01 +00:00
radiovar.h
rnd.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
rndpool.c
sequencer.c Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-13 19:28:06 +00:00
sequencervar.h
vnd.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
vndvar.h