Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/macppc/dev
Module Name: src
Committed By: briggs
Date: Tue Feb 1 02:46:00 UTC 2005
Modified Files:
src/sys/arch/macppc/dev: adb.c pm_direct.c pm_direct.h
Log Message:
Add a PMU initialization call at ADB init time. This probes the machine
type for PMU / battery information, then uses that when getting battery
information for APM. Allows older PowerBooks (pre-smart batteries) to
function with apm enabled in the kernel. Thanks to Linux code for battery
information for these old batteries. Something is still odd, though,
because a charging battery can show > 100% when it's near to full charge.
Enable more interrupts from PMU and handle PB3400 card eject buttons
properly, too.
Also use #defines for commands instead of raw hex codes.
To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 src/sys/arch/macppc/dev/adb.c
cvs rdiff -r1.22 -r1.23 src/sys/arch/macppc/dev/pm_direct.c
cvs rdiff -r1.8 -r1.9 src/sys/arch/macppc/dev/pm_direct.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index