add battery at pmu

This commit is contained in:
macallan 2007-02-15 02:06:48 +00:00
parent f41db58cbf
commit 63b3b74e9f
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.251 2007/01/18 00:58:55 macallan Exp $
# $NetBSD: GENERIC,v 1.252 2007/02/15 02:06:48 macallan Exp $
#
# GENERIC machine description file
#
@ -22,7 +22,7 @@ include "arch/macppc/conf/std.macppc"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.251 $"
#ident "GENERIC-$Revision: 1.252 $"
maxusers 32
@ -366,6 +366,7 @@ wskbd0 at akbd? console ?
#cuda* at obio? # CUDA, for Old World PowerMacs
#pmu* at obio? # PMU, *Books and newer PowerMacs
#battery* at pmu? # legacy battery, for ohare-based PowerBooks
#iic0 at cuda0 # CUDA's IIC bus
#sgsmix0 at iic0 addr 0x8a # additional mixer found in beige G3

View File

@ -1,4 +1,4 @@
# $NetBSD: files.macppc,v 1.78 2007/02/10 19:10:24 macallan Exp $
# $NetBSD: files.macppc,v 1.79 2007/02/15 02:06:48 macallan Exp $
#
# macppc-specific configuration info
@ -159,6 +159,12 @@ defflag opt_pmu.h PMU_VERBOSE
device pmu : adb_bus, i2cbus
attach pmu at obio
file arch/macppc/dev/pmu.c pmu needs-flag
define pmu_bus {}
device battery : sysmon_envsys, sysmon_power, sysmon_taskq
attach battery at pmu_bus
file arch/macppc/dev/battery.c battery
defflag opt_battery.h BATTERY_DEBUG
device adb {}
attach adb at obio