Module Name:    src
Committed By:   uwe
Date:           Fri Apr  3 05:01:10 UTC 2009

Modified Files:
        src/sys/dev/hpc: files.hpcapm
        src/sys/dev/hpc/apm: apmdev.c files.apm

Log Message:
Use dev/apm/files.apm for APM options in opt_apm.h.

Now both apm and apmdev files.apm can be included so you can switch
from apmdev0 to apm0 at hpcapm0 in your kernel config easily.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/hpc/files.hpcapm
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/hpc/apm/apmdev.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/hpc/apm/files.apm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hpc/files.hpcapm
diff -u src/sys/dev/hpc/files.hpcapm:1.3 src/sys/dev/hpc/files.hpcapm:1.4
--- src/sys/dev/hpc/files.hpcapm:1.3	Fri Apr  3 04:21:51 2009
+++ src/sys/dev/hpc/files.hpcapm	Fri Apr  3 05:01:09 2009
@@ -1,32 +1,20 @@
-#	$NetBSD: files.hpcapm,v 1.3 2009/04/03 04:21:51 uwe Exp $
+#	$NetBSD: files.hpcapm,v 1.4 2009/04/03 05:01:09 uwe Exp $
 #	H/PC APM device emulator
 
-# XXX: transitioning from apmdev(4) to apm(4)
-# XXX: cannot include both, unfortunately
-#
+include "dev/hpc/apm/files.apm"
+
+# Transitioning from apmdev(4) to apm(4)
 # While drivers are not converted let kernels have either old
 #
-#   apmdev0 at hpcapm0	# defined in dev/hpc/apm/files.apm
+#   apmdev0 at hpcapm0
 #
 # 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
-
+attach	apm at apmdevif with apm_apmdevif
+file	dev/hpc/apm_apmdevif.c	apm_apmdevif
 
 define	hpcapmif { }
 device	hpcapm: apmdevif

Index: src/sys/dev/hpc/apm/apmdev.c
diff -u src/sys/dev/hpc/apm/apmdev.c:1.22 src/sys/dev/hpc/apm/apmdev.c:1.23
--- src/sys/dev/hpc/apm/apmdev.c:1.22	Fri Apr  3 04:13:17 2009
+++ src/sys/dev/hpc/apm/apmdev.c	Fri Apr  3 05:01:10 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: apmdev.c,v 1.22 2009/04/03 04:13:17 uwe Exp $ */
+/*	$NetBSD: apmdev.c,v 1.23 2009/04/03 05:01:10 uwe Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,10 +33,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.22 2009/04/03 04:13:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.23 2009/04/03 05:01:10 uwe Exp $");
 
 #ifdef _KERNEL_OPT
-#include "opt_apmdev.h"
+#include "opt_apm.h"
 #endif
 
 #ifdef APM_NOIDLE

Index: src/sys/dev/hpc/apm/files.apm
diff -u src/sys/dev/hpc/apm/files.apm:1.3 src/sys/dev/hpc/apm/files.apm:1.4
--- src/sys/dev/hpc/apm/files.apm:1.3	Fri Feb 24 13:06:12 2006
+++ src/sys/dev/hpc/apm/files.apm	Fri Apr  3 05:01:10 2009
@@ -1,12 +1,12 @@
-# $NetBSD: files.apm,v 1.3 2006/02/24 13:06:12 cube Exp $
+# $NetBSD: files.apm,v 1.4 2009/04/03 05:01:10 uwe Exp $
 
 #
 # Common APM support files
 #
-defflag	opt_apmdev.h	APM_DISABLE APM_FORCE_64K_SEGMENTS APM_NO_IDLE
-			APM_NO_STANDBY APM_V10_ONLY APM_NO_V12 APMDEBUG
-			APM_POWER_PRINT
-defparam opt_apmdev.h	APMDEBUG_VALUE APM_DISABLE_INTERRUPTS
+
+
+include "dev/apm/files.apm"
+
 define	apmdevif {}
 device	apmdev
 attach	apmdev at apmdevif

Reply via email to