Config glue for attaching apm at apmdevif.

Unfortunately dev/apm/files.apm and dev/hpc/apm/files.apm cannot be
included both at the same time (they define same options and config(1)
complains), so you need to comment out old code and uncomment new code
to be able to replace "apmdev0 at hpcapm0" with "apm0 at hpcapm0" in
your kernel config.
This commit is contained in:
uwe 2009-04-03 04:21:51 +00:00
parent ea06597b80
commit c03d662b39
1 changed files with 26 additions and 1 deletions

View File

@ -1,8 +1,33 @@
# $NetBSD: files.hpcapm,v 1.2 2006/10/09 10:33:42 peter Exp $
# $NetBSD: files.hpcapm,v 1.3 2009/04/03 04:21:51 uwe Exp $
# H/PC APM device emulator
# XXX: transitioning from apmdev(4) to apm(4)
# XXX: cannot include both, unfortunately
#
# While drivers are not converted let kernels have either old
#
# apmdev0 at hpcapm0 # defined in dev/hpc/apm/files.apm
#
# to maintain status quo, xor new
#
# apm0 at hpcapm0
#
# for those who do driver convertion to pmf(9).
#-if old apmdev(4) - dopowerhooks(9)
include "dev/hpc/apm/files.apm"
#-else new apm(4) - pmf(9)
#include "dev/apm/files.apm"
#define apmdevif {}
#attach apm at apmdevif with apm_apmdevif
#file dev/hpc/apm_apmdevif.c apm_apmdevif
#-endif
define hpcapmif { }
device hpcapm: apmdevif
attach hpcapm at hpcapmif