Expand PMF_FN_* macros. trunk
authordyoung <dyoung@NetBSD.org>
Fri, 08 Jan 2010 19:42:11 +0000
branchtrunk
changeset 186962 2dfb584c7415
parent 186961 2b4492d1272c
child 186963 ab1371b39099
Expand PMF_FN_* macros.
sys/arch/i386/pci/elan520.c
sys/arch/i386/pci/piixpcib.c
sys/arch/mips/atheros/dev/if_ath_arbus.c
sys/arch/sparc/dev/fd.c
sys/arch/sparc64/dev/fdc.c
sys/arch/x86/pci/ichlpcib.c
sys/arch/x86/pci/pchb.c
sys/arch/x86/x86/cpu.c
sys/arch/x86/x86/x86_autoconf.c
sys/arch/xen/x86/cpu.c
sys/arch/zaurus/dev/zaudio.c
sys/arch/zaurus/dev/zkbd.c
sys/arch/zaurus/dev/zlcd.c
sys/arch/zaurus/dev/zssp.c
sys/arch/zaurus/dev/ztp.c
sys/dev/ata/ata.c
sys/dev/ata/wd.c
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/ehci_cardbus.c
sys/dev/cardbus/if_ath_cardbus.c
sys/dev/cardbus/if_atw_cardbus.c
sys/dev/cardbus/if_rtw_cardbus.c
sys/dev/cardbus/siisata_cardbus.c
sys/dev/gpio/gpio.c
sys/dev/wscons/wsdisplay.c
sys/dev/wscons/wskbd.c
sys/dev/wsfb/genfbvar.h
sys/external/bsd/drm/dist/bsd-core/i915_drv.c
sys/external/bsd/drm/dist/bsd-core/radeon_drv.c
--- a/sys/arch/i386/pci/elan520.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/i386/pci/elan520.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: elan520.c,v 1.45 2010/01/08 00:09:44 dyoung Exp $	*/
+/*	$NetBSD: elan520.c,v 1.46 2010/01/08 19:45:28 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.45 2010/01/08 00:09:44 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.46 2010/01/08 19:45:28 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -847,7 +847,7 @@
 }
 
 static bool
-elansc_suspend(device_t dev PMF_FN_ARGS)
+elansc_suspend(device_t dev, pmf_qual_t qual)
 {
 	bool rc;
 	struct elansc_softc *sc = device_private(dev);
@@ -861,7 +861,7 @@
 }
 
 static bool
-elansc_resume(device_t dev PMF_FN_ARGS)
+elansc_resume(device_t dev, pmf_qual_t qual)
 {
 	struct elansc_softc *sc = device_private(dev);
 
@@ -947,7 +947,7 @@
 }
 
 static bool
-elanpex_resume(device_t self PMF_FN_ARGS)
+elanpex_resume(device_t self, pmf_qual_t qual)
 {
 	struct elansc_softc *sc = device_private(device_parent(self));
 
@@ -956,7 +956,7 @@
 }
 
 static bool
-elanpex_suspend(device_t self PMF_FN_ARGS)
+elanpex_suspend(device_t self, pmf_qual_t qual)
 {
 	struct elansc_softc *sc = device_private(device_parent(self));
 
@@ -966,7 +966,7 @@
 }
 
 static bool
-elanpar_resume(device_t self PMF_FN_ARGS)
+elanpar_resume(device_t self, pmf_qual_t qual)
 {
 	struct elansc_softc *sc = device_private(device_parent(self));
 
@@ -975,7 +975,7 @@
 }
 
 static bool
-elanpar_suspend(device_t self PMF_FN_ARGS)
+elanpar_suspend(device_t self, pmf_qual_t qual)
 {
 	struct elansc_softc *sc = device_private(device_parent(self));
 
--- a/sys/arch/i386/pci/piixpcib.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/i386/pci/piixpcib.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpcib.c,v 1.16 2008/07/20 16:52:33 martin Exp $ */
+/* $NetBSD: piixpcib.c,v 1.17 2010/01/08 19:45:28 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2004, 2006 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpcib.c,v 1.16 2008/07/20 16:52:33 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpcib.c,v 1.17 2010/01/08 19:45:28 dyoung Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -79,8 +79,8 @@
 static int piixpcibmatch(device_t, cfdata_t, void *);
 static void piixpcibattach(device_t, device_t, void *);
 
-static bool piixpcib_suspend(device_t PMF_FN_PROTO);
-static bool piixpcib_resume(device_t PMF_FN_PROTO);
+static bool piixpcib_suspend(device_t, pmf_qual_t);
+static bool piixpcib_resume(device_t, pmf_qual_t);
 
 static void speedstep_configure(struct piixpcib_softc *,
 				struct pci_attach_args *);
@@ -144,7 +144,7 @@
 }
 
 static bool
-piixpcib_suspend(device_t dv PMF_FN_ARGS)
+piixpcib_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct piixpcib_softc *sc = device_private(dv);
 
@@ -160,7 +160,7 @@
 }
 
 static bool
-piixpcib_resume(device_t dv PMF_FN_ARGS)
+piixpcib_resume(device_t dv, pmf_qual_t qual)
 {
 	struct piixpcib_softc *sc = device_private(dv);
 
--- a/sys/arch/mips/atheros/dev/if_ath_arbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/mips/atheros/dev/if_ath_arbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ath_arbus.c,v 1.16 2009/07/06 00:43:23 alc Exp $ */
+/* $NetBSD: if_ath_arbus.c,v 1.17 2010/01/08 19:49:13 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2006 Jared D. McNeill <jmcneill@invisible.ca>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ath_arbus.c,v 1.16 2009/07/06 00:43:23 alc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ath_arbus.c,v 1.17 2010/01/08 19:49:13 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -96,7 +96,7 @@
 }
 
 static bool
-ath_arbus_resume(device_t dv PMF_FN_ARGS)
+ath_arbus_resume(device_t dv, pmf_qual_t qual)
 {
 	struct ath_arbus_softc *asc = device_private(dv);
 	ath_resume(&asc->sc_ath);
--- a/sys/arch/sparc/dev/fd.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/sparc/dev/fd.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.147 2009/12/19 10:34:18 tsutsui Exp $	*/
+/*	$NetBSD: fd.c,v 1.148 2010/01/08 19:49:13 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.147 2009/12/19 10:34:18 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.148 2010/01/08 19:49:13 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_md.h"
@@ -292,7 +292,7 @@
 int	fdmatch(struct device *, struct cfdata *, void *);
 void	fdattach(struct device *, struct device *, void *);
 bool	fdshutdown(device_t, int);
-bool	fdsuspend(device_t PMF_FN_PROTO);
+bool	fdsuspend(device_t, pmf_qual_t);
 
 CFATTACH_DECL(fd, sizeof(struct fd_softc),
     fdmatch, fdattach, NULL, NULL);
@@ -809,7 +809,7 @@
 	return true;
 }
 
-bool fdsuspend(device_t self PMF_FN_ARGS)
+bool fdsuspend(device_t self, pmf_qual_t qual)
 {
 
 	return fdshutdown(self, boothowto);
--- a/sys/arch/sparc64/dev/fdc.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/sparc64/dev/fdc.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: fdc.c,v 1.31 2009/05/15 20:52:22 jnemeth Exp $	*/
+/*	$NetBSD: fdc.c,v 1.32 2010/01/08 19:49:14 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.31 2009/05/15 20:52:22 jnemeth Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.32 2010/01/08 19:49:14 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_md.h"
@@ -324,7 +324,7 @@
 int	fdmatch(struct device *, struct cfdata *, void *);
 void	fdattach(struct device *, struct device *, void *);
 bool	fdshutdown(device_t, int);
-bool	fdsuspend(device_t PMF_FN_PROTO);
+bool	fdsuspend(device_t, pmf_qual_t);
 
 CFATTACH_DECL(fd, sizeof(struct fd_softc),
     fdmatch, fdattach, NULL, NULL);
@@ -979,7 +979,7 @@
 	return true;
 }
 
-bool fdsuspend(device_t self PMF_FN_ARGS)
+bool fdsuspend(device_t self, pmf_qual_t qual)
 {
 
 	return fdshutdown(self, boothowto);
--- a/sys/arch/x86/pci/ichlpcib.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/x86/pci/ichlpcib.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ichlpcib.c,v 1.22 2010/01/08 00:09:45 dyoung Exp $	*/
+/*	$NetBSD: ichlpcib.c,v 1.23 2010/01/08 19:43:26 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.22 2010/01/08 00:09:45 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.23 2010/01/08 19:43:26 dyoung Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -123,8 +123,8 @@
 static int lpcibdetach(device_t, int);
 static void lpcibchilddet(device_t, device_t);
 static int lpcibrescan(device_t, const char *, const int *);
-static bool lpcib_suspend(device_t PMF_FN_PROTO);
-static bool lpcib_resume(device_t PMF_FN_PROTO);
+static bool lpcib_suspend(device_t, pmf_qual_t);
+static bool lpcib_resume(device_t, pmf_qual_t);
 static bool lpcib_shutdown(device_t, int);
 
 static void pmtimer_configure(device_t);
@@ -414,7 +414,7 @@
 }
 
 static bool
-lpcib_suspend(device_t dv PMF_FN_ARGS)
+lpcib_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct lpcib_softc *sc = device_private(dv);
 	pci_chipset_tag_t pc = sc->sc_pcib.sc_pc;
@@ -443,7 +443,7 @@
 }
 
 static bool
-lpcib_resume(device_t dv PMF_FN_ARGS)
+lpcib_resume(device_t dv, pmf_qual_t qual)
 {
 	struct lpcib_softc *sc = device_private(dv);
 	pci_chipset_tag_t pc = sc->sc_pcib.sc_pc;
--- a/sys/arch/x86/pci/pchb.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/x86/pci/pchb.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: pchb.c,v 1.19 2009/08/23 15:37:51 jmcneill Exp $ */
+/*	$NetBSD: pchb.c,v 1.20 2010/01/08 19:43:26 dyoung Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.19 2009/08/23 15:37:51 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.20 2010/01/08 19:43:26 dyoung Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -75,8 +75,8 @@
 void	pchbattach(device_t, device_t, void *);
 int	pchbdetach(device_t, int);
 
-static bool	pchb_resume(device_t PMF_FN_ARGS);
-static bool	pchb_suspend(device_t PMF_FN_ARGS);
+static bool	pchb_resume(device_t, pmf_qual_t);
+static bool	pchb_suspend(device_t, pmf_qual_t);
 
 CFATTACH_DECL3_NEW(pchb, sizeof(struct pchb_softc),
     pchbmatch, pchbattach, pchbdetach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
@@ -461,7 +461,7 @@
 }
 
 static bool
-pchb_suspend(device_t dv PMF_FN_ARGS)
+pchb_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct pchb_softc *sc = device_private(dv);
 	pci_chipset_tag_t pc;
@@ -478,7 +478,7 @@
 }
 
 static bool
-pchb_resume(device_t dv PMF_FN_ARGS)
+pchb_resume(device_t dv, pmf_qual_t qual)
 {
 	struct pchb_softc *sc = device_private(dv);
 	pci_chipset_tag_t pc;
--- a/sys/arch/x86/x86/cpu.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/x86/x86/cpu.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.65 2009/11/21 03:11:01 rmind Exp $	*/
+/*	$NetBSD: cpu.c,v 1.66 2010/01/08 19:43:26 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.65 2009/11/21 03:11:01 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.66 2010/01/08 19:43:26 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mpbios.h"		/* for MPDEBUG */
@@ -120,8 +120,8 @@
 int     cpu_match(device_t, cfdata_t, void *);
 void    cpu_attach(device_t, device_t, void *);
 
-static bool	cpu_suspend(device_t PMF_FN_PROTO);
-static bool	cpu_resume(device_t PMF_FN_PROTO);
+static bool	cpu_suspend(device_t, pmf_qual_t);
+static bool	cpu_resume(device_t, pmf_qual_t);
 
 struct cpu_softc {
 	device_t sc_dev;		/* device tree glue */
@@ -997,7 +997,7 @@
 
 /* XXX joerg restructure and restart CPUs individually */
 static bool
-cpu_suspend(device_t dv PMF_FN_ARGS)
+cpu_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct cpu_softc *sc = device_private(dv);
 	struct cpu_info *ci = sc->sc_info;
@@ -1025,7 +1025,7 @@
 }
 
 static bool
-cpu_resume(device_t dv PMF_FN_ARGS)
+cpu_resume(device_t dv, pmf_qual_t qual)
 {
 	struct cpu_softc *sc = device_private(dv);
 	struct cpu_info *ci = sc->sc_info;
--- a/sys/arch/x86/x86/x86_autoconf.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: x86_autoconf.c,v 1.47 2009/11/25 19:46:19 tron Exp $	*/
+/*	$NetBSD: x86_autoconf.c,v 1.48 2010/01/08 19:43:26 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.47 2009/11/25 19:46:19 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.48 2010/01/08 19:43:26 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,13 +94,13 @@
 }
 
 static bool
-x86_genfb_suspend(device_t dev PMF_FN_ARGS)
+x86_genfb_suspend(device_t dev, pmf_qual_t qual)
 {
 	return true;
 }
 
 static bool
-x86_genfb_resume(device_t dev PMF_FN_ARGS)
+x86_genfb_resume(device_t dev, pmf_qual_t qual)
 {
 #if NGENFB > 0
 	struct pci_genfb_softc *psc = device_private(dev);
--- a/sys/arch/xen/x86/cpu.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/xen/x86/cpu.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.39 2009/11/27 03:23:15 rmind Exp $	*/
+/*	$NetBSD: cpu.c,v 1.40 2010/01/08 19:43:26 dyoung Exp $	*/
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.39 2009/11/27 03:23:15 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.40 2010/01/08 19:43:26 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -1024,7 +1024,7 @@
 #if 0
 /* XXX joerg restructure and restart CPUs individually */
 static bool
-cpu_suspend(device_t dv PMF_FN_ARGS)
+cpu_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct cpu_softc *sc = device_private(dv);
 	struct cpu_info *ci = sc->sc_info;
@@ -1052,7 +1052,7 @@
 }
 
 static bool
-cpu_resume(device_t dv PMF_FN_ARGS)
+cpu_resume(device_t dv, pmf_qual_t qual)
 {
 	struct cpu_softc *sc = device_private(dv);
 	struct cpu_info *ci = sc->sc_info;
--- a/sys/arch/zaurus/dev/zaudio.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/zaurus/dev/zaudio.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: zaudio.c,v 1.10 2009/04/18 05:20:21 nonaka Exp $	*/
+/*	$NetBSD: zaudio.c,v 1.11 2010/01/08 19:42:11 dyoung Exp $	*/
 /*	$OpenBSD: zaurus_audio.c,v 1.8 2005/08/18 13:23:02 robert Exp $	*/
 
 /*
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zaudio.c,v 1.10 2009/04/18 05:20:21 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zaudio.c,v 1.11 2010/01/08 19:42:11 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -84,8 +84,8 @@
 
 static int	zaudio_match(device_t, cfdata_t, void *);
 static void	zaudio_attach(device_t, device_t, void *);
-static bool	zaudio_suspend(device_t dv PMF_FN_ARGS);
-static bool	zaudio_resume(device_t dv PMF_FN_ARGS);
+static bool	zaudio_suspend(device_t dv, pmf_qual_t);
+static bool	zaudio_resume(device_t dv, pmf_qual_t);
 
 #define ZAUDIO_OP_SPKR	0
 #define ZAUDIO_OP_HP	1
@@ -369,7 +369,7 @@
 }
 
 static bool
-zaudio_suspend(device_t dv PMF_FN_ARGS)
+zaudio_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct zaudio_softc *sc = device_private(dv);
 
@@ -380,7 +380,7 @@
 }
 
 static bool
-zaudio_resume(device_t dv PMF_FN_ARGS)
+zaudio_resume(device_t dv, pmf_qual_t qual)
 {
 	struct zaudio_softc *sc = device_private(dv);
 
--- a/sys/arch/zaurus/dev/zkbd.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/zaurus/dev/zkbd.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: zkbd.c,v 1.9 2009/01/29 16:00:33 nonaka Exp $	*/
+/*	$NetBSD: zkbd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $	*/
 /* $OpenBSD: zaurus_kbd.c,v 1.28 2005/12/21 20:36:03 deraadt Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zkbd.c,v 1.9 2009/01/29 16:00:33 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zkbd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $");
 
 #include "opt_wsdisplay_compat.h"
 #include "lcd.h"
@@ -131,7 +131,7 @@
 static int	zkbd_on(void *v);
 static int	zkbd_sync(void *v);
 static int	zkbd_hinge(void *v);
-static bool	zkbd_resume(device_t dv PMF_FN_ARGS);
+static bool	zkbd_resume(device_t dv, pmf_qual_t);
 
 int zkbd_modstate;
 
@@ -594,7 +594,7 @@
 }
 
 static bool
-zkbd_resume(device_t dv PMF_FN_ARGS)
+zkbd_resume(device_t dv, pmf_qual_t qual)
 {
 	struct zkbd_softc *sc = device_private(dv);
 
--- a/sys/arch/zaurus/dev/zlcd.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/zaurus/dev/zlcd.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: zlcd.c,v 1.9 2009/01/29 16:00:33 nonaka Exp $	*/
+/*	$NetBSD: zlcd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $	*/
 /*	$OpenBSD: zaurus_lcd.c,v 1.20 2006/06/02 20:50:14 miod Exp $	*/
 /* NetBSD: lubbock_lcd.c,v 1.1 2003/08/09 19:38:53 bsh Exp */
 
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zlcd.c,v 1.9 2009/01/29 16:00:33 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zlcd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -154,8 +154,8 @@
 CFATTACH_DECL_NEW(zlcd, sizeof(struct pxa2x0_lcd_softc),
 	lcd_match, lcd_attach, NULL, NULL);
 
-static bool	lcd_suspend(device_t dv PMF_FN_ARGS);
-static bool	lcd_resume(device_t dv PMF_FN_ARGS);
+static bool	lcd_suspend(device_t dv, pmf_qual_t);
+static bool	lcd_resume(device_t dv, pmf_qual_t);
 
 void	lcd_cnattach(void);
 int	lcd_max_brightness(void);
@@ -208,7 +208,7 @@
  * power management
  */
 static bool
-lcd_suspend(device_t dv PMF_FN_ARGS)
+lcd_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct pxa2x0_lcd_softc *sc = device_private(dv);
 
@@ -219,7 +219,7 @@
 }
 
 static bool
-lcd_resume(device_t dv PMF_FN_ARGS)
+lcd_resume(device_t dv, pmf_qual_t qual)
 {
 	struct pxa2x0_lcd_softc *sc = device_private(dv);
 
--- a/sys/arch/zaurus/dev/zssp.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/zaurus/dev/zssp.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: zssp.c,v 1.7 2009/03/11 09:10:39 nonaka Exp $	*/
+/*	$NetBSD: zssp.c,v 1.8 2010/01/08 19:42:11 dyoung Exp $	*/
 /*	$OpenBSD: zaurus_ssp.c,v 1.6 2005/04/08 21:58:49 uwe Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zssp.c,v 1.7 2009/03/11 09:10:39 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zssp.c,v 1.8 2010/01/08 19:42:11 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -54,7 +54,7 @@
 	zssp_match, zssp_attach, NULL, NULL);
 
 static void	zssp_init(void);
-static bool	zssp_resume(device_t dv PMF_FN_ARGS);
+static bool	zssp_resume(device_t dv, pmf_qual_t);
 
 static struct zssp_softc *zssp_sc;
 
@@ -116,7 +116,7 @@
 }
 
 static bool
-zssp_resume(device_t dv PMF_FN_ARGS)
+zssp_resume(device_t dv, pmf_qual_t qual)
 {
 	int s;
 
--- a/sys/arch/zaurus/dev/ztp.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/arch/zaurus/dev/ztp.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ztp.c,v 1.8 2009/12/12 07:49:31 nonaka Exp $	*/
+/*	$NetBSD: ztp.c,v 1.9 2010/01/08 19:42:11 dyoung Exp $	*/
 /* $OpenBSD: zts.c,v 1.9 2005/04/24 18:55:49 uwe Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ztp.c,v 1.8 2009/12/12 07:49:31 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ztp.c,v 1.9 2010/01/08 19:42:11 dyoung Exp $");
 
 #include "lcd.h"
 
@@ -116,8 +116,8 @@
 
 static int	ztp_enable(void *);
 static void	ztp_disable(void *);
-static bool	ztp_suspend(device_t dv PMF_FN_ARGS);
-static bool	ztp_resume(device_t dv PMF_FN_ARGS);
+static bool	ztp_suspend(device_t dv, pmf_qual_t);
+static bool	ztp_resume(device_t dv, pmf_qual_t);
 static void	ztp_poll(void *);
 static int	ztp_irq(void *);
 static int	ztp_ioctl(void *, u_long, void *, int, struct lwp *);
@@ -237,7 +237,7 @@
 }
 
 static bool
-ztp_suspend(device_t dv PMF_FN_ARGS)
+ztp_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct ztp_softc *sc = device_private(dv);
 
@@ -258,7 +258,7 @@
 }
 
 static bool
-ztp_resume(device_t dv PMF_FN_ARGS)
+ztp_resume(device_t dv, pmf_qual_t qual)
 {
 	struct ztp_softc *sc = device_private(dv);
 
--- a/sys/dev/ata/ata.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/ata/ata.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ata.c,v 1.109 2009/11/12 19:20:08 dyoung Exp $	*/
+/*	$NetBSD: ata.c,v 1.110 2010/01/08 19:48:11 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.109 2009/11/12 19:20:08 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.110 2010/01/08 19:48:11 dyoung Exp $");
 
 #include "opt_ata.h"
 
@@ -106,8 +106,8 @@
 extern struct cfdriver atabus_cd;
 
 static void atabus_childdetached(device_t, device_t);
-static bool atabus_resume(device_t PMF_FN_PROTO);
-static bool atabus_suspend(device_t PMF_FN_PROTO);
+static bool atabus_resume(device_t, pmf_qual_t);
+static bool atabus_suspend(device_t, pmf_qual_t);
 static void atabusconfig_thread(void *);
 
 /*
@@ -1525,7 +1525,7 @@
 };
 
 static bool
-atabus_suspend(device_t dv PMF_FN_ARGS)
+atabus_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct atabus_softc *sc = device_private(dv);
 	struct ata_channel *chp = sc->sc_chan;
@@ -1536,7 +1536,7 @@
 }
 
 static bool
-atabus_resume(device_t dv PMF_FN_ARGS)
+atabus_resume(device_t dv, pmf_qual_t qual)
 {
 	struct atabus_softc *sc = device_private(dv);
 	struct ata_channel *chp = sc->sc_chan;
--- a/sys/dev/ata/wd.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/ata/wd.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: wd.c,v 1.380 2009/12/17 21:03:10 bouyer Exp $ */
+/*	$NetBSD: wd.c,v 1.381 2010/01/08 19:48:12 dyoung Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.380 2009/12/17 21:03:10 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.381 2010/01/08 19:48:12 dyoung Exp $");
 
 #include "opt_ata.h"
 
@@ -126,7 +126,7 @@
 void	wdperror(const struct wd_softc *);
 
 static int	wdlastclose(device_t);
-static bool	wd_suspend(device_t PMF_FN_PROTO);
+static bool	wd_suspend(device_t, pmf_qual_t);
 static int	wd_standby(struct wd_softc *, int);
 
 CFATTACH_DECL3_NEW(wd, sizeof(struct wd_softc),
@@ -394,7 +394,7 @@
 }
 
 static bool
-wd_suspend(device_t dv PMF_FN_ARGS)
+wd_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct wd_softc *sc = device_private(dv);
 
--- a/sys/dev/cardbus/cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: cardbus.c,v 1.98 2009/12/15 22:17:12 snj Exp $	*/
+/*	$NetBSD: cardbus.c,v 1.99 2010/01/08 19:47:42 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998, 1999 and 2000
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.98 2009/12/15 22:17:12 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.99 2010/01/08 19:47:42 dyoung Exp $");
 
 #include "opt_cardbus.h"
 
@@ -1166,7 +1166,7 @@
 };
 
 static bool
-cardbus_child_suspend(device_t dv PMF_FN_ARGS)
+cardbus_child_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct cardbus_child_power *priv = device_pmf_bus_private(dv);
 
@@ -1186,7 +1186,7 @@
 }
 
 static bool
-cardbus_child_resume(device_t dv PMF_FN_ARGS)
+cardbus_child_resume(device_t dv, pmf_qual_t qual)
 {
 	struct cardbus_child_power *priv = device_pmf_bus_private(dv);
 
--- a/sys/dev/cardbus/ehci_cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/ehci_cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: ehci_cardbus.c,v 1.23 2009/05/12 12:11:17 cegger Exp $	*/
+/*	$NetBSD: ehci_cardbus.c,v 1.24 2010/01/08 19:47:42 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_cardbus.c,v 1.23 2009/05/12 12:11:17 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_cardbus.c,v 1.24 2010/01/08 19:47:42 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -102,9 +102,9 @@
 }
 
 static bool
-ehci_cardbus_suspend(device_t dv PMF_FN_ARGS)
+ehci_cardbus_suspend(device_t dv, pmf_qual_t qual)
 {
-	ehci_suspend(dv PMF_FN_CALL);
+	ehci_suspend(dv, qual);
 #if 0
 	struct ehci_cardbus_softc *sc = device_private(dv);
 	ehci_release_ownership(&sc->sc, sc->sc_pc, sc->sc_tag);
@@ -114,13 +114,13 @@
 }
 
 static bool
-ehci_cardbus_resume(device_t dv PMF_FN_ARGS)
+ehci_cardbus_resume(device_t dv, pmf_qual_t qual)
 {
 #if 0
 	struct ehci_cardbus_softc *sc = device_private(dv);
 	ehci_get_ownership(&sc->sc, sc->sc_pc, sc->sc_tag);
 #endif
-	return ehci_resume(dv PMF_FN_CALL);
+	return ehci_resume(dv, qual);
 }
 
 void
--- a/sys/dev/cardbus/if_ath_cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/if_ath_cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ath_cardbus.c,v 1.36 2009/10/21 14:15:52 rmind Exp $ */
+/*	$NetBSD: if_ath_cardbus.c,v 1.37 2010/01/08 19:47:42 dyoung Exp $ */
 /*
  * Copyright (c) 2003
  *	Ichiro FUKUHARA <ichiro@ichiro.org>.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ath_cardbus.c,v 1.36 2009/10/21 14:15:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ath_cardbus.c,v 1.37 2010/01/08 19:47:42 dyoung Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -114,7 +114,7 @@
 void	ath_cardbus_setup(struct ath_cardbus_softc *);
 
 static bool
-ath_cardbus_suspend(device_t self PMF_FN_ARGS)
+ath_cardbus_suspend(device_t self, pmf_qual_t qual)
 {
 	struct ath_cardbus_softc *csc = device_private(self);
 
@@ -128,7 +128,7 @@
 }
 
 static bool
-ath_cardbus_resume(device_t self PMF_FN_ARGS)
+ath_cardbus_resume(device_t self, pmf_qual_t qual)
 {
 	struct ath_cardbus_softc *csc = device_private(self);
 
--- a/sys/dev/cardbus/if_atw_cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/if_atw_cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atw_cardbus.c,v 1.27 2009/09/16 16:34:50 dyoung Exp $ */
+/* $NetBSD: if_atw_cardbus.c,v 1.28 2010/01/08 19:47:42 dyoung Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atw_cardbus.c,v 1.27 2009/09/16 16:34:50 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atw_cardbus.c,v 1.28 2010/01/08 19:47:42 dyoung Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -122,8 +122,8 @@
 
 static void	atw_cardbus_setup(struct atw_cardbus_softc *);
 
-static bool	atw_cardbus_suspend(device_t PMF_FN_PROTO);
-static bool	atw_cardbus_resume(device_t PMF_FN_PROTO);
+static bool	atw_cardbus_suspend(device_t, pmf_qual_t);
+static bool	atw_cardbus_resume(device_t, pmf_qual_t);
 
 static const struct atw_cardbus_product *atw_cardbus_lookup
    (const struct cardbus_attach_args *);
@@ -327,7 +327,7 @@
 }
 
 static bool
-atw_cardbus_resume(device_t self PMF_FN_ARGS)
+atw_cardbus_resume(device_t self, pmf_qual_t qual)
 {
 	struct atw_cardbus_softc *csc = device_private(self);
 	struct atw_softc *sc = &csc->sc_atw;
@@ -349,7 +349,7 @@
 }
 
 static bool
-atw_cardbus_suspend(device_t self PMF_FN_ARGS)
+atw_cardbus_suspend(device_t self, pmf_qual_t qual)
 {
 	struct atw_cardbus_softc *csc = device_private(self);
 	cardbus_devfunc_t ct = csc->sc_ct;
@@ -360,7 +360,7 @@
 	cardbus_intr_disestablish(cc, cf, csc->sc_ih);
 	csc->sc_ih = NULL;
 
-	return atw_suspend(self PMF_FN_CALL);
+	return atw_suspend(self, qual);
 }
 
 static void
--- a/sys/dev/cardbus/if_rtw_cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/if_rtw_cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rtw_cardbus.c,v 1.32 2009/10/19 23:19:39 rmind Exp $ */
+/* $NetBSD: if_rtw_cardbus.c,v 1.33 2010/01/08 19:47:42 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2004, 2005 David Young.  All rights reserved.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rtw_cardbus.c,v 1.32 2009/10/19 23:19:39 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rtw_cardbus.c,v 1.33 2010/01/08 19:47:42 dyoung Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -146,8 +146,8 @@
 
 void	rtw_cardbus_setup(struct rtw_cardbus_softc *);
 
-bool rtw_cardbus_resume(device_t PMF_FN_PROTO);
-bool rtw_cardbus_suspend(device_t PMF_FN_PROTO);
+bool rtw_cardbus_resume(device_t, pmf_qual_t);
+bool rtw_cardbus_suspend(device_t, pmf_qual_t);
 
 const struct rtw_cardbus_product *rtw_cardbus_lookup(
      const struct cardbus_attach_args *);
@@ -338,7 +338,7 @@
 }
 
 bool
-rtw_cardbus_resume(device_t self PMF_FN_ARGS)
+rtw_cardbus_resume(device_t self, pmf_qual_t qual)
 {
 	struct rtw_cardbus_softc *csc = device_private(self);
 	struct rtw_softc *sc = &csc->sc_rtw;
@@ -362,11 +362,11 @@
 	RTW_WRITE(&sc->sc_regs, RTW_FEMR, RTW_FEMR_INTR);
 	RTW_WRITE(&sc->sc_regs, RTW_FER, RTW_FER_INTR);
 
-	return rtw_resume(self PMF_FN_CALL);
+	return rtw_resume(self, qual);
 }
 
 bool
-rtw_cardbus_suspend(device_t self PMF_FN_ARGS)
+rtw_cardbus_suspend(device_t self, pmf_qual_t qual)
 {
 	struct rtw_cardbus_softc *csc = device_private(self);
 	struct rtw_softc *sc = &csc->sc_rtw;
@@ -374,7 +374,7 @@
 	cardbus_chipset_tag_t cc = ct->ct_cc;
 	cardbus_function_tag_t cf = ct->ct_cf;
 
-	if (!rtw_suspend(self PMF_FN_CALL))
+	if (!rtw_suspend(self, qual))
 		return false;
 
 	RTW_WRITE(&sc->sc_regs, RTW_FEMR,
--- a/sys/dev/cardbus/siisata_cardbus.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/cardbus/siisata_cardbus.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata_cardbus.c,v 1.2 2009/10/19 18:41:12 bouyer Exp $ */
+/* $NetBSD: siisata_cardbus.c,v 1.3 2010/01/08 19:47:42 dyoung Exp $ */
 /* Id: siisata_pci.c,v 1.11 2008/05/21 16:20:11 jakllsch Exp  */
 
 /*
@@ -83,7 +83,7 @@
 static int siisata_cardbus_match(device_t, cfdata_t, void *);
 static void siisata_cardbus_attach(device_t, device_t, void *);
 static int siisata_cardbus_detach(device_t, int);
-static bool siisata_cardbus_resume(device_t PMF_FN_PROTO);
+static bool siisata_cardbus_resume(device_t, pmf_qual_t);
 
 static const struct siisata_cardbus_product {
 	cardbus_vendor_id_t scp_vendor;
@@ -297,7 +297,7 @@
 }
 
 static bool
-siisata_cardbus_resume(device_t dv PMF_FN_ARGS)
+siisata_cardbus_resume(device_t dv, pmf_qual_t qual)
 {
 	struct siisata_cardbus_softc *csc = device_private(dv);
 	struct siisata_softc *sc = &csc->si_sc;
--- a/sys/dev/gpio/gpio.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/gpio/gpio.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.29 2009/11/05 18:20:40 dyoung Exp $ */
+/* $NetBSD: gpio.c,v 1.30 2010/01/08 19:48:18 dyoung Exp $ */
 /*	$OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.29 2009/11/05 18:20:40 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.30 2010/01/08 19:48:18 dyoung Exp $");
 
 /*
  * General Purpose Input/Output framework.
@@ -66,7 +66,7 @@
 void	gpio_attach(device_t, device_t, void *);
 int	gpio_rescan(device_t, const char *, const int *);
 void	gpio_childdetached(device_t, device_t);
-bool	gpio_resume(device_t PMF_FN_PROTO);
+bool	gpio_resume(device_t, pmf_qual_t);
 int	gpio_detach(device_t, int);
 int	gpio_search(device_t, cfdata_t, const int *, void *);
 int	gpio_print(void *, const char *);
@@ -108,7 +108,7 @@
 }
 
 bool
-gpio_resume(device_t self PMF_FN_ARGS)
+gpio_resume(device_t self, pmf_qual_t qual)
 {
 	struct gpio_softc *sc = device_private(self);
 	int pin;
--- a/sys/dev/wscons/wsdisplay.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/wscons/wsdisplay.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay.c,v 1.126 2009/01/22 20:40:20 drochner Exp $ */
+/* $NetBSD: wsdisplay.c,v 1.127 2010/01/08 19:51:11 dyoung Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.126 2009/01/22 20:40:20 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.127 2010/01/08 19:51:11 dyoung Exp $");
 
 #include "opt_wsdisplay_compat.h"
 #include "opt_wsmsgattrs.h"
@@ -166,7 +166,7 @@
 static void wsdisplay_emul_attach(device_t, device_t, void *);
 static int wsdisplay_noemul_match(device_t, cfdata_t, void *);
 static void wsdisplay_noemul_attach(device_t, device_t, void *);
-static bool wsdisplay_suspend(device_t PMF_FN_PROTO);
+static bool wsdisplay_suspend(device_t, pmf_qual_t);
 
 CFATTACH_DECL_NEW(wsdisplay_emul, sizeof (struct wsdisplay_softc),
     wsdisplay_emul_match, wsdisplay_emul_attach, NULL, NULL);
@@ -677,7 +677,7 @@
 }
 
 static bool
-wsdisplay_suspend(device_t dv PMF_FN_ARGS)
+wsdisplay_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct wsdisplay_softc *sc = device_private(dv);
 #ifdef DIAGNOSTIC
--- a/sys/dev/wscons/wskbd.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/wscons/wskbd.c	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wskbd.c,v 1.122 2009/01/15 04:22:11 yamt Exp $ */
+/* $NetBSD: wskbd.c,v 1.123 2010/01/08 19:51:11 dyoung Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.122 2009/01/15 04:22:11 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.123 2010/01/08 19:51:11 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -347,7 +347,7 @@
 };
 #endif
 
-static bool wskbd_suspend(device_t dv PMF_FN_PROTO);
+static bool wskbd_suspend(device_t dv, pmf_qual_t);
 static void wskbd_repeat(void *v);
 
 static int wskbd_console_initted;
@@ -505,7 +505,7 @@
 }
 
 static bool
-wskbd_suspend(device_t dv PMF_FN_ARGS)
+wskbd_suspend(device_t dv, pmf_qual_t qual)
 {
 	struct wskbd_softc *sc = device_private(dv);
 
--- a/sys/dev/wsfb/genfbvar.h	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/dev/wsfb/genfbvar.h	Fri Jan 08 19:42:11 2010 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: genfbvar.h,v 1.11 2009/08/24 11:03:44 jmcneill Exp $ */
+/*	$NetBSD: genfbvar.h,v 1.12 2010/01/08 19:51:11 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfbvar.h,v 1.11 2009/08/24 11:03:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfbvar.h,v 1.12 2010/01/08 19:51:11 dyoung Exp $");
 
 #ifndef GENFBVAR_H
 #define GENFBVAR_H
@@ -57,8 +57,8 @@
 };
 
 struct genfb_pmf_callback {
-	bool (*gpc_suspend)(device_t PMF_FN_PROTO);
-	bool (*gpc_resume)(device_t PMF_FN_PROTO);
+	bool (*gpc_suspend)(device_t, pmf_qual_t);
+	bool (*gpc_resume)(device_t, pmf_qual_t);
 };
 
 struct genfb_softc {
--- a/sys/external/bsd/drm/dist/bsd-core/i915_drv.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/i915_drv.c	Fri Jan 08 19:42:11 2010 +0000
@@ -163,7 +163,7 @@
 #elif   defined(__NetBSD__)
 
 static bool
-i915drm_suspend(device_t self PMF_FN_ARGS)
+i915drm_suspend(device_t self, pmf_qual_t qual)
 {
 	struct drm_device *dev = device_private(self);
 
@@ -172,7 +172,7 @@
 }
 
 static bool
-i915drm_resume(device_t self PMF_FN_ARGS)
+i915drm_resume(device_t self, pmf_qual_t qual)
 {
 	struct drm_device *dev = device_private(self);
 
--- a/sys/external/bsd/drm/dist/bsd-core/radeon_drv.c	Fri Jan 08 19:20:21 2010 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/radeon_drv.c	Fri Jan 08 19:42:11 2010 +0000
@@ -135,7 +135,7 @@
 #elif   defined(__NetBSD__)
 
 static bool
-radeondrm_suspend(device_t self PMF_FN_ARGS)
+radeondrm_suspend(device_t self, pmf_qual_t qual)
 {
 	struct drm_device *rad_dev = device_private(self);
 	drm_radeon_cp_stop_t stop_args;
@@ -148,7 +148,7 @@
 }
 
 static bool
-radeondrm_resume(device_t self PMF_FN_ARGS)
+radeondrm_resume(device_t self, pmf_qual_t qual)
 {
 	struct drm_device *rad_dev = device_private(self);
 	if (radeon_cp_resume(rad_dev, NULL, NULL) != 0)