xref: /netbsd-src/sys/dev/hpc/files.hpcapm (revision c03d662b393a64d53249b7489dd057f3e3bebb2b)
1#	$NetBSD: files.hpcapm,v 1.3 2009/04/03 04:21:51 uwe Exp $
2#	H/PC APM device emulator
3
4# XXX: transitioning from apmdev(4) to apm(4)
5# XXX: cannot include both, unfortunately
6#
7# While drivers are not converted let kernels have either old
8#
9#   apmdev0 at hpcapm0	# defined in dev/hpc/apm/files.apm
10#
11# to maintain status quo, xor new
12#
13#   apm0 at hpcapm0
14#
15# for those who do driver convertion to pmf(9).
16
17#-if old apmdev(4) - dopowerhooks(9)
18
19include "dev/hpc/apm/files.apm"
20
21#-else new apm(4) - pmf(9)
22
23#include "dev/apm/files.apm"
24#define	apmdevif {}
25#attach	apm at apmdevif with apm_apmdevif
26#file	dev/hpc/apm_apmdevif.c	apm_apmdevif
27
28#-endif
29
30
31define	hpcapmif { }
32device	hpcapm: apmdevif
33attach	hpcapm at hpcapmif
34file	dev/hpc/hpcapm.c	hpcapm
35
36defflag	opt_hpcapm.h		HPCAPMDEBUG
37defparam opt_hpcapm.h		HPCAPMDEBUG_CONF
38