A pointer typedef entails trading too much flexibility to declare const

and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
This commit is contained in:
dyoung 2010-02-24 22:37:54 +00:00
parent 89300bd9df
commit c1b390d493
138 changed files with 746 additions and 743 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pmf.9,v 1.16 2010/01/26 22:35:11 jruoho Exp $
.\" $NetBSD: pmf.9,v 1.17 2010/02/24 22:37:54 dyoung Exp $
.\"
.\" Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
.\" All rights reserved.
@ -52,21 +52,21 @@
.Sh SYNOPSIS
.In sys/device.h
.Ft bool
.Fn pmf_device_register "device_t dev" "bool (*suspend)(device_t dev, pmf_qual_t qual)" "bool (*resume)(device_t dev, pmf_qual_t qual)"
.Fn pmf_device_register "device_t dev" "bool (*suspend)(device_t dev, const pmf_qual_t *qual)" "bool (*resume)(device_t dev, const pmf_qual_t *qual)"
.Ft bool
.Fn pmf_device_register1 "device_t dev" "bool (*suspend)(device_t dev, pmf_qual_t qual)" "bool (*resume)(device_t dev, pmf_qual_t qual)" "bool (*shutdown)(device_t dev, int how)"
.Fn pmf_device_register1 "device_t dev" "bool (*suspend)(device_t dev, const pmf_qual_t *qual)" "bool (*resume)(device_t dev, const pmf_qual_t *qual)" "bool (*shutdown)(device_t dev, int how)"
.Ft void
.Fn pmf_device_deregister "device_t dev"
.Ft bool
.Fn pmf_device_suspend "device_t dev" "pmf_qual_t qual"
.Fn pmf_device_suspend "device_t dev" "const pmf_qual_t *qual"
.Ft bool
.Fn pmf_device_resume "device_t dev" "pmf_qual_t qual"
.Fn pmf_device_resume "device_t dev" "const pmf_qual_t *qual"
.Ft bool
.Fn pmf_device_recursive_suspend "device_t dev" "pmf_qual_t qual"
.Fn pmf_device_recursive_suspend "device_t dev" "const pmf_qual_t *qual"
.Ft bool
.Fn pmf_device_recursive_resume "device_t dev" "pmf_qual_t qual"
.Fn pmf_device_recursive_resume "device_t dev" "const pmf_qual_t *qual"
.Ft bool
.Fn pmf_device_subtree_resume "device_t dev" "pmf_qual_t qual"
.Fn pmf_device_subtree_resume "device_t dev" "const pmf_qual_t *qual"
.Ft void
.Fn pmf_class_network_register "device_t dev" "struct ifnet *ifp"
.Ft bool
@ -74,9 +74,9 @@
.Ft bool
.Fn pmf_class_display_register "device_t dev"
.Ft bool
.Fn pmf_system_suspend "pmf_qual_t qual"
.Fn pmf_system_suspend "const pmf_qual_t *qual"
.Ft bool
.Fn pmf_system_resume "pmf_qual_t qual"
.Fn pmf_system_resume "const pmf_qual_t *qual"
.Ft void
.Fn pmf_system_shutdown "int"
.Ft bool

View File

@ -1,4 +1,4 @@
/* $NetBSD: elan520.c,v 1.46 2010/01/08 19:45:28 dyoung Exp $ */
/* $NetBSD: elan520.c,v 1.47 2010/02/24 22:37:55 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.46 2010/01/08 19:45:28 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.47 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -847,7 +847,7 @@ elanpex_intr_ack(bus_space_tag_t memt, bus_space_handle_t memh)
}
static bool
elansc_suspend(device_t dev, pmf_qual_t qual)
elansc_suspend(device_t dev, const pmf_qual_t *qual)
{
bool rc;
struct elansc_softc *sc = device_private(dev);
@ -861,7 +861,7 @@ elansc_suspend(device_t dev, pmf_qual_t qual)
}
static bool
elansc_resume(device_t dev, pmf_qual_t qual)
elansc_resume(device_t dev, const pmf_qual_t *qual)
{
struct elansc_softc *sc = device_private(dev);
@ -947,7 +947,7 @@ elansc_intr_establish(device_t dev, int (*handler)(void *), void *arg)
}
static bool
elanpex_resume(device_t self, pmf_qual_t qual)
elanpex_resume(device_t self, const pmf_qual_t *qual)
{
struct elansc_softc *sc = device_private(device_parent(self));
@ -956,7 +956,7 @@ elanpex_resume(device_t self, pmf_qual_t qual)
}
static bool
elanpex_suspend(device_t self, pmf_qual_t qual)
elanpex_suspend(device_t self, const pmf_qual_t *qual)
{
struct elansc_softc *sc = device_private(device_parent(self));
@ -966,7 +966,7 @@ elanpex_suspend(device_t self, pmf_qual_t qual)
}
static bool
elanpar_resume(device_t self, pmf_qual_t qual)
elanpar_resume(device_t self, const pmf_qual_t *qual)
{
struct elansc_softc *sc = device_private(device_parent(self));
@ -975,7 +975,7 @@ elanpar_resume(device_t self, pmf_qual_t qual)
}
static bool
elanpar_suspend(device_t self, pmf_qual_t qual)
elanpar_suspend(device_t self, const pmf_qual_t *qual)
{
struct elansc_softc *sc = device_private(device_parent(self));

View File

@ -1,4 +1,4 @@
/* $NetBSD: piixpcib.c,v 1.17 2010/01/08 19:45:28 dyoung Exp $ */
/* $NetBSD: piixpcib.c,v 1.18 2010/02/24 22:37:55 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.17 2010/01/08 19:45:28 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: piixpcib.c,v 1.18 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -79,8 +79,8 @@ struct piixpcib_softc {
static int piixpcibmatch(device_t, cfdata_t, void *);
static void piixpcibattach(device_t, device_t, void *);
static bool piixpcib_suspend(device_t, pmf_qual_t);
static bool piixpcib_resume(device_t, pmf_qual_t);
static bool piixpcib_suspend(device_t, const pmf_qual_t *);
static bool piixpcib_resume(device_t, const pmf_qual_t *);
static void speedstep_configure(struct piixpcib_softc *,
struct pci_attach_args *);
@ -144,7 +144,7 @@ piixpcibattach(device_t parent, device_t self, void *aux)
}
static bool
piixpcib_suspend(device_t dv, pmf_qual_t qual)
piixpcib_suspend(device_t dv, const pmf_qual_t *qual)
{
struct piixpcib_softc *sc = device_private(dv);
@ -160,7 +160,7 @@ piixpcib_suspend(device_t dv, pmf_qual_t qual)
}
static bool
piixpcib_resume(device_t dv, pmf_qual_t qual)
piixpcib_resume(device_t dv, const pmf_qual_t *qual)
{
struct piixpcib_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ath_arbus.c,v 1.17 2010/01/08 19:49:13 dyoung Exp $ */
/* $NetBSD: if_ath_arbus.c,v 1.18 2010/02/24 22:37:55 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.17 2010/01/08 19:49:13 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ath_arbus.c,v 1.18 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -96,7 +96,7 @@ ath_arbus_match(device_t parent, cfdata_t cf, void *opaque)
}
static bool
ath_arbus_resume(device_t dv, pmf_qual_t qual)
ath_arbus_resume(device_t dv, const pmf_qual_t *qual)
{
struct ath_arbus_softc *asc = device_private(dv);
ath_resume(&asc->sc_ath);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.148 2010/01/08 19:49:13 dyoung Exp $ */
/* $NetBSD: fd.c,v 1.149 2010/02/24 22:37:55 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.148 2010/01/08 19:49:13 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.149 2010/02/24 22:37:55 dyoung Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -292,7 +292,7 @@ struct fd_softc {
int fdmatch(struct device *, struct cfdata *, void *);
void fdattach(struct device *, struct device *, void *);
bool fdshutdown(device_t, int);
bool fdsuspend(device_t, pmf_qual_t);
bool fdsuspend(device_t, const pmf_qual_t *);
CFATTACH_DECL(fd, sizeof(struct fd_softc),
fdmatch, fdattach, NULL, NULL);
@ -809,7 +809,7 @@ bool fdshutdown(device_t self, int how)
return true;
}
bool fdsuspend(device_t self, pmf_qual_t qual)
bool fdsuspend(device_t self, const pmf_qual_t *qual)
{
return fdshutdown(self, boothowto);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdc.c,v 1.32 2010/01/08 19:49:14 dyoung Exp $ */
/* $NetBSD: fdc.c,v 1.33 2010/02/24 22:37:55 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.32 2010/01/08 19:49:14 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.33 2010/02/24 22:37:55 dyoung Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -324,7 +324,7 @@ struct fd_softc {
int fdmatch(struct device *, struct cfdata *, void *);
void fdattach(struct device *, struct device *, void *);
bool fdshutdown(device_t, int);
bool fdsuspend(device_t, pmf_qual_t);
bool fdsuspend(device_t, const pmf_qual_t *);
CFATTACH_DECL(fd, sizeof(struct fd_softc),
fdmatch, fdattach, NULL, NULL);
@ -979,7 +979,7 @@ bool fdshutdown(device_t self, int how)
return true;
}
bool fdsuspend(device_t self, pmf_qual_t qual)
bool fdsuspend(device_t self, const pmf_qual_t *qual)
{
return fdshutdown(self, boothowto);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ichlpcib.c,v 1.23 2010/01/08 19:43:26 dyoung Exp $ */
/* $NetBSD: ichlpcib.c,v 1.24 2010/02/24 22:37:55 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.23 2010/01/08 19:43:26 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.24 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -123,8 +123,8 @@ static void lpcibattach(device_t, device_t, void *);
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_qual_t);
static bool lpcib_resume(device_t, pmf_qual_t);
static bool lpcib_suspend(device_t, const pmf_qual_t *);
static bool lpcib_resume(device_t, const pmf_qual_t *);
static bool lpcib_shutdown(device_t, int);
static void pmtimer_configure(device_t);
@ -414,7 +414,7 @@ lpcib_shutdown(device_t dv, int howto)
}
static bool
lpcib_suspend(device_t dv, pmf_qual_t qual)
lpcib_suspend(device_t dv, const 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 @@ lpcib_suspend(device_t dv, pmf_qual_t qual)
}
static bool
lpcib_resume(device_t dv, pmf_qual_t qual)
lpcib_resume(device_t dv, const pmf_qual_t *qual)
{
struct lpcib_softc *sc = device_private(dv);
pci_chipset_tag_t pc = sc->sc_pcib.sc_pc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pchb.c,v 1.20 2010/01/08 19:43:26 dyoung Exp $ */
/* $NetBSD: pchb.c,v 1.21 2010/02/24 22:37:55 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.20 2010/01/08 19:43:26 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.21 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -75,8 +75,8 @@ int pchbmatch(device_t, cfdata_t, void *);
void pchbattach(device_t, device_t, void *);
int pchbdetach(device_t, int);
static bool pchb_resume(device_t, pmf_qual_t);
static bool pchb_suspend(device_t, pmf_qual_t);
static bool pchb_resume(device_t, const pmf_qual_t *);
static bool pchb_suspend(device_t, const pmf_qual_t *);
CFATTACH_DECL3_NEW(pchb, sizeof(struct pchb_softc),
pchbmatch, pchbattach, pchbdetach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
@ -461,7 +461,7 @@ pchbdetach(device_t self, int flags)
}
static bool
pchb_suspend(device_t dv, pmf_qual_t qual)
pchb_suspend(device_t dv, const pmf_qual_t *qual)
{
struct pchb_softc *sc = device_private(dv);
pci_chipset_tag_t pc;
@ -478,7 +478,7 @@ pchb_suspend(device_t dv, pmf_qual_t qual)
}
static bool
pchb_resume(device_t dv, pmf_qual_t qual)
pchb_resume(device_t dv, const pmf_qual_t *qual)
{
struct pchb_softc *sc = device_private(dv);
pci_chipset_tag_t pc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.c,v 1.68 2010/02/09 23:52:13 jym Exp $ */
/* $NetBSD: cpu.c,v 1.69 2010/02/24 22:37:55 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.68 2010/02/09 23:52:13 jym Exp $");
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.69 2010/02/24 22:37:55 dyoung Exp $");
#include "opt_ddb.h"
#include "opt_mpbios.h" /* for MPDEBUG */
@ -120,8 +120,8 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.68 2010/02/09 23:52:13 jym Exp $");
int cpu_match(device_t, cfdata_t, void *);
void cpu_attach(device_t, device_t, void *);
static bool cpu_suspend(device_t, pmf_qual_t);
static bool cpu_resume(device_t, pmf_qual_t);
static bool cpu_suspend(device_t, const pmf_qual_t *);
static bool cpu_resume(device_t, const pmf_qual_t *);
struct cpu_softc {
device_t sc_dev; /* device tree glue */
@ -996,7 +996,7 @@ cpu_offline_md(void)
/* XXX joerg restructure and restart CPUs individually */
static bool
cpu_suspend(device_t dv, pmf_qual_t qual)
cpu_suspend(device_t dv, const pmf_qual_t *qual)
{
struct cpu_softc *sc = device_private(dv);
struct cpu_info *ci = sc->sc_info;
@ -1024,7 +1024,7 @@ cpu_suspend(device_t dv, pmf_qual_t qual)
}
static bool
cpu_resume(device_t dv, pmf_qual_t qual)
cpu_resume(device_t dv, const pmf_qual_t *qual)
{
struct cpu_softc *sc = device_private(dv);
struct cpu_info *ci = sc->sc_info;

View File

@ -1,4 +1,4 @@
/* $NetBSD: x86_autoconf.c,v 1.49 2010/01/31 00:43:37 hubertf Exp $ */
/* $NetBSD: x86_autoconf.c,v 1.50 2010/02/24 22:37:55 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.49 2010/01/31 00:43:37 hubertf Exp $");
__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.50 2010/02/24 22:37:55 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -94,13 +94,13 @@ x86_genfb_set_mapreg(void *opaque, int index, int r, int g, int b)
}
static bool
x86_genfb_suspend(device_t dev, pmf_qual_t qual)
x86_genfb_suspend(device_t dev, const pmf_qual_t *qual)
{
return true;
}
static bool
x86_genfb_resume(device_t dev, pmf_qual_t qual)
x86_genfb_resume(device_t dev, const pmf_qual_t *qual)
{
#if NGENFB > 0
struct pci_genfb_softc *psc = device_private(dev);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.c,v 1.40 2010/01/08 19:43:26 dyoung Exp $ */
/* $NetBSD: cpu.c,v 1.41 2010/02/24 22:37:55 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.40 2010/01/08 19:43:26 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.41 2010/02/24 22:37:55 dyoung Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@ -1024,7 +1024,7 @@ cpu_offline_md(void)
#if 0
/* XXX joerg restructure and restart CPUs individually */
static bool
cpu_suspend(device_t dv, pmf_qual_t qual)
cpu_suspend(device_t dv, const pmf_qual_t *qual)
{
struct cpu_softc *sc = device_private(dv);
struct cpu_info *ci = sc->sc_info;
@ -1052,7 +1052,7 @@ cpu_suspend(device_t dv, pmf_qual_t qual)
}
static bool
cpu_resume(device_t dv, pmf_qual_t qual)
cpu_resume(device_t dv, const pmf_qual_t *qual)
{
struct cpu_softc *sc = device_private(dv);
struct cpu_info *ci = sc->sc_info;

View File

@ -1,4 +1,4 @@
/* $NetBSD: zaudio.c,v 1.11 2010/01/08 19:42:11 dyoung Exp $ */
/* $NetBSD: zaudio.c,v 1.12 2010/02/24 22:37:56 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.11 2010/01/08 19:42:11 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: zaudio.c,v 1.12 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -84,8 +84,8 @@ __KERNEL_RCSID(0, "$NetBSD: zaudio.c,v 1.11 2010/01/08 19:42:11 dyoung Exp $");
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_qual_t);
static bool zaudio_resume(device_t dv, pmf_qual_t);
static bool zaudio_suspend(device_t dv, const pmf_qual_t *);
static bool zaudio_resume(device_t dv, const pmf_qual_t *);
#define ZAUDIO_OP_SPKR 0
#define ZAUDIO_OP_HP 1
@ -369,7 +369,7 @@ fail_i2s:
}
static bool
zaudio_suspend(device_t dv, pmf_qual_t qual)
zaudio_suspend(device_t dv, const pmf_qual_t *qual)
{
struct zaudio_softc *sc = device_private(dv);
@ -380,7 +380,7 @@ zaudio_suspend(device_t dv, pmf_qual_t qual)
}
static bool
zaudio_resume(device_t dv, pmf_qual_t qual)
zaudio_resume(device_t dv, const pmf_qual_t *qual)
{
struct zaudio_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: zkbd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $ */
/* $NetBSD: zkbd.c,v 1.11 2010/02/24 22:37:56 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.10 2010/01/08 19:42:11 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: zkbd.c,v 1.11 2010/02/24 22:37:56 dyoung Exp $");
#include "opt_wsdisplay_compat.h"
#include "lcd.h"
@ -131,7 +131,7 @@ static void zkbd_poll(void *v);
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_qual_t);
static bool zkbd_resume(device_t dv, const pmf_qual_t *);
int zkbd_modstate;
@ -594,7 +594,7 @@ zkbd_cnpollc(void *v, int on)
}
static bool
zkbd_resume(device_t dv, pmf_qual_t qual)
zkbd_resume(device_t dv, const pmf_qual_t *qual)
{
struct zkbd_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: zlcd.c,v 1.10 2010/01/08 19:42:11 dyoung Exp $ */
/* $NetBSD: zlcd.c,v 1.11 2010/02/24 22:37:56 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.10 2010/01/08 19:42:11 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: zlcd.c,v 1.11 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -154,8 +154,8 @@ static void lcd_attach(device_t, device_t, void *);
CFATTACH_DECL_NEW(zlcd, sizeof(struct pxa2x0_lcd_softc),
lcd_match, lcd_attach, NULL, NULL);
static bool lcd_suspend(device_t dv, pmf_qual_t);
static bool lcd_resume(device_t dv, pmf_qual_t);
static bool lcd_suspend(device_t dv, const pmf_qual_t *);
static bool lcd_resume(device_t dv, const pmf_qual_t *);
void lcd_cnattach(void);
int lcd_max_brightness(void);
@ -208,7 +208,7 @@ lcd_cnattach(void)
* power management
*/
static bool
lcd_suspend(device_t dv, pmf_qual_t qual)
lcd_suspend(device_t dv, const pmf_qual_t *qual)
{
struct pxa2x0_lcd_softc *sc = device_private(dv);
@ -219,7 +219,7 @@ lcd_suspend(device_t dv, pmf_qual_t qual)
}
static bool
lcd_resume(device_t dv, pmf_qual_t qual)
lcd_resume(device_t dv, const pmf_qual_t *qual)
{
struct pxa2x0_lcd_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: zssp.c,v 1.8 2010/01/08 19:42:11 dyoung Exp $ */
/* $NetBSD: zssp.c,v 1.9 2010/02/24 22:37:56 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.8 2010/01/08 19:42:11 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: zssp.c,v 1.9 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -54,7 +54,7 @@ CFATTACH_DECL_NEW(zssp, sizeof(struct zssp_softc),
zssp_match, zssp_attach, NULL, NULL);
static void zssp_init(void);
static bool zssp_resume(device_t dv, pmf_qual_t);
static bool zssp_resume(device_t dv, const pmf_qual_t *);
static struct zssp_softc *zssp_sc;
@ -116,7 +116,7 @@ zssp_init(void)
}
static bool
zssp_resume(device_t dv, pmf_qual_t qual)
zssp_resume(device_t dv, const pmf_qual_t *qual)
{
int s;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ztp.c,v 1.9 2010/01/08 19:42:11 dyoung Exp $ */
/* $NetBSD: ztp.c,v 1.10 2010/02/24 22:37:56 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.9 2010/01/08 19:42:11 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ztp.c,v 1.10 2010/02/24 22:37:56 dyoung Exp $");
#include "lcd.h"
@ -116,8 +116,8 @@ CFATTACH_DECL_NEW(ztp, sizeof(struct ztp_softc),
static int ztp_enable(void *);
static void ztp_disable(void *);
static bool ztp_suspend(device_t dv, pmf_qual_t);
static bool ztp_resume(device_t dv, pmf_qual_t);
static bool ztp_suspend(device_t dv, const pmf_qual_t *);
static bool ztp_resume(device_t dv, const 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 @@ ztp_disable(void *v)
}
static bool
ztp_suspend(device_t dv, pmf_qual_t qual)
ztp_suspend(device_t dv, const pmf_qual_t *qual)
{
struct ztp_softc *sc = device_private(dv);
@ -258,7 +258,7 @@ ztp_suspend(device_t dv, pmf_qual_t qual)
}
static bool
ztp_resume(device_t dv, pmf_qual_t qual)
ztp_resume(device_t dv, const pmf_qual_t *qual)
{
struct ztp_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi.c,v 1.148 2010/01/31 11:26:20 jruoho Exp $ */
/* $NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.148 2010/01/31 11:26:20 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $");
#include "opt_acpi.h"
#include "opt_pcifixup.h"
@ -201,8 +201,8 @@ static ACPI_TABLE_HEADER *acpi_map_rsdt(void);
static void acpi_unmap_rsdt(ACPI_TABLE_HEADER *);
static int is_available_state(struct acpi_softc *, int);
static bool acpi_suspend(device_t, pmf_qual_t);
static bool acpi_resume(device_t, pmf_qual_t);
static bool acpi_suspend(device_t, const pmf_qual_t *);
static bool acpi_resume(device_t, const pmf_qual_t *);
/*
* acpi_probe:
@ -628,14 +628,14 @@ acpi_detach(device_t self, int flags)
}
static bool
acpi_suspend(device_t dv, pmf_qual_t qual)
acpi_suspend(device_t dv, const pmf_qual_t *qual)
{
acpi_suspended = 1;
return true;
}
static bool
acpi_resume(device_t dv, pmf_qual_t qual)
acpi_resume(device_t dv, const pmf_qual_t *qual)
{
acpi_suspended = 0;
return true;

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_acad.c,v 1.39 2010/01/31 11:16:18 jruoho Exp $ */
/* $NetBSD: acpi_acad.c,v 1.40 2010/02/24 22:37:56 dyoung Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.39 2010/01/31 11:16:18 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.40 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -73,7 +73,7 @@ static const char * const acad_hid[] = {
static int acpiacad_match(device_t, cfdata_t, void *);
static void acpiacad_attach(device_t, device_t, void *);
static int acpiacad_detach(device_t, int);
static bool acpiacad_resume(device_t, pmf_qual_t);
static bool acpiacad_resume(device_t, const pmf_qual_t *);
static void acpiacad_get_status(void *);
static void acpiacad_notify_handler(ACPI_HANDLE, uint32_t, void *);
static void acpiacad_init_envsys(device_t);
@ -165,7 +165,7 @@ acpiacad_detach(device_t self, int flags)
* Queue a new status check.
*/
static bool
acpiacad_resume(device_t dv, pmf_qual_t qual)
acpiacad_resume(device_t dv, const pmf_qual_t *qual)
{
(void)AcpiOsExecute(OSL_NOTIFY_HANDLER, acpiacad_get_status, dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_bat.c,v 1.81 2010/01/31 06:45:09 jruoho Exp $ */
/* $NetBSD: acpi_bat.c,v 1.82 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.81 2010/01/31 06:45:09 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.82 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -199,7 +199,7 @@ static void acpibat_update_status(void *);
static void acpibat_init_envsys(device_t);
static void acpibat_notify_handler(ACPI_HANDLE, UINT32, void *);
static void acpibat_refresh(struct sysmon_envsys *, envsys_data_t *);
static bool acpibat_resume(device_t, pmf_qual_t);
static bool acpibat_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(acpibat, sizeof(struct acpibat_softc),
acpibat_match, acpibat_attach, acpibat_detach, NULL);
@ -774,7 +774,7 @@ acpibat_refresh(struct sysmon_envsys *sme, envsys_data_t *edata)
}
static bool
acpibat_resume(device_t dv, pmf_qual_t qual)
acpibat_resume(device_t dv, const pmf_qual_t *qual)
{
(void)AcpiOsExecute(OSL_NOTIFY_HANDLER, acpibat_update_info, dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_ec.c,v 1.59 2010/01/18 18:36:49 jruoho Exp $ */
/* $NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.59 2010/01/18 18:36:49 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -152,8 +152,8 @@ static void acpiec_attach(device_t, device_t, void *);
static void acpiec_common_attach(device_t, device_t, ACPI_HANDLE,
bus_addr_t, bus_addr_t, ACPI_HANDLE, uint8_t);
static bool acpiec_suspend(device_t, pmf_qual_t);
static bool acpiec_resume(device_t, pmf_qual_t);
static bool acpiec_suspend(device_t, const pmf_qual_t *);
static bool acpiec_resume(device_t, const pmf_qual_t *);
static bool acpiec_shutdown(device_t, int);
static bool acpiec_parse_gpe_package(device_t, ACPI_HANDLE,
@ -399,7 +399,7 @@ post_data_map:
}
static bool
acpiec_suspend(device_t dv, pmf_qual_t qual)
acpiec_suspend(device_t dv, const pmf_qual_t *qual)
{
acpiec_cold = true;
@ -407,7 +407,7 @@ acpiec_suspend(device_t dv, pmf_qual_t qual)
}
static bool
acpiec_resume(device_t dv, pmf_qual_t qual)
acpiec_resume(device_t dv, const pmf_qual_t *qual)
{
acpiec_cold = false;

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_lid.c,v 1.32 2010/01/30 18:35:48 jruoho Exp $ */
/* $NetBSD: acpi_lid.c,v 1.33 2010/02/24 22:37:56 dyoung Exp $ */
/*
* Copyright 2001, 2003 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.32 2010/01/30 18:35:48 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.33 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -76,7 +76,7 @@ static void acpilid_status_changed(void *);
static void acpilid_notify_handler(ACPI_HANDLE, UINT32, void *);
static void acpilid_wake_event(device_t, bool);
static bool acpilid_suspend(device_t, pmf_qual_t);
static bool acpilid_suspend(device_t, const pmf_qual_t *);
/*
* acpilid_match:
@ -246,7 +246,7 @@ acpilid_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
}
static bool
acpilid_suspend(device_t dv, pmf_qual_t qual)
acpilid_suspend(device_t dv, const pmf_qual_t *qual)
{
struct acpilid_softc *sc = device_private(dv);
ACPI_INTEGER status;

View File

@ -1,4 +1,4 @@
/* $NetBSD: asus_acpi.c,v 1.16 2010/01/31 18:51:33 jruoho Exp $ */
/* $NetBSD: asus_acpi.c,v 1.17 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.16 2010/01/31 18:51:33 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.17 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -97,8 +97,8 @@ static int asus_detach(device_t, int);
static void asus_notify_handler(ACPI_HANDLE, UINT32, void *);
static void asus_init(device_t);
static bool asus_suspend(device_t, pmf_qual_t);
static bool asus_resume(device_t, pmf_qual_t);
static bool asus_suspend(device_t, const pmf_qual_t *);
static bool asus_resume(device_t, const pmf_qual_t *);
static void asus_sysctl_setup(struct asus_softc *);
@ -268,7 +268,7 @@ asus_init(device_t self)
}
static bool
asus_suspend(device_t self, pmf_qual_t qual)
asus_suspend(device_t self, const pmf_qual_t *qual)
{
struct asus_softc *sc = device_private(self);
ACPI_INTEGER val = 0;
@ -286,7 +286,7 @@ asus_suspend(device_t self, pmf_qual_t qual)
}
static bool
asus_resume(device_t self, pmf_qual_t qual)
asus_resume(device_t self, const pmf_qual_t *qual)
{
struct asus_softc *sc = device_private(self);
ACPI_STATUS rv;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dalb_acpi.c,v 1.6 2010/01/31 19:49:29 jruoho Exp $ */
/* $NetBSD: dalb_acpi.c,v 1.7 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2008 Christoph Egger <cegger@netbsd.org>
@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.6 2010/01/31 19:49:29 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.7 2010/02/24 22:37:56 dyoung Exp $");
/*
* Direct Application Launch Button:
@ -70,7 +70,7 @@ static int acpi_dalb_match(device_t, cfdata_t, void *);
static void acpi_dalb_attach(device_t, device_t, void *);
static int acpi_dalb_detach(device_t, int);
static void acpi_dalb_notify_handler(ACPI_HANDLE, UINT32, void *);
static bool acpi_dalb_resume(device_t, pmf_qual_t);
static bool acpi_dalb_resume(device_t, const pmf_qual_t *);
static void acpi_dalb_get_wakeup_hotkeys(void *opaque);
static void acpi_dalb_get_runtime_hotkeys(void *opaque);
@ -265,7 +265,7 @@ acpi_dalb_get_runtime_hotkeys(void *opaque)
}
static bool
acpi_dalb_resume(device_t dev, pmf_qual_t qual)
acpi_dalb_resume(device_t dev, const pmf_qual_t *qual)
{
struct acpi_dalb_softc *sc = device_private(dev);
ACPI_STATUS rv;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpqlb_acpi.c,v 1.5 2010/01/30 18:35:49 jruoho Exp $ */
/* $NetBSD: hpqlb_acpi.c,v 1.6 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2008 Christoph Egger <cegger@netbsd.org>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpqlb_acpi.c,v 1.5 2010/01/30 18:35:49 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpqlb_acpi.c,v 1.6 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -97,7 +97,7 @@ static int hpqlb_finalize(device_t);
static int hpqlb_hotkey_handler(struct wskbd_softc *, void *, u_int, int);
static void hpqlb_init(device_t);
static bool hpqlb_resume(device_t, pmf_qual_t);
static bool hpqlb_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(hpqlb, sizeof(struct hpqlb_softc),
hpqlb_match, hpqlb_attach, NULL, NULL);
@ -289,7 +289,7 @@ hpqlb_finalize(device_t self)
}
static bool
hpqlb_resume(device_t self, pmf_qual_t qual)
hpqlb_resume(device_t self, const pmf_qual_t *qual)
{
hpqlb_init(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sony_acpi.c,v 1.12 2010/01/08 20:40:41 dyoung Exp $ */
/* $NetBSD: sony_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.12 2010/01/08 20:40:41 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -92,8 +92,8 @@ static ACPI_STATUS sony_acpi_eval_set_integer(ACPI_HANDLE, const char *,
ACPI_INTEGER, ACPI_INTEGER *);
static void sony_acpi_quirk_setup(struct sony_acpi_softc *);
static void sony_acpi_notify_handler(ACPI_HANDLE, UINT32, void *);
static bool sony_acpi_suspend(device_t, pmf_qual_t);
static bool sony_acpi_resume(device_t, pmf_qual_t);
static bool sony_acpi_suspend(device_t, const pmf_qual_t *);
static bool sony_acpi_resume(device_t, const pmf_qual_t *);
static void sony_acpi_brightness_down(device_t);
static void sony_acpi_brightness_up(device_t);
static ACPI_STATUS sony_acpi_find_pic(ACPI_HANDLE, UINT32, void *, void **);
@ -392,7 +392,7 @@ sony_acpi_notify_handler(ACPI_HANDLE hdl, UINT32 notify, void *opaque)
}
static bool
sony_acpi_suspend(device_t dv, pmf_qual_t qual)
sony_acpi_suspend(device_t dv, const pmf_qual_t *qual)
{
struct sony_acpi_softc *sc = device_private(dv);
@ -402,7 +402,7 @@ sony_acpi_suspend(device_t dv, pmf_qual_t qual)
}
static bool
sony_acpi_resume(device_t dv, pmf_qual_t qual)
sony_acpi_resume(device_t dv, const pmf_qual_t *qual)
{
struct sony_acpi_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: thinkpad_acpi.c,v 1.25 2010/01/31 17:53:31 jruoho Exp $ */
/* $NetBSD: thinkpad_acpi.c,v 1.26 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.25 2010/01/31 17:53:31 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.26 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -129,7 +129,7 @@ static void thinkpad_fan_refresh(struct sysmon_envsys *, envsys_data_t *);
static void thinkpad_wireless_toggle(thinkpad_softc_t *);
static bool thinkpad_resume(device_t, pmf_qual_t);
static bool thinkpad_resume(device_t, const pmf_qual_t *);
static void thinkpad_brightness_up(device_t);
static void thinkpad_brightness_down(device_t);
static uint8_t thinkpad_brightness_read(thinkpad_softc_t *sc);
@ -657,7 +657,7 @@ thinkpad_cmos(thinkpad_softc_t *sc, uint8_t cmd)
}
static bool
thinkpad_resume(device_t dv, pmf_qual_t qual)
thinkpad_resume(device_t dv, const pmf_qual_t *qual)
{
ACPI_STATUS rv;
ACPI_HANDLE pubs;

View File

@ -1,4 +1,4 @@
/* $NetBSD: wmi_acpi.c,v 1.12 2010/01/31 20:38:11 jruoho Exp $ */
/* $NetBSD: wmi_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $ */
/*-
* Copyright (c) 2009, 2010 Jukka Ruohonen <jruohonen@iki.fi>
@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.12 2010/01/31 20:38:11 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -130,8 +130,8 @@ static ACPI_STATUS acpi_wmi_guid_get(struct acpi_wmi_softc *,
static void acpi_wmi_event_add(struct acpi_wmi_softc *);
static void acpi_wmi_event_del(struct acpi_wmi_softc *);
static void acpi_wmi_event_handler(ACPI_HANDLE, uint32_t, void *);
static bool acpi_wmi_suspend(device_t, pmf_qual_t);
static bool acpi_wmi_resume(device_t, pmf_qual_t);
static bool acpi_wmi_suspend(device_t, const pmf_qual_t *);
static bool acpi_wmi_resume(device_t, const pmf_qual_t *);
static ACPI_STATUS acpi_wmi_enable(ACPI_HANDLE, const char *, bool, bool);
static bool acpi_wmi_input(struct wmi_t *, uint8_t, uint8_t);
@ -542,7 +542,7 @@ acpi_wmi_event_register(device_t self, ACPI_NOTIFY_HANDLER handler)
* disable (enable) these before suspending (resuming).
*/
static bool
acpi_wmi_suspend(device_t self, pmf_qual_t qual)
acpi_wmi_suspend(device_t self, const pmf_qual_t *qual)
{
struct acpi_wmi_softc *sc = device_private(self);
@ -552,7 +552,7 @@ acpi_wmi_suspend(device_t self, pmf_qual_t qual)
}
static bool
acpi_wmi_resume(device_t self, pmf_qual_t qual)
acpi_wmi_resume(device_t self, const pmf_qual_t *qual)
{
struct acpi_wmi_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ata.c,v 1.111 2010/01/21 02:53:51 dyoung Exp $ */
/* $NetBSD: ata.c,v 1.112 2010/02/24 22:37:56 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.111 2010/01/21 02:53:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.112 2010/02/24 22:37:56 dyoung Exp $");
#include "opt_ata.h"
@ -106,8 +106,8 @@ const struct cdevsw atabus_cdevsw = {
extern struct cfdriver atabus_cd;
static void atabus_childdetached(device_t, device_t);
static bool atabus_resume(device_t, pmf_qual_t);
static bool atabus_suspend(device_t, pmf_qual_t);
static bool atabus_resume(device_t, const pmf_qual_t *);
static bool atabus_suspend(device_t, const pmf_qual_t *);
static void atabusconfig_thread(void *);
/*
@ -1519,7 +1519,7 @@ atabusioctl(dev_t dev, u_long cmd, void *addr, int flag, struct lwp *l)
}
static bool
atabus_suspend(device_t dv, pmf_qual_t qual)
atabus_suspend(device_t dv, const pmf_qual_t *qual)
{
struct atabus_softc *sc = device_private(dv);
struct ata_channel *chp = sc->sc_chan;
@ -1530,7 +1530,7 @@ atabus_suspend(device_t dv, pmf_qual_t qual)
}
static bool
atabus_resume(device_t dv, pmf_qual_t qual)
atabus_resume(device_t dv, const pmf_qual_t *qual)
{
struct atabus_softc *sc = device_private(dv);
struct ata_channel *chp = sc->sc_chan;

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd.c,v 1.383 2010/01/23 18:54:53 bouyer Exp $ */
/* $NetBSD: wd.c,v 1.384 2010/02/24 22:37:57 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.383 2010/01/23 18:54:53 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.384 2010/02/24 22:37:57 dyoung Exp $");
#include "opt_ata.h"
@ -126,7 +126,7 @@ int wdprint(void *, char *);
void wdperror(const struct wd_softc *);
static int wdlastclose(device_t);
static bool wd_suspend(device_t, pmf_qual_t);
static bool wd_suspend(device_t, const pmf_qual_t *);
static int wd_standby(struct wd_softc *, int);
CFATTACH_DECL3_NEW(wd, sizeof(struct wd_softc),
@ -394,7 +394,7 @@ wdattach(device_t parent, device_t self, void *aux)
}
static bool
wd_suspend(device_t dv, pmf_qual_t qual)
wd_suspend(device_t dv, const pmf_qual_t *qual)
{
struct wd_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: audio.c,v 1.250 2010/01/08 20:05:15 dyoung Exp $ */
/* $NetBSD: audio.c,v 1.251 2010/02/24 22:37:56 dyoung Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.250 2010/01/08 20:05:15 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.251 2010/02/24 22:37:56 dyoung Exp $");
#include "audio.h"
#if NAUDIO > 0
@ -183,8 +183,8 @@ static void audio_idle(void *);
static void audio_activity(device_t, devactive_t);
#endif
static bool audio_suspend(device_t dv, pmf_qual_t);
static bool audio_resume(device_t dv, pmf_qual_t);
static bool audio_suspend(device_t dv, const pmf_qual_t *);
static bool audio_resume(device_t dv, const pmf_qual_t *);
static void audio_volume_down(device_t);
static void audio_volume_up(device_t);
static void audio_volume_toggle(device_t);
@ -4070,7 +4070,7 @@ audio_activity(device_t dv, devactive_t type)
#endif
static bool
audio_suspend(device_t dv, pmf_qual_t qual)
audio_suspend(device_t dv, const pmf_qual_t *qual)
{
struct audio_softc *sc = device_private(dv);
const struct audio_hw_if *hwp = sc->hw_if;
@ -4091,7 +4091,7 @@ audio_suspend(device_t dv, pmf_qual_t qual)
}
static bool
audio_resume(device_t dv, pmf_qual_t qual)
audio_resume(device_t dv, const pmf_qual_t *qual)
{
struct audio_softc *sc = device_private(dv);
int s;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardbus.c,v 1.100 2010/02/23 19:28:00 dyoung Exp $ */
/* $NetBSD: cardbus.c,v 1.101 2010/02/24 22:37:57 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.100 2010/02/23 19:28:00 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.101 2010/02/24 22:37:57 dyoung Exp $");
#include "opt_cardbus.h"
@ -1150,7 +1150,7 @@ struct cardbus_child_power {
};
static bool
cardbus_child_suspend(device_t dv, pmf_qual_t qual)
cardbus_child_suspend(device_t dv, const pmf_qual_t *qual)
{
struct cardbus_child_power *priv = device_pmf_bus_private(dv);
@ -1170,7 +1170,7 @@ cardbus_child_suspend(device_t dv, pmf_qual_t qual)
}
static bool
cardbus_child_resume(device_t dv, pmf_qual_t qual)
cardbus_child_resume(device_t dv, const pmf_qual_t *qual)
{
struct cardbus_child_power *priv = device_pmf_bus_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_atw_cardbus.c,v 1.29 2010/01/18 18:52:35 pooka Exp $ */
/* $NetBSD: if_atw_cardbus.c,v 1.30 2010/02/24 22:37:57 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.29 2010/01/18 18:52:35 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_atw_cardbus.c,v 1.30 2010/02/24 22:37:57 dyoung Exp $");
#include "opt_inet.h"
@ -117,8 +117,8 @@ CFATTACH_DECL3_NEW(atw_cardbus, sizeof(struct atw_cardbus_softc),
static void atw_cardbus_setup(struct atw_cardbus_softc *);
static bool atw_cardbus_suspend(device_t, pmf_qual_t);
static bool atw_cardbus_resume(device_t, pmf_qual_t);
static bool atw_cardbus_suspend(device_t, const pmf_qual_t *);
static bool atw_cardbus_resume(device_t, const pmf_qual_t *);
static const struct atw_cardbus_product *atw_cardbus_lookup
(const struct cardbus_attach_args *);
@ -322,7 +322,7 @@ atw_cardbus_detach(device_t self, int flags)
}
static bool
atw_cardbus_resume(device_t self, pmf_qual_t qual)
atw_cardbus_resume(device_t self, const pmf_qual_t *qual)
{
struct atw_cardbus_softc *csc = device_private(self);
struct atw_softc *sc = &csc->sc_atw;
@ -344,7 +344,7 @@ atw_cardbus_resume(device_t self, pmf_qual_t qual)
}
static bool
atw_cardbus_suspend(device_t self, pmf_qual_t qual)
atw_cardbus_suspend(device_t self, const pmf_qual_t *qual)
{
struct atw_cardbus_softc *csc = device_private(self);
cardbus_devfunc_t ct = csc->sc_ct;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_rtw_cardbus.c,v 1.34 2010/01/18 18:52:35 pooka Exp $ */
/* $NetBSD: if_rtw_cardbus.c,v 1.35 2010/02/24 22:37:57 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.34 2010/01/18 18:52:35 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_rtw_cardbus.c,v 1.35 2010/02/24 22:37:57 dyoung Exp $");
#include "opt_inet.h"
@ -141,8 +141,8 @@ CFATTACH_DECL_NEW(rtw_cardbus, sizeof(struct rtw_cardbus_softc),
void rtw_cardbus_setup(struct rtw_cardbus_softc *);
bool rtw_cardbus_resume(device_t, pmf_qual_t);
bool rtw_cardbus_suspend(device_t, pmf_qual_t);
bool rtw_cardbus_resume(device_t, const pmf_qual_t *);
bool rtw_cardbus_suspend(device_t, const pmf_qual_t *);
const struct rtw_cardbus_product *rtw_cardbus_lookup(
const struct cardbus_attach_args *);
@ -333,7 +333,7 @@ rtw_cardbus_detach(device_t self, int flags)
}
bool
rtw_cardbus_resume(device_t self, pmf_qual_t qual)
rtw_cardbus_resume(device_t self, const pmf_qual_t *qual)
{
struct rtw_cardbus_softc *csc = device_private(self);
struct rtw_softc *sc = &csc->sc_rtw;
@ -361,7 +361,7 @@ rtw_cardbus_resume(device_t self, pmf_qual_t qual)
}
bool
rtw_cardbus_suspend(device_t self, pmf_qual_t qual)
rtw_cardbus_suspend(device_t self, const pmf_qual_t *qual)
{
struct rtw_cardbus_softc *csc = device_private(self);
struct rtw_softc *sc = &csc->sc_rtw;

View File

@ -1,4 +1,4 @@
/* $NetBSD: gpio.c,v 1.31 2010/01/24 12:25:20 mbalmer Exp $ */
/* $NetBSD: gpio.c,v 1.32 2010/02/24 22:37:57 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.31 2010/01/24 12:25:20 mbalmer Exp $");
__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.32 2010/02/24 22:37:57 dyoung Exp $");
/*
* General Purpose Input/Output framework.
@ -66,7 +66,7 @@ int gpio_submatch(device_t, cfdata_t, const int *, void *);
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_qual_t);
bool gpio_resume(device_t, const 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 @@ gpio_submatch(device_t parent, cfdata_t cf, const int *ip, void *aux)
}
bool
gpio_resume(device_t self, pmf_qual_t qual)
gpio_resume(device_t self, const pmf_qual_t *qual)
{
struct gpio_softc *sc = device_private(self);
int pin;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcfb.c,v 1.52 2010/01/08 20:05:16 dyoung Exp $ */
/* $NetBSD: hpcfb.c,v 1.53 2010/02/24 22:37:57 dyoung Exp $ */
/*-
* Copyright (c) 1999
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.52 2010/01/08 20:05:16 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.53 2010/02/24 22:37:57 dyoung Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcfb.h"
@ -198,8 +198,8 @@ static void hpcfb_cmap_reorder(struct hpcfb_fbconf *,
struct hpcfb_devconfig *);
static void hpcfb_power(int, void *);
static bool hpcfb_suspend(device_t, pmf_qual_t);
static bool hpcfb_resume(device_t, pmf_qual_t);
static bool hpcfb_suspend(device_t, const pmf_qual_t *);
static bool hpcfb_resume(device_t, const pmf_qual_t *);
void hpcfb_cursor(void *, int, int, int);
@ -671,7 +671,7 @@ hpcfb_power(int why, void *arg)
}
static bool
hpcfb_suspend(device_t self, pmf_qual_t qual)
hpcfb_suspend(device_t self, const pmf_qual_t *qual)
{
struct hpcfb_softc *sc = device_private(self);
@ -680,7 +680,7 @@ hpcfb_suspend(device_t self, pmf_qual_t qual)
}
static bool
hpcfb_resume(device_t self, pmf_qual_t qual)
hpcfb_resume(device_t self, const pmf_qual_t *qual)
{
struct hpcfb_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbcool.c,v 1.14 2010/01/08 20:04:31 dyoung Exp $ */
/* $NetBSD: dbcool.c,v 1.15 2010/02/24 22:37:57 dyoung Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.14 2010/01/08 20:04:31 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.15 2010/02/24 22:37:57 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -648,7 +648,7 @@ dbcool_detach(device_t self, int flags)
}
/* On suspend, we save the state of the SHDN bit, then set it */
bool dbcool_pmf_suspend(device_t dev, pmf_qual_t qual)
bool dbcool_pmf_suspend(device_t dev, const pmf_qual_t *qual)
{
struct dbcool_softc *sc = device_private(dev);
uint8_t reg, bit, cfg;
@ -672,7 +672,7 @@ bool dbcool_pmf_suspend(device_t dev, pmf_qual_t qual)
}
/* On resume, we restore the previous state of the SHDN bit */
bool dbcool_pmf_resume(device_t dev, pmf_qual_t qual)
bool dbcool_pmf_resume(device_t dev, const pmf_qual_t *qual)
{
struct dbcool_softc *sc = device_private(dev);
uint8_t reg, bit, cfg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbcool_var.h,v 1.7 2010/01/08 20:04:31 dyoung Exp $ */
/* $NetBSD: dbcool_var.h,v 1.8 2010/02/24 22:37:57 dyoung Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbcool_var.h,v 1.7 2010/01/08 20:04:31 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: dbcool_var.h,v 1.8 2010/02/24 22:37:57 dyoung Exp $");
#include <dev/i2c/i2cvar.h>
@ -147,7 +147,7 @@ uint8_t dbcool_readreg(struct dbcool_chipset *, uint8_t);
void dbcool_writereg(struct dbcool_chipset *, uint8_t, uint8_t);
void dbcool_setup(device_t);
int dbcool_chip_ident(struct dbcool_chipset *);
bool dbcool_pmf_suspend(device_t, pmf_qual_t);
bool dbcool_pmf_resume(device_t, pmf_qual_t);
bool dbcool_pmf_suspend(device_t, const pmf_qual_t *);
bool dbcool_pmf_resume(device_t, const pmf_qual_t *);
#endif /* def DBCOOLVAR_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sdtemp.c,v 1.10 2010/02/14 23:07:22 pgoyette Exp $ */
/* $NetBSD: sdtemp.c,v 1.11 2010/02/24 22:37:57 dyoung Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.10 2010/02/14 23:07:22 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.11 2010/02/24 22:37:57 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -73,8 +73,8 @@ static int sdtemp_write_8(struct sdtemp_softc *, uint8_t, uint8_t);
static int sdtemp_read_16(struct sdtemp_softc *, uint8_t, uint16_t *);
static int sdtemp_write_16(struct sdtemp_softc *, uint8_t, uint16_t);
static uint32_t sdtemp_decode_temp(struct sdtemp_softc *, uint16_t);
static bool sdtemp_pmf_suspend(device_t, pmf_qual_t);
static bool sdtemp_pmf_resume(device_t, pmf_qual_t);
static bool sdtemp_pmf_suspend(device_t, const pmf_qual_t *);
static bool sdtemp_pmf_resume(device_t, const pmf_qual_t *);
struct sdtemp_dev_entry {
const uint16_t sdtemp_mfg_id;
@ -483,7 +483,7 @@ sdtemp_refresh(struct sysmon_envsys *sme, envsys_data_t *edata)
*/
static bool
sdtemp_pmf_suspend(device_t dev, pmf_qual_t qual)
sdtemp_pmf_suspend(device_t dev, const pmf_qual_t *qual)
{
struct sdtemp_softc *sc = device_private(dev);
int error;
@ -500,7 +500,7 @@ sdtemp_pmf_suspend(device_t dev, pmf_qual_t qual)
}
static bool
sdtemp_pmf_resume(device_t dev, pmf_qual_t qual)
sdtemp_pmf_resume(device_t dev, const pmf_qual_t *qual)
{
struct sdtemp_softc *sc = device_private(dev);
int error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic79xx_osm.c,v 1.30 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: aic79xx_osm.c,v 1.31 2010/02/24 22:37:57 dyoung Exp $ */
/*
* Bus independent NetBSD shim for the aic7xxx based adaptec SCSI controllers
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.30 2010/01/08 20:02:39 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.31 2010/02/24 22:37:57 dyoung Exp $");
#include <dev/ic/aic79xx_osm.h>
#include <dev/ic/aic79xx_inline.h>
@ -64,8 +64,8 @@ static void ahd_setup_data(struct ahd_softc *ahd, struct scsipi_xfer *xs,
static void ahd_set_recoveryscb(struct ahd_softc *ahd, struct scb *scb);
#endif
static bool ahd_pmf_suspend(device_t, pmf_qual_t);
static bool ahd_pmf_resume(device_t, pmf_qual_t);
static bool ahd_pmf_suspend(device_t, const pmf_qual_t *);
static bool ahd_pmf_resume(device_t, const pmf_qual_t *);
static bool ahd_pmf_shutdown(device_t, int);
/*
@ -118,7 +118,7 @@ ahd_attach(struct ahd_softc *ahd)
}
static bool
ahd_pmf_suspend(device_t dev, pmf_qual_t qual)
ahd_pmf_suspend(device_t dev, const pmf_qual_t *qual)
{
struct ahd_softc *sc = device_private(dev);
#if 0
@ -130,7 +130,7 @@ ahd_pmf_suspend(device_t dev, pmf_qual_t qual)
}
static bool
ahd_pmf_resume(device_t dev, pmf_qual_t qual)
ahd_pmf_resume(device_t dev, const pmf_qual_t *qual)
{
#if 0
struct ahd_softc *sc = device_private(dev);

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic7xxx_osm.c,v 1.36 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: aic7xxx_osm.c,v 1.37 2010/02/24 22:37:57 dyoung Exp $ */
/*
* Bus independent FreeBSD shim for the aic7xxx based adaptec SCSI controllers
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aic7xxx_osm.c,v 1.36 2010/01/08 20:02:39 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: aic7xxx_osm.c,v 1.37 2010/02/24 22:37:57 dyoung Exp $");
#include <dev/ic/aic7xxx_osm.h>
#include <dev/ic/aic7xxx_inline.h>
@ -60,8 +60,8 @@ static void ahc_set_recoveryscb(struct ahc_softc *ahc, struct scb *scb);
static int ahc_ioctl(struct scsipi_channel *channel, u_long cmd,
void *addr, int flag, struct proc *p);
static bool ahc_pmf_suspend(device_t, pmf_qual_t);
static bool ahc_pmf_resume(device_t, pmf_qual_t);
static bool ahc_pmf_suspend(device_t, const pmf_qual_t *);
static bool ahc_pmf_resume(device_t, const pmf_qual_t *);
static bool ahc_pmf_shutdown(device_t, int);
@ -144,7 +144,7 @@ ahc_attach(struct ahc_softc *ahc)
*/
static bool
ahc_pmf_suspend(device_t dev, pmf_qual_t qual)
ahc_pmf_suspend(device_t dev, const pmf_qual_t *qual)
{
struct ahc_softc *sc = device_private(dev);
#if 0
@ -156,7 +156,7 @@ ahc_pmf_suspend(device_t dev, pmf_qual_t qual)
}
static bool
ahc_pmf_resume(device_t dev, pmf_qual_t qual)
ahc_pmf_resume(device_t dev, const pmf_qual_t *qual)
{
#if 0
struct ahc_softc *sc = device_private(dev);

View File

@ -1,4 +1,4 @@
/* $NetBSD: athvar.h,v 1.30 2010/01/17 19:45:06 pooka Exp $ */
/* $NetBSD: athvar.h,v 1.31 2010/02/24 22:37:57 dyoung Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -176,7 +176,7 @@ struct ath_tx99;
struct ath_softc {
device_t sc_dev;
struct device_suspensor sc_suspensor;
struct pmf_qual sc_qual;
pmf_qual_t sc_qual;
struct ethercom sc_ec; /* interface common */
struct ath_stats sc_stats; /* interface statistics */
struct ieee80211com sc_ic; /* IEEE 802.11 common */

View File

@ -1,4 +1,4 @@
/* $NetBSD: atw.c,v 1.149 2010/01/19 22:06:24 pooka Exp $ */
/* $NetBSD: atw.c,v 1.150 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.149 2010/01/19 22:06:24 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.150 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
@ -318,7 +318,7 @@ atw_activate(device_t self, enum devact act)
}
bool
atw_suspend(device_t self, pmf_qual_t qual)
atw_suspend(device_t self, const pmf_qual_t *qual)
{
struct atw_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: atwvar.h,v 1.35 2010/01/17 19:45:06 pooka Exp $ */
/* $NetBSD: atwvar.h,v 1.36 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 2003, 2004 The NetBSD Foundation, Inc. All rights reserved.
@ -168,8 +168,8 @@ enum atw_revision {
struct atw_softc {
device_t sc_dev;
struct device_suspensor sc_suspensor;
struct pmf_qual sc_qual;
struct device_suspensor sc_suspensor;
pmf_qual_t sc_qual;
struct ethercom sc_ec;
struct ieee80211com sc_ic;
@ -448,6 +448,6 @@ int atw_detach(struct atw_softc *);
int atw_activate(device_t, enum devact);
int atw_intr(void *arg);
bool atw_shutdown(device_t, int);
bool atw_suspend(device_t, pmf_qual_t);
bool atw_suspend(device_t, const pmf_qual_t *);
#endif /* _DEV_IC_ATWVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bwi.c,v 1.13 2010/01/19 22:06:24 pooka Exp $ */
/* $NetBSD: bwi.c,v 1.14 2010/02/24 22:37:58 dyoung Exp $ */
/* $OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $ */
/*
@ -48,7 +48,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.13 2010/01/19 22:06:24 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.14 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
#include <sys/callout.h>
@ -9714,7 +9714,7 @@ bwi_calc_rssi(struct bwi_softc *sc, const struct bwi_rxbuf_hdr *hdr)
}
bool
bwi_suspend(device_t dv, pmf_qual_t qual)
bwi_suspend(device_t dv, const pmf_qual_t *qual)
{
struct bwi_softc *sc = device_private(dv);
@ -9724,7 +9724,7 @@ bwi_suspend(device_t dv, pmf_qual_t qual)
}
bool
bwi_resume(device_t dv, pmf_qual_t qual)
bwi_resume(device_t dv, const pmf_qual_t *qual)
{
struct bwi_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: bwivar.h,v 1.6 2010/01/19 22:06:24 pooka Exp $ */
/* $NetBSD: bwivar.h,v 1.7 2010/02/24 22:37:58 dyoung Exp $ */
/* $OpenBSD: bwivar.h,v 1.23 2008/02/25 20:36:54 mglocker Exp $ */
/*
@ -790,7 +790,7 @@ int bwi_attach(struct bwi_softc *);
void bwi_detach(struct bwi_softc *);
/* Power Management Framework */
bool bwi_suspend(device_t, pmf_qual_t);
bool bwi_resume(device_t, pmf_qual_t);
bool bwi_suspend(device_t, const pmf_qual_t *);
bool bwi_resume(device_t, const pmf_qual_t *);
#endif /* !_DEV_IC_BWIVAR_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: com.c,v 1.294 2010/01/09 14:15:48 tsutsui Exp $ */
/* $NetBSD: com.c,v 1.295 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.294 2010/01/09 14:15:48 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.295 2010/02/24 22:37:58 dyoung Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@ -2404,7 +2404,7 @@ com_cleanup(device_t self, int how)
}
bool
com_suspend(device_t self, pmf_qual_t qual)
com_suspend(device_t self, const pmf_qual_t *qual)
{
struct com_softc *sc = device_private(self);
@ -2420,7 +2420,7 @@ com_suspend(device_t self, pmf_qual_t qual)
}
bool
com_resume(device_t self, pmf_qual_t qual)
com_resume(device_t self, const pmf_qual_t *qual)
{
struct com_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: comvar.h,v 1.69 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: comvar.h,v 1.70 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -237,9 +237,9 @@ int comintr(void *);
void com_attach_subr(struct com_softc *);
int com_probe_subr(struct com_regs *);
int com_detach(device_t, int);
bool com_resume(device_t, pmf_qual_t);
bool com_resume(device_t, const pmf_qual_t *);
bool com_cleanup(device_t, int);
bool com_suspend(device_t, pmf_qual_t);
bool com_suspend(device_t, const pmf_qual_t *);
#ifndef IPL_SERIAL
#define IPL_SERIAL IPL_TTY

View File

@ -1,4 +1,4 @@
/* $NetBSD: gem.c,v 1.92 2010/01/19 22:06:24 pooka Exp $ */
/* $NetBSD: gem.c,v 1.93 2010/02/24 22:37:58 dyoung Exp $ */
/*
*
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.92 2010/01/19 22:06:24 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.93 2010/02/24 22:37:58 dyoung Exp $");
#include "opt_inet.h"
@ -2599,7 +2599,7 @@ gem_inten(struct gem_softc *sc)
}
bool
gem_resume(device_t self, pmf_qual_t qual)
gem_resume(device_t self, const pmf_qual_t *qual)
{
struct gem_softc *sc = device_private(self);
@ -2609,7 +2609,7 @@ gem_resume(device_t self, pmf_qual_t qual)
}
bool
gem_suspend(device_t self, pmf_qual_t qual)
gem_suspend(device_t self, const pmf_qual_t *qual)
{
struct gem_softc *sc = device_private(self);
bus_space_tag_t t = sc->sc_bustag;

View File

@ -1,4 +1,4 @@
/* $NetBSD: gemvar.h,v 1.20 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: gemvar.h,v 1.21 2010/02/24 22:37:58 dyoung Exp $ */
/*
*
@ -308,8 +308,8 @@ do { \
#ifdef _KERNEL
bool gem_shutdown(device_t, int);
bool gem_suspend(device_t, pmf_qual_t);
bool gem_resume(device_t, pmf_qual_t);
bool gem_suspend(device_t, const pmf_qual_t *);
bool gem_resume(device_t, const pmf_qual_t *);
void gem_attach(struct gem_softc *, const uint8_t *);
int gem_intr(void *);
int gem_detach(struct gem_softc *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpet.c,v 1.9 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: hpet.c,v 1.10 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 2006 Nicolas Joly
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpet.c,v 1.9 2010/01/08 20:02:39 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpet.c,v 1.10 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/systm.h>
#include <sys/device.h>
@ -48,7 +48,7 @@ __KERNEL_RCSID(0, "$NetBSD: hpet.c,v 1.9 2010/01/08 20:02:39 dyoung Exp $");
#include <dev/ic/hpetvar.h>
static u_int hpet_get_timecount(struct timecounter *);
static bool hpet_resume(device_t, pmf_qual_t);
static bool hpet_resume(device_t, const pmf_qual_t *);
int
hpet_detach(device_t dv, int flags)
@ -113,7 +113,7 @@ hpet_get_timecount(struct timecounter *tc)
}
static bool
hpet_resume(device_t dv, pmf_qual_t qual)
hpet_resume(device_t dv, const pmf_qual_t *qual)
{
struct hpet_softc *sc = device_private(dv);
uint32_t val;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ne2000.c,v 1.66 2010/02/24 15:18:15 tsutsui Exp $ */
/* $NetBSD: ne2000.c,v 1.67 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.66 2010/02/24 15:18:15 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.67 2010/02/24 22:37:58 dyoung Exp $");
#include "opt_ipkdb.h"
@ -909,7 +909,7 @@ ne2000_ipkdb_attach(struct ipkdb_if *kip)
#endif
bool
ne2000_suspend(device_t self, pmf_qual_t qual)
ne2000_suspend(device_t self, const pmf_qual_t *qual)
{
struct ne2000_softc *sc = device_private(self);
struct dp8390_softc *dsc = &sc->sc_dp8390;
@ -925,7 +925,7 @@ ne2000_suspend(device_t self, pmf_qual_t qual)
}
bool
ne2000_resume(device_t self, pmf_qual_t qual)
ne2000_resume(device_t self, const pmf_qual_t *qual)
{
struct ne2000_softc *sc = device_private(self);
struct dp8390_softc *dsc = &sc->sc_dp8390;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ne2000var.h,v 1.23 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: ne2000var.h,v 1.24 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@ int ne2000_ipkdb_attach(struct ipkdb_if *);
#endif
/* pmf(9) */
bool ne2000_suspend(device_t, pmf_qual_t);
bool ne2000_resume(device_t, pmf_qual_t);
bool ne2000_suspend(device_t, const pmf_qual_t *);
bool ne2000_resume(device_t, const pmf_qual_t *);
#endif /* _DEV_IC_NE2000VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pckbc.c,v 1.47 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: pckbc.c,v 1.48 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 2004 Ben Harris.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.47 2010/01/08 20:02:39 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.48 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -680,7 +680,7 @@ pckbc_cnattach(bus_space_tag_t iot, bus_addr_t addr,
}
bool
pckbc_resume(device_t dv, pmf_qual_t qual)
pckbc_resume(device_t dv, const pmf_qual_t *qual)
{
struct pckbc_softc *sc = device_private(dv);
struct pckbc_internal *t;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pckbcvar.h,v 1.16 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: pckbcvar.h,v 1.17 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 1998
@ -112,6 +112,6 @@ void pckbcintr_soft(void *);
int pckbc_machdep_cnattach(pckbc_tag_t, pckbc_slot_t);
/* power management */
bool pckbc_resume(device_t, pmf_qual_t);
bool pckbc_resume(device_t, const pmf_qual_t *);
#endif /* _DEV_IC_PCKBCVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtw.c,v 1.113 2010/01/31 18:12:51 dyoung Exp $ */
/* $NetBSD: rtw.c,v 1.114 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 David Young. All rights
* reserved.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.113 2010/01/31 18:12:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.114 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
@ -2488,7 +2488,7 @@ rtw_tune(struct rtw_softc *sc)
}
bool
rtw_suspend(device_t self, pmf_qual_t qual)
rtw_suspend(device_t self, const pmf_qual_t *qual)
{
int rc;
struct rtw_softc *sc = device_private(self);
@ -2510,7 +2510,7 @@ rtw_suspend(device_t self, pmf_qual_t qual)
}
bool
rtw_resume(device_t self, pmf_qual_t qual)
rtw_resume(device_t self, const pmf_qual_t *qual)
{
struct rtw_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtwvar.h,v 1.41 2010/01/17 19:45:06 pooka Exp $ */
/* $NetBSD: rtwvar.h,v 1.42 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 2004, 2005 David Young. All rights reserved.
*
@ -415,8 +415,8 @@ struct rtw_led_state {
struct rtw_softc {
device_t sc_dev;
struct device_suspensor sc_suspensor;
struct pmf_qual sc_qual;
device_suspensor_t sc_suspensor;
pmf_qual_t sc_qual;
struct ethercom sc_ec;
struct ieee80211com sc_ic;
@ -502,8 +502,8 @@ void rtw_attach(struct rtw_softc *);
int rtw_detach(struct rtw_softc *);
int rtw_intr(void *);
bool rtw_suspend(device_t, pmf_qual_t);
bool rtw_resume(device_t, pmf_qual_t);
bool rtw_suspend(device_t, const pmf_qual_t *);
bool rtw_resume(device_t, const pmf_qual_t *);
int rtw_activate(device_t, enum devact);

View File

@ -1,4 +1,4 @@
/* $NetBSD: spic.c,v 1.16 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: spic.c,v 1.17 2010/02/24 22:37:58 dyoung Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -49,7 +49,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: spic.c,v 1.16 2010/01/08 20:02:39 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: spic.c,v 1.17 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -290,7 +290,7 @@ spic_attach(struct spic_softc *sc)
}
bool
spic_suspend(device_t dev, pmf_qual_t qual)
spic_suspend(device_t dev, const pmf_qual_t *qual)
{
struct spic_softc *sc = device_private(dev);
@ -300,7 +300,7 @@ spic_suspend(device_t dev, pmf_qual_t qual)
}
bool
spic_resume(device_t dev, pmf_qual_t qual)
spic_resume(device_t dev, const pmf_qual_t *qual)
{
struct spic_softc *sc = device_private(dev);

View File

@ -1,4 +1,4 @@
/* $NetBSD: spicvar.h,v 1.6 2010/01/08 20:02:39 dyoung Exp $ */
/* $NetBSD: spicvar.h,v 1.7 2010/02/24 22:37:58 dyoung Exp $ */
#include <dev/sysmon/sysmonvar.h>
@ -23,7 +23,7 @@ struct spic_softc {
};
void spic_attach(struct spic_softc *);
bool spic_suspend(device_t, pmf_qual_t);
bool spic_resume(device_t, pmf_qual_t);
bool spic_suspend(device_t, const pmf_qual_t *);
bool spic_resume(device_t, const pmf_qual_t *);
int spic_intr(void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: aps.c,v 1.9 2010/01/08 20:00:03 dyoung Exp $ */
/* $NetBSD: aps.c,v 1.10 2010/02/24 22:37:58 dyoung Exp $ */
/* $OpenBSD: aps.c,v 1.15 2007/05/19 19:14:11 tedu Exp $ */
/*
@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aps.c,v 1.9 2010/01/08 20:00:03 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: aps.c,v 1.10 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -112,8 +112,8 @@ static uint8_t aps_mem_read_1(bus_space_tag_t, bus_space_handle_t,
int, uint8_t);
static void aps_refresh_sensor_data(struct aps_softc *sc);
static void aps_refresh(void *);
static bool aps_suspend(device_t, pmf_qual_t);
static bool aps_resume(device_t, pmf_qual_t);
static bool aps_suspend(device_t, const pmf_qual_t *);
static bool aps_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(aps, sizeof(struct aps_softc),
aps_match, aps_attach, aps_detach, NULL);
@ -401,7 +401,7 @@ aps_refresh(void *arg)
}
static bool
aps_suspend(device_t dv, pmf_qual_t qual)
aps_suspend(device_t dv, const pmf_qual_t *qual)
{
struct aps_softc *sc = device_private(dv);
@ -411,7 +411,7 @@ aps_suspend(device_t dv, pmf_qual_t qual)
}
static bool
aps_resume(device_t dv, pmf_qual_t qual)
aps_resume(device_t dv, const pmf_qual_t *qual)
{
struct aps_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: com_isa.c,v 1.38 2010/01/08 20:00:03 dyoung Exp $ */
/* $NetBSD: com_isa.c,v 1.39 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: com_isa.c,v 1.38 2010/01/08 20:00:03 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: com_isa.c,v 1.39 2010/02/24 22:37:58 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -95,8 +95,8 @@ struct com_isa_softc {
int sc_irq;
};
static bool com_isa_suspend(device_t, pmf_qual_t);
static bool com_isa_resume(device_t, pmf_qual_t);
static bool com_isa_suspend(device_t, const pmf_qual_t *);
static bool com_isa_resume(device_t, const pmf_qual_t *);
int com_isa_probe(device_t, cfdata_t , void *);
void com_isa_attach(device_t, device_t, void *);
@ -218,7 +218,7 @@ com_isa_attach(device_t parent, device_t self, void *aux)
}
static bool
com_isa_suspend(device_t self, pmf_qual_t qual)
com_isa_suspend(device_t self, const pmf_qual_t *qual)
{
struct com_isa_softc *isc = device_private(self);
@ -232,7 +232,7 @@ com_isa_suspend(device_t self, pmf_qual_t qual)
}
static bool
com_isa_resume(device_t self, pmf_qual_t qual)
com_isa_resume(device_t self, const pmf_qual_t *qual)
{
struct com_isa_softc *isc = device_private(self);
struct com_softc *sc = &isc->sc_com;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.94 2010/01/08 20:00:03 dyoung Exp $ */
/* $NetBSD: fd.c,v 1.95 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1998, 2003, 2008 The NetBSD Foundation, Inc.
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.94 2010/01/08 20:00:03 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.95 2010/02/24 22:37:58 dyoung Exp $");
#include "rnd.h"
#include "opt_ddb.h"
@ -208,8 +208,8 @@ void fdattach(device_t, device_t, void *);
static int fddetach(device_t, int);
static int fdcintr1(struct fdc_softc *);
static void fdcintrcb(void *);
static bool fdcsuspend(device_t, pmf_qual_t);
static bool fdcresume(device_t, pmf_qual_t);
static bool fdcsuspend(device_t, const pmf_qual_t *);
static bool fdcresume(device_t, const pmf_qual_t *);
extern struct cfdriver fd_cd;
@ -287,7 +287,7 @@ fdprint(void *aux, const char *fdc)
}
static bool
fdcresume(device_t self, pmf_qual_t qual)
fdcresume(device_t self, const pmf_qual_t *qual)
{
struct fdc_softc *fdc = device_private(self);
@ -298,7 +298,7 @@ fdcresume(device_t self, pmf_qual_t qual)
}
static bool
fdcsuspend(device_t self, pmf_qual_t qual)
fdcsuspend(device_t self, const pmf_qual_t *qual)
{
struct fdc_softc *fdc = device_private(self);
int drive;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbdsp.c,v 1.133 2010/01/08 20:00:03 dyoung Exp $ */
/* $NetBSD: sbdsp.c,v 1.134 2010/02/24 22:37:58 dyoung Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sbdsp.c,v 1.133 2010/01/08 20:00:03 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: sbdsp.c,v 1.134 2010/02/24 22:37:58 dyoung Exp $");
#include "midi.h"
#include "mpu.h"
@ -224,7 +224,7 @@ static int sbdsp_adjust(int, int);
int sbdsp_midi_intr(void *);
static bool sbdsp_resume(device_t, pmf_qual_t);
static bool sbdsp_resume(device_t, const pmf_qual_t *);
#ifdef AUDIO_DEBUG
void sb_printsc(struct sbdsp_softc *);
@ -440,7 +440,7 @@ sbdsp_attach(struct sbdsp_softc *sc)
}
static bool
sbdsp_resume(device_t dv, pmf_qual_t qual)
sbdsp_resume(device_t dv, const pmf_qual_t *qual)
{
struct sbdsp_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ym.c,v 1.38 2010/01/08 20:00:03 dyoung Exp $ */
/* $NetBSD: ym.c,v 1.39 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ym.c,v 1.38 2010/01/08 20:00:03 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ym.c,v 1.39 2010/02/24 22:37:59 dyoung Exp $");
#include "mpu_ym.h"
#include "opt_ym.h"
@ -162,8 +162,8 @@ static void ym_hvol_to_master_gain(struct ym_softc *);
static void ym_set_mic_gain(struct ym_softc *, int);
static void ym_set_3d(struct ym_softc *, mixer_ctrl_t *,
struct ad1848_volume *, int);
static bool ym_suspend(device_t, pmf_qual_t);
static bool ym_resume(device_t, pmf_qual_t);
static bool ym_suspend(device_t, const pmf_qual_t *);
static bool ym_resume(device_t, const pmf_qual_t *);
const struct audio_hw_if ym_hw_if = {
@ -1107,7 +1107,7 @@ ym_restore_codec_regs(struct ym_softc *sc)
* DMA state should also be restored. FIXME.
*/
static bool
ym_suspend(device_t self, pmf_qual_t qual)
ym_suspend(device_t self, const pmf_qual_t *qual)
{
struct ym_softc *sc = device_private(self);
int s;
@ -1144,7 +1144,7 @@ ym_suspend(device_t self, pmf_qual_t qual)
}
static bool
ym_resume(device_t self, pmf_qual_t qual)
ym_resume(device_t self, const pmf_qual_t *qual)
{
struct ym_softc *sc = device_private(self);
int i, xmax;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mii_physubr.c,v 1.66 2010/01/08 19:58:33 dyoung Exp $ */
/* $NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.66 2010/01/08 19:58:33 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -623,7 +623,7 @@ mii_phy_flowstatus(struct mii_softc *sc)
}
bool
mii_phy_resume(device_t dv, pmf_qual_t qual)
mii_phy_resume(device_t dv, const pmf_qual_t *qual)
{
struct mii_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: miivar.h,v 1.57 2010/01/08 19:58:33 dyoung Exp $ */
/* $NetBSD: miivar.h,v 1.58 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -225,7 +225,7 @@ struct mii_media {
void mii_attach(device_t, struct mii_data *, int, int, int, int);
void mii_detach(struct mii_data *, int, int);
bool mii_phy_resume(device_t, pmf_qual_t);
bool mii_phy_resume(device_t, const pmf_qual_t *);
int mii_mediachg(struct mii_data *);
void mii_tick(struct mii_data *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukphy.c,v 1.38 2009/10/19 18:41:14 bouyer Exp $ */
/* $NetBSD: ukphy.c,v 1.39 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ukphy.c,v 1.38 2009/10/19 18:41:14 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: ukphy.c,v 1.39 2010/02/24 22:37:59 dyoung Exp $");
#include "opt_mii.h"
@ -89,8 +89,9 @@ struct mii_knowndev {
static int ukphymatch(device_t, cfdata_t, void *);
static void ukphyattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(ukphy, sizeof(struct mii_softc),
ukphymatch, ukphyattach, mii_phy_detach, mii_phy_activate);
CFATTACH_DECL3_NEW(ukphy, sizeof(struct mii_softc),
ukphymatch, ukphyattach, mii_phy_detach, mii_phy_activate, NULL, NULL,
DVF_DETACH_SHUTDOWN);
static int ukphy_service(struct mii_softc *, struct mii_data *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: agp.c,v 1.67 2010/02/24 00:01:11 jym Exp $ */
/* $NetBSD: agp.c,v 1.68 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@ -65,7 +65,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.67 2010/02/24 00:01:11 jym Exp $");
__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.68 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -103,7 +103,7 @@ static int agp_deallocate_user(struct agp_softc *, int);
static int agp_bind_user(struct agp_softc *, agp_bind *);
static int agp_unbind_user(struct agp_softc *, agp_unbind *);
static int agpdev_match(struct pci_attach_args *);
static bool agp_resume(device_t, pmf_qual_t);
static bool agp_resume(device_t, const pmf_qual_t *);
#include "agp_ali.h"
#include "agp_amd.h"
@ -1119,7 +1119,7 @@ agp_free_dmamem(bus_dma_tag_t tag, size_t size, bus_dmamap_t map,
}
static bool
agp_resume(device_t dv, pmf_qual_t qual)
agp_resume(device_t dv, const pmf_qual_t *qual)
{
agp_flush_cache();

View File

@ -1,4 +1,4 @@
/* $NetBSD: agp_i810.c,v 1.65 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: agp_i810.c,v 1.66 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.65 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.66 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -98,7 +98,7 @@ static int agp_i810_free_memory(struct agp_softc *, struct agp_memory *);
static int agp_i810_bind_memory(struct agp_softc *, struct agp_memory *, off_t);
static int agp_i810_unbind_memory(struct agp_softc *, struct agp_memory *);
static bool agp_i810_resume(device_t, pmf_qual_t);
static bool agp_i810_resume(device_t, const pmf_qual_t *);
static int agp_i810_init(struct agp_softc *);
static int agp_i810_init(struct agp_softc *);
@ -1016,7 +1016,7 @@ agp_i810_unbind_memory(struct agp_softc *sc, struct agp_memory *mem)
}
static bool
agp_i810_resume(device_t dv, pmf_qual_t qual)
agp_i810_resume(device_t dv, const pmf_qual_t *qual)
{
struct agp_softc *sc = device_private(dv);
struct agp_i810_softc *isc = sc->as_chipc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: agp_intel.c,v 1.33 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: agp_intel.c,v 1.34 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: agp_intel.c,v 1.33 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: agp_intel.c,v 1.34 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -71,7 +71,7 @@ static int agp_intel_bind_page(struct agp_softc *, off_t, bus_addr_t);
static int agp_intel_unbind_page(struct agp_softc *, off_t);
static void agp_intel_flush_tlb(struct agp_softc *);
static int agp_intel_init(struct agp_softc *);
static bool agp_intel_resume(device_t, pmf_qual_t);
static bool agp_intel_resume(device_t, const pmf_qual_t *);
static struct agp_methods agp_intel_methods = {
agp_intel_get_aperture,
@ -397,7 +397,7 @@ agp_intel_flush_tlb(struct agp_softc *sc)
}
static bool
agp_intel_resume(device_t dv, pmf_qual_t qual)
agp_intel_resume(device_t dv, const pmf_qual_t *qual)
{
struct agp_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ahcisata_pci.c,v 1.18 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: ahcisata_pci.c,v 1.19 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.18 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.19 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/types.h>
#include <sys/malloc.h>
@ -74,7 +74,7 @@ static int ahci_pci_match(device_t, cfdata_t, void *);
static void ahci_pci_attach(device_t, device_t, void *);
const struct pci_quirkdata *ahci_pci_lookup_quirkdata(pci_vendor_id_t,
pci_product_id_t);
static bool ahci_pci_resume(device_t, pmf_qual_t);
static bool ahci_pci_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(ahcisata_pci, sizeof(struct ahci_pci_softc),
@ -171,7 +171,7 @@ ahci_pci_attach(device_t parent, device_t self, void *aux)
}
static bool
ahci_pci_resume(device_t dv, pmf_qual_t qual)
ahci_pci_resume(device_t dv, const pmf_qual_t *qual)
{
struct ahci_pci_softc *psc = device_private(dv);
struct ahci_softc *sc = &psc->ah_sc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: auacer.c,v 1.26 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: auacer.c,v 1.27 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -44,7 +44,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.26 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.27 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -183,7 +183,7 @@ static int auacer_allocmem(struct auacer_softc *, size_t, size_t,
struct auacer_dma *);
static int auacer_freemem(struct auacer_softc *, struct auacer_dma *);
static bool auacer_resume(device_t, pmf_qual_t);
static bool auacer_resume(device_t, const pmf_qual_t *);
static int auacer_set_rate(struct auacer_softc *, int, u_int);
static void auacer_reset(struct auacer_softc *sc);
@ -1016,7 +1016,7 @@ auacer_alloc_cdata(struct auacer_softc *sc)
}
static bool
auacer_resume(device_t dv, pmf_qual_t qual)
auacer_resume(device_t dv, const pmf_qual_t *qual)
{
struct auacer_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: auich.c,v 1.136 2010/02/01 12:51:16 njoly Exp $ */
/* $NetBSD: auich.c,v 1.137 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2000, 2004, 2005 The NetBSD Foundation, Inc.
@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.136 2010/02/01 12:51:16 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.137 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -287,7 +287,7 @@ static int auich_allocmem(struct auich_softc *, size_t, size_t,
struct auich_dma *);
static int auich_freemem(struct auich_softc *, struct auich_dma *);
static bool auich_resume(device_t, pmf_qual_t);
static bool auich_resume(device_t, const pmf_qual_t *);
static int auich_set_rate(struct auich_softc *, int, u_long);
static int auich_sysctl_verify(SYSCTLFN_ARGS);
static void auich_finish_attach(device_t);
@ -1569,7 +1569,7 @@ auich_alloc_cdata(struct auich_softc *sc)
}
static bool
auich_resume(device_t dv, pmf_qual_t qual)
auich_resume(device_t dv, const pmf_qual_t *qual)
{
struct auich_softc *sc = device_private(dv);
pcireg_t v;

View File

@ -1,4 +1,4 @@
/* $NetBSD: auixp.c,v 1.33 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: auixp.c,v 1.34 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 2004, 2005 Reinoud Zandijk <reinoud@netbsd.org>
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: auixp.c,v 1.33 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: auixp.c,v 1.34 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/types.h>
#include <sys/errno.h>
@ -194,7 +194,7 @@ static void auixp_program_dma_chain(struct auixp_softc *,
static void auixp_dma_update(struct auixp_softc *, struct auixp_dma *);
static void auixp_update_busbusy(struct auixp_softc *);
static bool auixp_resume(device_t, pmf_qual_t);
static bool auixp_resume(device_t, const pmf_qual_t *);
#ifdef DEBUG_AUIXP
@ -1753,7 +1753,7 @@ auixp_init(struct auixp_softc *sc)
}
static bool
auixp_resume(device_t dv, pmf_qual_t qual)
auixp_resume(device_t dv, const pmf_qual_t *qual)
{
struct auixp_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: autri.c,v 1.45 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: autri.c,v 1.46 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.45 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.46 2010/02/24 22:37:59 dyoung Exp $");
#include "midi.h"
@ -97,7 +97,7 @@ static int autri_write_codec(void *, uint8_t, uint16_t);
static int autri_reset_codec(void *);
static enum ac97_host_flags autri_flags_codec(void *);
static bool autri_resume(device_t, pmf_qual_t);
static bool autri_resume(device_t, const pmf_qual_t *);
static int autri_init(void *);
static struct autri_dma *autri_find_dma(struct autri_softc *, void *);
static void autri_setup_channel(struct autri_softc *, int,
@ -601,7 +601,7 @@ CFATTACH_DECL(autri, sizeof(struct autri_softc),
autri_match, autri_attach, NULL, NULL);
static bool
autri_resume(device_t dv, pmf_qual_t qual)
autri_resume(device_t dv, const pmf_qual_t *qual)
{
struct autri_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: auvia.c,v 1.71 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: auvia.c,v 1.72 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.71 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.72 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -113,7 +113,7 @@ static int auvia_trigger_output(void *, void *, void *, int,
static int auvia_trigger_input(void *, void *, void *, int,
void (*)(void *), void *,
const audio_params_t *);
static bool auvia_resume(device_t, pmf_qual_t);
static bool auvia_resume(device_t, const pmf_qual_t *);
static int auvia_intr(void *);
static int auvia_attach_codec(void *, struct ac97_codec_if *);
@ -1141,7 +1141,7 @@ auvia_intr(void *arg)
}
static bool
auvia_resume(device_t dv, pmf_qual_t qual)
auvia_resume(device_t dv, const pmf_qual_t *qual)
{
struct auvia_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: azalia.c,v 1.72 2010/01/20 09:05:12 tonnerre Exp $ */
/* $NetBSD: azalia.c,v 1.73 2010/02/24 22:37:59 dyoung Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.72 2010/01/20 09:05:12 tonnerre Exp $");
__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.73 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -156,7 +156,7 @@ typedef struct azalia_t {
static int azalia_pci_match(device_t, cfdata_t, void *);
static void azalia_pci_attach(device_t, device_t, void *);
static int azalia_pci_detach(device_t, int);
static bool azalia_pci_resume(device_t, pmf_qual_t);
static bool azalia_pci_resume(device_t, const pmf_qual_t *);
static void azalia_childdet(device_t, device_t);
static int azalia_intr(void *);
static int azalia_attach(azalia_t *);
@ -416,7 +416,7 @@ azalia_pci_detach(device_t self, int flags)
}
static bool
azalia_pci_resume(device_t dv, pmf_qual_t qual)
azalia_pci_resume(device_t dv, const pmf_qual_t *qual)
{
azalia_t *az = device_private(dv);
int s;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cs4280.c,v 1.56 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: cs4280.c,v 1.57 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 1999, 2000 Tatoku Ogaito. All rights reserved.
@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cs4280.c,v 1.56 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: cs4280.c,v 1.57 2010/02/24 22:37:59 dyoung Exp $");
#include "midi.h"
@ -110,8 +110,8 @@ static int cs4280_reset_codec(void *);
#endif
static enum ac97_host_flags cs4280_flags_codec(void *);
static bool cs4280_resume(device_t, pmf_qual_t);
static bool cs4280_suspend(device_t, pmf_qual_t);
static bool cs4280_resume(device_t, const pmf_qual_t *);
static bool cs4280_suspend(device_t, const pmf_qual_t *);
/* Internal functions */
static const struct cs4280_card_t * cs4280_identify_card(struct pci_attach_args *);
@ -908,7 +908,7 @@ cs4280_trigger_input(void *addr, void *start, void *end, int blksize,
}
static bool
cs4280_suspend(device_t dv, pmf_qual_t qual)
cs4280_suspend(device_t dv, const pmf_qual_t *qual)
{
struct cs428x_softc *sc = device_private(dv);
@ -943,7 +943,7 @@ cs4280_suspend(device_t dv, pmf_qual_t qual)
}
static bool
cs4280_resume(device_t dv, pmf_qual_t qual)
cs4280_resume(device_t dv, const pmf_qual_t *qual)
{
struct cs428x_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cs4281.c,v 1.43 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: cs4281.c,v 1.44 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 2000 Tatoku Ogaito. All rights reserved.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.43 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.44 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -106,8 +106,8 @@ static void cs4281_set_adc_rate(struct cs428x_softc *, int);
static int cs4281_init(struct cs428x_softc *, int);
/* Power Management */
static bool cs4281_suspend(device_t, pmf_qual_t);
static bool cs4281_resume(device_t, pmf_qual_t);
static bool cs4281_suspend(device_t, const pmf_qual_t *);
static bool cs4281_resume(device_t, const pmf_qual_t *);
static const struct audio_hw_if cs4281_hw_if = {
NULL, /* open */
@ -717,7 +717,7 @@ cs4281_trigger_input(void *addr, void *start, void *end, int blksize,
}
static bool
cs4281_suspend(device_t dv, pmf_qual_t qual)
cs4281_suspend(device_t dv, const pmf_qual_t *qual)
{
struct cs428x_softc *sc = device_private(dv);
@ -744,7 +744,7 @@ cs4281_suspend(device_t dv, pmf_qual_t qual)
}
static bool
cs4281_resume(device_t dv, pmf_qual_t qual)
cs4281_resume(device_t dv, const pmf_qual_t *qual)
{
struct cs428x_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ehci_pci.c,v 1.46 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: ehci_pci.c,v 1.47 2010/02/24 22:37:59 dyoung Exp $ */
/*
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.46 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.47 2010/02/24 22:37:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -76,8 +76,8 @@ static void ehci_release_ownership(ehci_softc_t *sc, pci_chipset_tag_t pc,
pcitag_t tag);
static void ehci_get_ownership(ehci_softc_t *sc, pci_chipset_tag_t pc,
pcitag_t tag);
static bool ehci_pci_suspend(device_t, pmf_qual_t);
static bool ehci_pci_resume(device_t, pmf_qual_t);
static bool ehci_pci_suspend(device_t, const pmf_qual_t *);
static bool ehci_pci_resume(device_t, const pmf_qual_t *);
struct ehci_pci_softc {
ehci_softc_t sc;
@ -421,7 +421,7 @@ next:
}
static bool
ehci_pci_suspend(device_t dv, pmf_qual_t qual)
ehci_pci_suspend(device_t dv, const pmf_qual_t *qual)
{
struct ehci_pci_softc *sc = device_private(dv);
@ -432,7 +432,7 @@ ehci_pci_suspend(device_t dv, pmf_qual_t qual)
}
static bool
ehci_pci_resume(device_t dv, pmf_qual_t qual)
ehci_pci_resume(device_t dv, const pmf_qual_t *qual)
{
struct ehci_pci_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: esa.c,v 1.53 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: esa.c,v 1.54 2010/02/24 22:38:00 dyoung Exp $ */
/*
* Copyright (c) 2001-2008 Jared D. McNeill <jmcneill@invisible.ca>
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: esa.c,v 1.53 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: esa.c,v 1.54 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/types.h>
#include <sys/errno.h>
@ -163,8 +163,8 @@ static void esa_remove_list(struct esa_voice *, struct esa_list *,
int);
/* power management */
static bool esa_suspend(device_t, pmf_qual_t);
static bool esa_resume(device_t, pmf_qual_t);
static bool esa_suspend(device_t, const pmf_qual_t *);
static bool esa_resume(device_t, const pmf_qual_t *);
#define ESA_NENCODINGS 8
@ -1652,7 +1652,7 @@ esa_remove_list(struct esa_voice *vc, struct esa_list *el, int index)
}
static bool
esa_suspend(device_t dv, pmf_qual_t qual)
esa_suspend(device_t dv, const pmf_qual_t *qual)
{
struct esa_softc *sc = device_private(dv);
bus_space_tag_t iot = sc->sc_iot;
@ -1680,7 +1680,7 @@ esa_suspend(device_t dv, pmf_qual_t qual)
}
static bool
esa_resume(device_t dv, pmf_qual_t qual)
esa_resume(device_t dv, const pmf_qual_t *qual)
{
struct esa_softc *sc = device_private(dv);
bus_space_tag_t iot = sc->sc_iot;

View File

@ -1,4 +1,4 @@
/* $NetBSD: esm.c,v 1.52 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: esm.c,v 1.53 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2002, 2003 Matt Fredette
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: esm.c,v 1.52 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: esm.c,v 1.53 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -146,8 +146,8 @@ static void esmch_set_format(struct esm_chinfo *,
static void esmch_combine_input(struct esm_softc *,
struct esm_chinfo *);
static bool esm_suspend(device_t, pmf_qual_t);
static bool esm_resume(device_t, pmf_qual_t);
static bool esm_suspend(device_t, const pmf_qual_t *);
static bool esm_resume(device_t, const pmf_qual_t *);
static void esm_childdet(device_t, device_t);
static int esm_match(device_t, cfdata_t, void *);
static void esm_attach(device_t, device_t, void *);
@ -1766,7 +1766,7 @@ esm_detach(device_t self, int flags)
}
static bool
esm_suspend(device_t dv, pmf_qual_t qual)
esm_suspend(device_t dv, const pmf_qual_t *qual)
{
struct esm_softc *ess = device_private(dv);
int x;
@ -1789,7 +1789,7 @@ esm_suspend(device_t dv, pmf_qual_t qual)
}
static bool
esm_resume(device_t dv, pmf_qual_t qual)
esm_resume(device_t dv, const pmf_qual_t *qual)
{
struct esm_softc *ess = device_private(dv);
int x;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fwohci_pci.c,v 1.35 2010/02/03 19:32:40 macallan Exp $ */
/* $NetBSD: fwohci_pci.c,v 1.36 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fwohci_pci.c,v 1.35 2010/02/03 19:32:40 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: fwohci_pci.c,v 1.36 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -63,8 +63,8 @@ struct fwohci_pci_softc {
static int fwohci_pci_match(device_t, cfdata_t, void *);
static void fwohci_pci_attach(device_t, device_t, void *);
static bool fwohci_pci_suspend(device_t, pmf_qual_t);
static bool fwohci_pci_resume(device_t, pmf_qual_t);
static bool fwohci_pci_suspend(device_t, const pmf_qual_t *);
static bool fwohci_pci_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(fwohci_pci, sizeof(struct fwohci_pci_softc),
fwohci_pci_match, fwohci_pci_attach, NULL, NULL);
@ -166,7 +166,7 @@ fail:
}
static bool
fwohci_pci_suspend(device_t dv, pmf_qual_t qual)
fwohci_pci_suspend(device_t dv, const pmf_qual_t *qual)
{
struct fwohci_pci_softc *psc = device_private(dv);
int s;
@ -179,7 +179,7 @@ fwohci_pci_suspend(device_t dv, pmf_qual_t qual)
}
static bool
fwohci_pci_resume(device_t dv, pmf_qual_t qual)
fwohci_pci_resume(device_t dv, const pmf_qual_t *qual)
{
struct fwohci_pci_softc *psc = device_private(dv);
int s;

View File

@ -1,4 +1,4 @@
/* $NetBSD: gcscaudio.c,v 1.4 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: gcscaudio.c,v 1.5 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2008 SHIMIZU Ryo <ryo@nerv.org>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gcscaudio.c,v 1.4 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: gcscaudio.c,v 1.5 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -151,7 +151,7 @@ static int gcscaudio_trigger_output(void *, void *, void *, int,
static int gcscaudio_trigger_input(void *, void *, void *, int,
void (*)(void *), void *,
const audio_params_t *);
static bool gcscaudio_resume(device_t, pmf_qual_t);
static bool gcscaudio_resume(device_t, const pmf_qual_t *);
static int gcscaudio_intr(void *);
/* for codec_if */
@ -1279,7 +1279,7 @@ gcscaudio_intr(void *arg)
}
static bool
gcscaudio_resume(device_t dv, pmf_qual_t qual)
gcscaudio_resume(device_t dv, const pmf_qual_t *qual)
{
struct gcscaudio_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdaudio_afg.c,v 1.19 2010/01/20 09:05:12 tonnerre Exp $ */
/* $NetBSD: hdaudio_afg.c,v 1.20 2010/02/24 22:38:08 dyoung Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk>
@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.19 2010/01/20 09:05:12 tonnerre Exp $");
__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.20 2010/02/24 22:38:08 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -309,8 +309,8 @@ static int hdaudio_afg_match(device_t, cfdata_t, void *);
static void hdaudio_afg_attach(device_t, device_t, void *);
static int hdaudio_afg_detach(device_t, int);
static void hdaudio_afg_childdet(device_t, device_t);
static bool hdaudio_afg_suspend(device_t, pmf_qual_t);
static bool hdaudio_afg_resume(device_t, pmf_qual_t);
static bool hdaudio_afg_suspend(device_t, const pmf_qual_t *);
static bool hdaudio_afg_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL2_NEW(
hdafg,
@ -3247,7 +3247,7 @@ hdaudio_afg_childdet(device_t self, device_t child)
}
static bool
hdaudio_afg_suspend(device_t self, pmf_qual_t qual)
hdaudio_afg_suspend(device_t self, const pmf_qual_t *qual)
{
struct hdaudio_afg_softc *sc = device_private(self);
@ -3257,7 +3257,7 @@ hdaudio_afg_suspend(device_t self, pmf_qual_t qual)
}
static bool
hdaudio_afg_resume(device_t self, pmf_qual_t qual)
hdaudio_afg_resume(device_t self, const pmf_qual_t *qual)
{
struct hdaudio_afg_softc *sc = device_private(self);
int nid;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdaudio_pci.c,v 1.4 2010/01/08 19:56:52 dyoung Exp $ */
/* $NetBSD: hdaudio_pci.c,v 1.5 2010/02/24 22:38:08 dyoung Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk>
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.4 2010/01/08 19:56:52 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.5 2010/02/24 22:38:08 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -65,7 +65,7 @@ static void hdaudio_pci_childdet(device_t, device_t);
static int hdaudio_pci_intr(void *);
/* power management */
static bool hdaudio_pci_resume(device_t, pmf_qual_t);
static bool hdaudio_pci_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL2_NEW(
hdaudio_pci,
@ -205,7 +205,7 @@ hdaudio_pci_intr(void *opaque)
}
static bool
hdaudio_pci_resume(device_t self, pmf_qual_t qual)
hdaudio_pci_resume(device_t self, const pmf_qual_t *qual)
{
struct hdaudio_pci_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_age.c,v 1.36 2010/01/19 22:07:00 pooka Exp $ */
/* $NetBSD: if_age.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $ */
/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
/*-
@ -31,7 +31,7 @@
/* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.36 2010/01/19 22:07:00 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $");
#include "vlan.h"
@ -80,7 +80,7 @@ static int age_match(device_t, cfdata_t, void *);
static void age_attach(device_t, device_t, void *);
static int age_detach(device_t, int);
static bool age_resume(device_t, pmf_qual_t);
static bool age_resume(device_t, const pmf_qual_t *);
static int age_miibus_readreg(device_t, int, int);
static void age_miibus_writereg(device_t, int, int, int);
@ -1154,7 +1154,7 @@ age_mac_config(struct age_softc *sc)
}
static bool
age_resume(device_t dv, pmf_qual_t qual)
age_resume(device_t dv, const pmf_qual_t *qual)
{
struct age_softc *sc = device_private(dv);
uint16_t cmd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ath_pci.c,v 1.36 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: if_ath_pci.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath_pci.c,v 1.11 2005/01/18 18:08:16 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.36 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $");
#endif
/*
@ -118,7 +118,7 @@ ath_pci_match(device_t parent, cfdata_t match, void *aux)
}
static bool
ath_pci_suspend(device_t self, pmf_qual_t qual)
ath_pci_suspend(device_t self, const pmf_qual_t *qual)
{
struct ath_pci_softc *sc = device_private(self);
@ -130,7 +130,7 @@ ath_pci_suspend(device_t self, pmf_qual_t qual)
}
static bool
ath_pci_resume(device_t self, pmf_qual_t qual)
ath_pci_resume(device_t self, const pmf_qual_t *qual)
{
struct ath_pci_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_atw_pci.c,v 1.23 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: if_atw_pci.c,v 1.24 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_atw_pci.c,v 1.23 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_atw_pci.c,v 1.24 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -90,8 +90,8 @@ struct atw_pci_softc {
static int atw_pci_match(device_t, cfdata_t, void *);
static void atw_pci_attach(device_t, device_t, void *);
static bool atw_pci_suspend(device_t, pmf_qual_t);
static bool atw_pci_resume(device_t, pmf_qual_t);
static bool atw_pci_suspend(device_t, const pmf_qual_t *);
static bool atw_pci_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(atw_pci, sizeof(struct atw_pci_softc),
atw_pci_match, atw_pci_attach, NULL, NULL);
@ -134,7 +134,7 @@ atw_pci_match(device_t parent, cfdata_t match, void *aux)
}
static bool
atw_pci_resume(device_t self, pmf_qual_t qual)
atw_pci_resume(device_t self, const pmf_qual_t *qual)
{
struct atw_pci_softc *psc = device_private(self);
struct atw_softc *sc = &psc->psc_atw;
@ -151,7 +151,7 @@ atw_pci_resume(device_t self, pmf_qual_t qual)
}
static bool
atw_pci_suspend(device_t self, pmf_qual_t qual)
atw_pci_suspend(device_t self, const pmf_qual_t *qual)
{
struct atw_pci_softc *psc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bce.c,v 1.30 2010/01/19 22:07:00 pooka Exp $ */
/* $NetBSD: if_bce.c,v 1.31 2010/02/24 22:38:00 dyoung Exp $ */
/*
* Copyright (c) 2003 Clifford Wright. All rights reserved.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.30 2010/01/19 22:07:00 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.31 2010/02/24 22:38:00 dyoung Exp $");
#include "vlan.h"
#include "rnd.h"
@ -179,7 +179,7 @@ static int bce_add_rxbuf(struct bce_softc *, int);
static void bce_rxdrain(struct bce_softc *);
static void bce_stop(struct ifnet *, int);
static void bce_reset(struct bce_softc *);
static bool bce_resume(device_t, pmf_qual_t);
static bool bce_resume(device_t, const pmf_qual_t *);
static void bce_set_filter(struct ifnet *);
static int bce_mii_read(device_t, int, int);
static void bce_mii_write(device_t, int, int, int);
@ -1367,7 +1367,7 @@ bce_set_filter(struct ifnet *ifp)
}
static bool
bce_resume(device_t self, pmf_qual_t qual)
bce_resume(device_t self, const pmf_qual_t *qual)
{
struct bce_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cas.c,v 1.5 2010/01/22 14:34:34 jdc Exp $ */
/* $NetBSD: if_cas.c,v 1.6 2010/02/24 22:38:00 dyoung Exp $ */
/* $OpenBSD: if_cas.c,v 1.29 2009/11/29 16:19:38 kettenis Exp $ */
/*
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.5 2010/01/22 14:34:34 jdc Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.6 2010/02/24 22:38:00 dyoung Exp $");
#include "opt_inet.h"
@ -99,8 +99,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.5 2010/01/22 14:34:34 jdc Exp $");
static bool cas_estintr(struct cas_softc *sc, int);
bool cas_shutdown(device_t, int);
static bool cas_suspend(device_t, pmf_qual_t);
static bool cas_resume(device_t, pmf_qual_t);
static bool cas_suspend(device_t, const pmf_qual_t *);
static bool cas_resume(device_t, const pmf_qual_t *);
static int cas_detach(device_t, int);
static void cas_partial_detach(struct cas_softc *, enum cas_attach_stage);
@ -1789,7 +1789,7 @@ cas_ioctl(struct ifnet *ifp, u_long cmd, void *data)
}
static bool
cas_suspend(device_t self, pmf_qual_t qual)
cas_suspend(device_t self, const pmf_qual_t *qual)
{
struct cas_softc *sc = device_private(self);
bus_space_tag_t t = sc->sc_memt;
@ -1805,7 +1805,7 @@ cas_suspend(device_t self, pmf_qual_t qual)
}
static bool
cas_resume(device_t self, pmf_qual_t qual)
cas_resume(device_t self, const pmf_qual_t *qual)
{
struct cas_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fxp_pci.c,v 1.72 2010/01/08 19:56:51 dyoung Exp $ */
/* $NetBSD: if_fxp_pci.c,v 1.73 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.72 2010/01/08 19:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.73 2010/02/24 22:38:00 dyoung Exp $");
#include "rnd.h"
@ -92,7 +92,7 @@ static int fxp_pci_enable(struct fxp_softc *);
static void fxp_pci_disable(struct fxp_softc *);
static void fxp_pci_confreg_restore(struct fxp_pci_softc *psc);
static bool fxp_pci_resume(device_t dv, pmf_qual_t);
static bool fxp_pci_resume(device_t dv, const pmf_qual_t *);
CFATTACH_DECL_NEW(fxp_pci, sizeof(struct fxp_pci_softc),
fxp_pci_match, fxp_pci_attach, NULL, NULL);
@ -235,7 +235,7 @@ fxp_pci_confreg_restore(struct fxp_pci_softc *psc)
}
static bool
fxp_pci_resume(device_t dv, pmf_qual_t qual)
fxp_pci_resume(device_t dv, const pmf_qual_t *qual)
{
struct fxp_pci_softc *psc = device_private(dv);
fxp_pci_confreg_restore(psc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gem_pci.c,v 1.41 2010/01/21 17:40:09 macallan Exp $ */
/* $NetBSD: if_gem_pci.c,v 1.42 2010/02/24 22:38:00 dyoung Exp $ */
/*
*
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_gem_pci.c,v 1.41 2010/01/21 17:40:09 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_gem_pci.c,v 1.42 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -78,8 +78,8 @@ struct gem_pci_softc {
};
static bool gem_pci_estintr(struct gem_pci_softc *);
static bool gem_pci_suspend(device_t, pmf_qual_t);
static bool gem_pci_resume(device_t, pmf_qual_t);
static bool gem_pci_suspend(device_t, const pmf_qual_t *);
static bool gem_pci_resume(device_t, const pmf_qual_t *);
static int gem_pci_detach(device_t, int);
int gem_pci_match(device_t, cfdata_t, void *);
@ -374,7 +374,7 @@ gem_pci_attach(device_t parent, device_t self, void *aux)
}
static bool
gem_pci_suspend(device_t self, pmf_qual_t qual)
gem_pci_suspend(device_t self, const pmf_qual_t *qual)
{
struct gem_pci_softc *gsc = device_private(self);
@ -407,7 +407,7 @@ gem_pci_estintr(struct gem_pci_softc *gsc)
}
static bool
gem_pci_resume(device_t self, pmf_qual_t qual)
gem_pci_resume(device_t self, const pmf_qual_t *qual)
{
struct gem_pci_softc *gsc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iwn.c,v 1.36 2010/01/19 22:07:00 pooka Exp $ */
/* $NetBSD: if_iwn.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $ */
/* $OpenBSD: if_iwn.c,v 1.49 2009/03/29 21:53:52 sthen Exp $ */
/*-
@ -23,7 +23,7 @@
* 802.11 network adapters.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.36 2010/01/19 22:07:00 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.37 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
@ -270,7 +270,7 @@ static void iwn_hw_stop(struct iwn_softc *);
static int iwn_init(struct ifnet *);
static void iwn_stop(struct ifnet *, int);
static void iwn_fix_channel(struct ieee80211com *, struct mbuf *);
static bool iwn_resume(device_t, pmf_qual_t);
static bool iwn_resume(device_t, const pmf_qual_t *);
#define IWN_DEBUG
#ifdef IWN_DEBUG
@ -5808,7 +5808,7 @@ iwn_stop(struct ifnet *ifp, int disable)
}
static bool
iwn_resume(device_t dv, pmf_qual_t qual)
iwn_resume(device_t dv, const pmf_qual_t *qual)
{
#if 0
struct iwn_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_msk.c,v 1.32 2010/01/19 22:07:01 pooka Exp $ */
/* $NetBSD: if_msk.c,v 1.33 2010/02/24 22:38:00 dyoung Exp $ */
/* $OpenBSD: if_msk.c,v 1.42 2007/01/17 02:43:02 krw Exp $ */
/*
@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.32 2010/01/19 22:07:01 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.33 2010/02/24 22:38:00 dyoung Exp $");
#include "rnd.h"
@ -98,8 +98,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.32 2010/01/19 22:07:01 pooka Exp $");
int mskc_probe(device_t, cfdata_t, void *);
void mskc_attach(device_t, device_t, void *);
static bool mskc_suspend(device_t, pmf_qual_t);
static bool mskc_resume(device_t, pmf_qual_t);
static bool mskc_suspend(device_t, const pmf_qual_t *);
static bool mskc_resume(device_t, const pmf_qual_t *);
int msk_probe(device_t, cfdata_t, void *);
void msk_attach(device_t, device_t, void *);
int mskcprint(void *, const char *);
@ -960,7 +960,7 @@ msk_probe(device_t parent, cfdata_t match, void *aux)
}
static bool
msk_resume(device_t dv, pmf_qual_t qual)
msk_resume(device_t dv, const pmf_qual_t *qual)
{
struct sk_if_softc *sc_if = device_private(dv);
@ -1649,7 +1649,7 @@ msk_watchdog(struct ifnet *ifp)
}
static bool
mskc_suspend(device_t dv, pmf_qual_t qual)
mskc_suspend(device_t dv, const pmf_qual_t *qual)
{
struct sk_softc *sc = device_private(dv);
@ -1662,7 +1662,7 @@ mskc_suspend(device_t dv, pmf_qual_t qual)
}
static bool
mskc_resume(device_t dv, pmf_qual_t qual)
mskc_resume(device_t dv, const pmf_qual_t *qual)
{
struct sk_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_nfe.c,v 1.49 2010/01/19 22:07:01 pooka Exp $ */
/* $NetBSD: if_nfe.c,v 1.50 2010/02/24 22:38:00 dyoung Exp $ */
/* $OpenBSD: if_nfe.c,v 1.77 2008/02/05 16:52:50 brad Exp $ */
/*-
@ -21,7 +21,7 @@
/* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.49 2010/01/19 22:07:01 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.50 2010/02/24 22:38:00 dyoung Exp $");
#include "opt_inet.h"
#include "vlan.h"
@ -109,7 +109,7 @@ void nfe_get_macaddr(struct nfe_softc *, uint8_t *);
void nfe_set_macaddr(struct nfe_softc *, const uint8_t *);
void nfe_tick(void *);
void nfe_poweron(device_t);
bool nfe_resume(device_t, pmf_qual_t);
bool nfe_resume(device_t, const pmf_qual_t *);
CFATTACH_DECL_NEW(nfe, sizeof(struct nfe_softc), nfe_match, nfe_attach,
NULL, NULL);
@ -1940,7 +1940,7 @@ nfe_poweron(device_t self)
}
bool
nfe_resume(device_t dv, pmf_qual_t qual)
nfe_resume(device_t dv, const pmf_qual_t *qual)
{
nfe_poweron(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_rtw_pci.c,v 1.16 2010/01/08 19:56:52 dyoung Exp $ */
/* $NetBSD: if_rtw_pci.c,v 1.17 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_rtw_pci.c,v 1.16 2010/01/08 19:56:52 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_rtw_pci.c,v 1.17 2010/02/24 22:38:00 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -136,7 +136,7 @@ rtw_pci_match(device_t parent, cfdata_t match, void *aux)
}
static bool
rtw_pci_resume(device_t self, pmf_qual_t qual)
rtw_pci_resume(device_t self, const pmf_qual_t *qual)
{
struct rtw_pci_softc *psc = device_private(self);
struct rtw_softc *sc = &psc->psc_rtw;
@ -153,7 +153,7 @@ rtw_pci_resume(device_t self, pmf_qual_t qual)
}
static bool
rtw_pci_suspend(device_t self, pmf_qual_t qual)
rtw_pci_suspend(device_t self, const pmf_qual_t *qual)
{
struct rtw_pci_softc *psc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sip.c,v 1.145 2010/01/19 22:07:01 pooka Exp $ */
/* $NetBSD: if_sip.c,v 1.146 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.145 2010/01/19 22:07:01 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.146 2010/02/24 22:38:00 dyoung Exp $");
#include "rnd.h"
@ -205,7 +205,7 @@ enum sip_attach_stage {
struct sip_softc {
device_t sc_dev; /* generic device information */
struct device_suspensor sc_suspensor;
struct pmf_qual sc_qual;
pmf_qual_t sc_qual;
bus_space_tag_t sc_st; /* bus space tag */
bus_space_handle_t sc_sh; /* bus space handle */
@ -607,8 +607,8 @@ static int sipcom_match(device_t, cfdata_t, void *);
static void sipcom_attach(device_t, device_t, void *);
static void sipcom_do_detach(device_t, enum sip_attach_stage);
static int sipcom_detach(device_t, int);
static bool sipcom_resume(device_t, pmf_qual_t);
static bool sipcom_suspend(device_t, pmf_qual_t);
static bool sipcom_resume(device_t, const pmf_qual_t *);
static bool sipcom_suspend(device_t, const pmf_qual_t *);
int gsip_copy_small = 0;
int sip_copy_small = 0;
@ -962,7 +962,7 @@ sipcom_do_detach(device_t self, enum sip_attach_stage stage)
}
static bool
sipcom_resume(device_t self, pmf_qual_t qual)
sipcom_resume(device_t self, const pmf_qual_t *qual)
{
struct sip_softc *sc = device_private(self);
@ -970,7 +970,7 @@ sipcom_resume(device_t self, pmf_qual_t qual)
}
static bool
sipcom_suspend(device_t self, pmf_qual_t qual)
sipcom_suspend(device_t self, const pmf_qual_t *qual)
{
struct sip_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sk.c,v 1.64 2010/01/19 22:07:01 pooka Exp $ */
/* $NetBSD: if_sk.c,v 1.65 2010/02/24 22:38:00 dyoung Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -115,7 +115,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.64 2010/01/19 22:07:01 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.65 2010/02/24 22:38:00 dyoung Exp $");
#include "rnd.h"
@ -207,9 +207,9 @@ void sk_setfilt(struct sk_if_softc *, void *, int);
void sk_setmulti(struct sk_if_softc *);
void sk_tick(void *);
static bool skc_suspend(device_t dv, pmf_qual_t qual);
static bool skc_resume(device_t dv, pmf_qual_t qual);
static bool sk_resume(device_t dv, pmf_qual_t qual);
static bool skc_suspend(device_t, const pmf_qual_t *);
static bool skc_resume(device_t, const pmf_qual_t *);
static bool sk_resume(device_t dv, const pmf_qual_t *);
/* #define SK_DEBUG 2 */
#ifdef SK_DEBUG
@ -2948,7 +2948,7 @@ sk_stop(struct ifnet *ifp, int disable)
/* Power Management Framework */
static bool
skc_suspend(device_t dv, pmf_qual_t qual)
skc_suspend(device_t dv, const pmf_qual_t *qual)
{
struct sk_softc *sc = device_private(dv);
@ -2961,7 +2961,7 @@ skc_suspend(device_t dv, pmf_qual_t qual)
}
static bool
skc_resume(device_t dv, pmf_qual_t qual)
skc_resume(device_t dv, const pmf_qual_t *qual)
{
struct sk_softc *sc = device_private(dv);
@ -2974,7 +2974,7 @@ skc_resume(device_t dv, pmf_qual_t qual)
}
static bool
sk_resume(device_t dv, pmf_qual_t qual)
sk_resume(device_t dv, const pmf_qual_t *qual)
{
struct sk_if_softc *sc_if = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_vr.c,v 1.102 2010/01/19 22:07:02 pooka Exp $ */
/* $NetBSD: if_vr.c,v 1.103 2010/02/24 22:38:01 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.102 2010/01/19 22:07:02 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.103 2010/02/24 22:38:01 dyoung Exp $");
#include "rnd.h"
@ -315,7 +315,7 @@ static void vr_setmulti(struct vr_softc *);
static void vr_reset(struct vr_softc *);
static int vr_restore_state(pci_chipset_tag_t, pcitag_t, device_t,
pcireg_t);
static bool vr_resume(device_t, pmf_qual_t);
static bool vr_resume(device_t, const pmf_qual_t *);
int vr_copy_small = 0;
@ -1751,7 +1751,7 @@ vr_restore_state(pci_chipset_tag_t pc, pcitag_t tag, device_t self,
}
static bool
vr_resume(device_t self, pmf_qual_t qual)
vr_resume(device_t self, const pmf_qual_t *qual)
{
struct vr_softc *sc = device_private(self);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_wpi.c,v 1.45 2010/01/19 22:07:02 pooka Exp $ */
/* $NetBSD: if_wpi.c,v 1.46 2010/02/24 22:38:01 dyoung Exp $ */
/*-
* Copyright (c) 2006, 2007
@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.45 2010/01/19 22:07:02 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.46 2010/02/24 22:38:01 dyoung Exp $");
/*
* Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters.
@ -168,7 +168,7 @@ static int wpi_reset(struct wpi_softc *);
static void wpi_hw_config(struct wpi_softc *);
static int wpi_init(struct ifnet *);
static void wpi_stop(struct ifnet *, int);
static bool wpi_resume(device_t, pmf_qual_t);
static bool wpi_resume(device_t, const pmf_qual_t *);
static int wpi_getrfkill(struct wpi_softc *);
static void wpi_sysctlattach(struct wpi_softc *);
@ -3186,7 +3186,7 @@ wpi_stop(struct ifnet *ifp, int disable)
}
static bool
wpi_resume(device_t dv, pmf_qual_t qual)
wpi_resume(device_t dv, const pmf_qual_t *qual)
{
struct wpi_softc *sc = device_private(dv);

Some files were not shown because too many files have changed in this diff Show More