diff options
| author | dyoung <dyoung@NetBSD.org> | 2010-02-24 22:37:54 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2010-02-24 22:37:54 +0000 |
| commit | c1b390d4935e482014f0f4c3b7e82c5d2a0f5e8a (patch) | |
| tree | d6ea3e9e6a020ee51c4cd8fc3f423bce09ec1baa /sys/dev | |
| parent | 89300bd9df17b74e8b6eaccab1411408c4acfe01 (diff) | |
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.
Diffstat (limited to 'sys/dev')
115 files changed, 529 insertions, 528 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 27b9c7e3538..35668266b0e 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -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; diff --git a/sys/dev/acpi/acpi_acad.c b/sys/dev/acpi/acpi_acad.c index 064169aeab3..2c51d9bf2fa 100644 --- a/sys/dev/acpi/acpi_acad.c +++ b/sys/dev/acpi/acpi_acad.c @@ -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); diff --git a/sys/dev/acpi/acpi_bat.c b/sys/dev/acpi/acpi_bat.c index f8e1c16774c..87b5700cecc 100644 --- a/sys/dev/acpi/acpi_bat.c +++ b/sys/dev/acpi/acpi_bat.c @@ -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); diff --git a/sys/dev/acpi/acpi_ec.c b/sys/dev/acpi/acpi_ec.c index c50c758a225..acac541003f 100644 --- a/sys/dev/acpi/acpi_ec.c +++ b/sys/dev/acpi/acpi_ec.c @@ -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; diff --git a/sys/dev/acpi/acpi_lid.c b/sys/dev/acpi/acpi_lid.c index 3ef10a99b15..8646d17a1c0 100644 --- a/sys/dev/acpi/acpi_lid.c +++ b/sys/dev/acpi/acpi_lid.c @@ -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; diff --git a/sys/dev/acpi/asus_acpi.c b/sys/dev/acpi/asus_acpi.c index 0e9a0626979..cbe63d38b58 100644 --- a/sys/dev/acpi/asus_acpi.c +++ b/sys/dev/acpi/asus_acpi.c @@ -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; diff --git a/sys/dev/acpi/dalb_acpi.c b/sys/dev/acpi/dalb_acpi.c index a5b84ed5f25..f2bd208af21 100644 --- a/sys/dev/acpi/dalb_acpi.c +++ b/sys/dev/acpi/dalb_acpi.c @@ -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; diff --git a/sys/dev/acpi/hpqlb_acpi.c b/sys/dev/acpi/hpqlb_acpi.c index dd85b1b44e4..c8b91018e8c 100644 --- a/sys/dev/acpi/hpqlb_acpi.c +++ b/sys/dev/acpi/hpqlb_acpi.c @@ -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); diff --git a/sys/dev/acpi/sony_acpi.c b/sys/dev/acpi/sony_acpi.c index 8b5f0771007..4b5c5202b10 100644 --- a/sys/dev/acpi/sony_acpi.c +++ b/sys/dev/acpi/sony_acpi.c @@ -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); diff --git a/sys/dev/acpi/thinkpad_acpi.c b/sys/dev/acpi/thinkpad_acpi.c index 30b9e3d8925..6bb0008f3ed 100644 --- a/sys/dev/acpi/thinkpad_acpi.c +++ b/sys/dev/acpi/thinkpad_acpi.c @@ -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; diff --git a/sys/dev/acpi/wmi_acpi.c b/sys/dev/acpi/wmi_acpi.c index b29108f17ae..bad751edf3e 100644 --- a/sys/dev/acpi/wmi_acpi.c +++ b/sys/dev/acpi/wmi_acpi.c @@ -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); diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index 70c1424bbc4..531c4af1f22 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -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; diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 59c0fe3c316..2dbc3a87330 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -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); diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 58c337d0d42..4422ae144cf 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -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; diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index 05e7fbf269d..9ce10332180 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -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); diff --git a/sys/dev/cardbus/if_atw_cardbus.c b/sys/dev/cardbus/if_atw_cardbus.c index 9f6ffb633ce..b2d7fa2c1c7 100644 --- a/sys/dev/cardbus/if_atw_cardbus.c +++ b/sys/dev/cardbus/if_atw_cardbus.c @@ -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; diff --git a/sys/dev/cardbus/if_rtw_cardbus.c b/sys/dev/cardbus/if_rtw_cardbus.c index cc07916ea26..ee4c43abfb0 100644 --- a/sys/dev/cardbus/if_rtw_cardbus.c +++ b/sys/dev/cardbus/if_rtw_cardbus.c @@ -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; diff --git a/sys/dev/gpio/gpio.c b/sys/dev/gpio/gpio.c index e9210216bad..1c62dd6f27f 100644 --- a/sys/dev/gpio/gpio.c +++ b/sys/dev/gpio/gpio.c @@ -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; diff --git a/sys/dev/hpc/hpcfb.c b/sys/dev/hpc/hpcfb.c index 98a58abba38..fa3d4595141 100644 --- a/sys/dev/hpc/hpcfb.c +++ b/sys/dev/hpc/hpcfb.c @@ -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); diff --git a/sys/dev/i2c/dbcool.c b/sys/dev/i2c/dbcool.c index 10c9165c653..05557de82ba 100644 --- a/sys/dev/i2c/dbcool.c +++ b/sys/dev/i2c/dbcool.c @@ -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; diff --git a/sys/dev/i2c/dbcool_var.h b/sys/dev/i2c/dbcool_var.h index d065323c735..5a486812c82 100644 --- a/sys/dev/i2c/dbcool_var.h +++ b/sys/dev/i2c/dbcool_var.h @@ -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 */ diff --git a/sys/dev/i2c/sdtemp.c b/sys/dev/i2c/sdtemp.c index f2de369f992..c36116bc5f6 100644 --- a/sys/dev/i2c/sdtemp.c +++ b/sys/dev/i2c/sdtemp.c @@ -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; diff --git a/sys/dev/ic/aic79xx_osm.c b/sys/dev/ic/aic79xx_osm.c index db20ccd9c28..72dd90e3123 100644 --- a/sys/dev/ic/aic79xx_osm.c +++ b/sys/dev/ic/aic79xx_osm.c @@ -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); diff --git a/sys/dev/ic/aic7xxx_osm.c b/sys/dev/ic/aic7xxx_osm.c index 7bb0ff1a8ac..069ed7438a4 100644 --- a/sys/dev/ic/aic7xxx_osm.c +++ b/sys/dev/ic/aic7xxx_osm.c @@ -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); diff --git a/sys/dev/ic/athvar.h b/sys/dev/ic/athvar.h index 63d8649c3ff..9d01a55a388 100644 --- a/sys/dev/ic/athvar.h +++ b/sys/dev/ic/athvar.h @@ -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 */ diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c index 69ac620d88c..34afc2449c8 100644 --- a/sys/dev/ic/atw.c +++ b/sys/dev/ic/atw.c @@ -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); diff --git a/sys/dev/ic/atwvar.h b/sys/dev/ic/atwvar.h index 48fe78ec529..2b3ddf88564 100644 --- a/sys/dev/ic/atwvar.h +++ b/sys/dev/ic/atwvar.h @@ -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_ */ diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index 7a67b1dd72e..367794643a8 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -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); diff --git a/sys/dev/ic/bwivar.h b/sys/dev/ic/bwivar.h index 1e408d46ae9..9775c5354f4 100644 --- a/sys/dev/ic/bwivar.h +++ b/sys/dev/ic/bwivar.h @@ -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 */ diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 95ad6c24f11..6b6444596d6 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -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); diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index d6603deeefc..844458ae81a 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -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 diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 21a23b202c7..cc4658cb086 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -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; diff --git a/sys/dev/ic/gemvar.h b/sys/dev/ic/gemvar.h index e18b1fb112e..bfef0f25da0 100644 --- a/sys/dev/ic/gemvar.h +++ b/sys/dev/ic/gemvar.h @@ -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); diff --git a/sys/dev/ic/hpet.c b/sys/dev/ic/hpet.c index 13652648ecc..961ca2543a0 100644 --- a/sys/dev/ic/hpet.c +++ b/sys/dev/ic/hpet.c @@ -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; diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c index 641c7eb5f8a..744d7cbc81a 100644 --- a/sys/dev/ic/ne2000.c +++ b/sys/dev/ic/ne2000.c @@ -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; diff --git a/sys/dev/ic/ne2000var.h b/sys/dev/ic/ne2000var.h index 51bf1b77dc7..6d400d50f60 100644 --- a/sys/dev/ic/ne2000var.h +++ b/sys/dev/ic/ne2000var.h @@ -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_ */ diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c index 0d1f50c1965..02c63b65df5 100644 --- a/sys/dev/ic/pckbc.c +++ b/sys/dev/ic/pckbc.c @@ -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; diff --git a/sys/dev/ic/pckbcvar.h b/sys/dev/ic/pckbcvar.h index 39414f4eddf..55975e2b4d4 100644 --- a/sys/dev/ic/pckbcvar.h +++ b/sys/dev/ic/pckbcvar.h @@ -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_ */ diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index d6eaf8df7cf..52ec0c631e1 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -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); diff --git a/sys/dev/ic/rtwvar.h b/sys/dev/ic/rtwvar.h index 0cc8c212406..c962a17d4c3 100644 --- a/sys/dev/ic/rtwvar.h +++ b/sys/dev/ic/rtwvar.h @@ -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); diff --git a/sys/dev/ic/spic.c b/sys/dev/ic/spic.c index 9296758401f..d00841363d4 100644 --- a/sys/dev/ic/spic.c +++ b/sys/dev/ic/spic.c @@ -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); diff --git a/sys/dev/ic/spicvar.h b/sys/dev/ic/spicvar.h index ab0a8dbeb0f..4f390a2cb30 100644 --- a/sys/dev/ic/spicvar.h +++ b/sys/dev/ic/spicvar.h @@ -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 *); diff --git a/sys/dev/isa/aps.c b/sys/dev/isa/aps.c index 8c1b1d16d63..9bc5c7ea67c 100644 --- a/sys/dev/isa/aps.c +++ b/sys/dev/isa/aps.c @@ -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); diff --git a/sys/dev/isa/com_isa.c b/sys/dev/isa/com_isa.c index 26aaff2d42d..1572306cb57 100644 --- a/sys/dev/isa/com_isa.c +++ b/sys/dev/isa/com_isa.c @@ -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; diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index b1be6feb686..dca48de6ccb 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -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; diff --git a/sys/dev/isa/sbdsp.c b/sys/dev/isa/sbdsp.c index 2c909731e3b..103b7a5b756 100644 --- a/sys/dev/isa/sbdsp.c +++ b/sys/dev/isa/sbdsp.c @@ -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); diff --git a/sys/dev/isa/ym.c b/sys/dev/isa/ym.c index 1d6374dbeae..04735e57863 100644 --- a/sys/dev/isa/ym.c +++ b/sys/dev/isa/ym.c @@ -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; diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 36b4ff8ea60..d83ee49fa67 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -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); diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 9e907b57027..5f42b160169 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -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 *); diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c index 3c512a74eb9..94ec4e3eb49 100644 --- a/sys/dev/mii/ukphy.c +++ b/sys/dev/mii/ukphy.c @@ -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); diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c index c05d6a2d6dd..98940294d71 100644 --- a/sys/dev/pci/agp.c +++ b/sys/dev/pci/agp.c @@ -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(); diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 87f81993adc..6be8ce63d63 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -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; diff --git a/sys/dev/pci/agp_intel.c b/sys/dev/pci/agp_intel.c index 29a44aa76af..66816786b0b 100644 --- a/sys/dev/pci/agp_intel.c +++ b/sys/dev/pci/agp_intel.c @@ -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); diff --git a/sys/dev/pci/ahcisata_pci.c b/sys/dev/pci/ahcisata_pci.c index 367e46019d2..5d6bc756976 100644 --- a/sys/dev/pci/ahcisata_pci.c +++ b/sys/dev/pci/ahcisata_pci.c @@ -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; diff --git a/sys/dev/pci/auacer.c b/sys/dev/pci/auacer.c index 45802395c8c..0535ae638c6 100644 --- a/sys/dev/pci/auacer.c +++ b/sys/dev/pci/auacer.c @@ -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); diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index b79433f0fa9..e7e8da8b824 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -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; diff --git a/sys/dev/pci/auixp.c b/sys/dev/pci/auixp.c index 9dd7b0fb2a2..132cf8fe2c7 100644 --- a/sys/dev/pci/auixp.c +++ b/sys/dev/pci/auixp.c @@ -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); diff --git a/sys/dev/pci/autri.c b/sys/dev/pci/autri.c index e9e70d51143..5a3043c9beb 100644 --- a/sys/dev/pci/autri.c +++ b/sys/dev/pci/autri.c @@ -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); diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c index f7363170a68..84d8e9bfd79 100644 --- a/sys/dev/pci/auvia.c +++ b/sys/dev/pci/auvia.c @@ -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); diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index c8bec94a7cb..15fa3cc243d 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -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; diff --git a/sys/dev/pci/cs4280.c b/sys/dev/pci/cs4280.c index 09317cfae38..ffdfc22d90f 100644 --- a/sys/dev/pci/cs4280.c +++ b/sys/dev/pci/cs4280.c @@ -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); diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c index 464ac2872d8..c35d879955e 100644 --- a/sys/dev/pci/cs4281.c +++ b/sys/dev/pci/cs4281.c @@ -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); diff --git a/sys/dev/pci/ehci_pci.c b/sys/dev/pci/ehci_pci.c index d28be2f8832..347a4c566b2 100644 --- a/sys/dev/pci/ehci_pci.c +++ b/sys/dev/pci/ehci_pci.c @@ -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); diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c index 2b4fc5a15b7..0bb5533b505 100644 --- a/sys/dev/pci/esa.c +++ b/sys/dev/pci/esa.c @@ -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; diff --git a/sys/dev/pci/esm.c b/sys/dev/pci/esm.c index e021df549aa..f1729b2cf99 100644 --- a/sys/dev/pci/esm.c +++ b/sys/dev/pci/esm.c @@ -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; diff --git a/sys/dev/pci/fwohci_pci.c b/sys/dev/pci/fwohci_pci.c index fee39b6f1c1..2964fd57dc5 100644 --- a/sys/dev/pci/fwohci_pci.c +++ b/sys/dev/pci/fwohci_pci.c @@ -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; diff --git a/sys/dev/pci/gcscaudio.c b/sys/dev/pci/gcscaudio.c index 6469d6baaab..5996f5b3021 100644 --- a/sys/dev/pci/gcscaudio.c +++ b/sys/dev/pci/gcscaudio.c @@ -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); diff --git a/sys/dev/pci/hdaudio/hdaudio_afg.c b/sys/dev/pci/hdaudio/hdaudio_afg.c index 9e985f97a4a..e27e0857df3 100644 --- a/sys/dev/pci/hdaudio/hdaudio_afg.c +++ b/sys/dev/pci/hdaudio/hdaudio_afg.c @@ -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; diff --git a/sys/dev/pci/hdaudio/hdaudio_pci.c b/sys/dev/pci/hdaudio/hdaudio_pci.c index 853777b2688..93f05fbe638 100644 --- a/sys/dev/pci/hdaudio/hdaudio_pci.c +++ b/sys/dev/pci/hdaudio/hdaudio_pci.c @@ -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); diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c index 5622bd35da0..08d809787b0 100644 --- a/sys/dev/pci/if_age.c +++ b/sys/dev/pci/if_age.c @@ -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; diff --git a/sys/dev/pci/if_ath_pci.c b/sys/dev/pci/if_ath_pci.c index 1fee9469316..9154cad40af 100644 --- a/sys/dev/pci/if_ath_pci.c +++ b/sys/dev/pci/if_ath_pci.c @@ -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); diff --git a/sys/dev/pci/if_atw_pci.c b/sys/dev/pci/if_atw_pci.c index f1e0224f903..fcc5a73aa2e 100644 --- a/sys/dev/pci/if_atw_pci.c +++ b/sys/dev/pci/if_atw_pci.c @@ -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); diff --git a/sys/dev/pci/if_bce.c b/sys/dev/pci/if_bce.c index 1cf708d50d2..d801c0b869a 100644 --- a/sys/dev/pci/if_bce.c +++ b/sys/dev/pci/if_bce.c @@ -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); diff --git a/sys/dev/pci/if_cas.c b/sys/dev/pci/if_cas.c index 6f601acfa47..ca1c7752b2c 100644 --- a/sys/dev/pci/if_cas.c +++ b/sys/dev/pci/if_cas.c @@ -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); diff --git a/sys/dev/pci/if_fxp_pci.c b/sys/dev/pci/if_fxp_pci.c index 238348c9588..ee47813b944 100644 --- a/sys/dev/pci/if_fxp_pci.c +++ b/sys/dev/pci/if_fxp_pci.c @@ -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); diff --git a/sys/dev/pci/if_gem_pci.c b/sys/dev/pci/if_gem_pci.c index f64d8f424e2..f5f6954843a 100644 --- a/sys/dev/pci/if_gem_pci.c +++ b/sys/dev/pci/if_gem_pci.c @@ -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); diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c index 3eaacefcb95..a0f0c48fc0a 100644 --- a/sys/dev/pci/if_iwn.c +++ b/sys/dev/pci/if_iwn.c @@ -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); diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index 5c37e7d1234..ed282266df6 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -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); diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 90dcbfd9329..36142c00293 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -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); diff --git a/sys/dev/pci/if_rtw_pci.c b/sys/dev/pci/if_rtw_pci.c index 04c33efad79..80e3da28677 100644 --- a/sys/dev/pci/if_rtw_pci.c +++ b/sys/dev/pci/if_rtw_pci.c @@ -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); diff --git a/sys/dev/pci/if_sip.c b/sys/dev/pci/if_sip.c index d928621575e..c42079528c1 100644 --- a/sys/dev/pci/if_sip.c +++ b/sys/dev/pci/if_sip.c @@ -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); diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index e6dca793b49..dcd918b080f 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -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); diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 2df905c7df7..82ed5822ca8 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -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); diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index e34dd05f53e..36df31d7c26 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -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); diff --git a/sys/dev/pci/ixpide.c b/sys/dev/pci/ixpide.c index 68decc502b5..b2f4034b6fa 100644 --- a/sys/dev/pci/ixpide.c +++ b/sys/dev/pci/ixpide.c @@ -1,4 +1,4 @@ -/* $NetBSD: ixpide.c,v 1.15 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: ixpide.c,v 1.16 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 2004 The NetBSD Foundation. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ixpide.c,v 1.15 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ixpide.c,v 1.16 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -38,8 +38,8 @@ __KERNEL_RCSID(0, "$NetBSD: ixpide.c,v 1.15 2010/01/08 19:56:52 dyoung Exp $"); #include <dev/pci/pciidevar.h> #include <dev/pci/pciide_ixp_reg.h> -static bool ixpide_resume(device_t, pmf_qual_t); -static bool ixpide_suspend(device_t, pmf_qual_t); +static bool ixpide_resume(device_t, const pmf_qual_t *); +static bool ixpide_suspend(device_t, const pmf_qual_t *); static int ixpide_match(device_t, cfdata_t, void *); static void ixpide_attach(device_t, device_t, void *); @@ -146,7 +146,7 @@ static const uint8_t ixp_mdma_timings[] = { }; static bool -ixpide_resume(device_t dv, pmf_qual_t qual) +ixpide_resume(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); @@ -159,7 +159,7 @@ ixpide_resume(device_t dv, pmf_qual_t qual) } static bool -ixpide_suspend(device_t dv, pmf_qual_t qual) +ixpide_suspend(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); diff --git a/sys/dev/pci/mvsata_pci.c b/sys/dev/pci/mvsata_pci.c index fb22eb9f347..c85971fbe64 100644 --- a/sys/dev/pci/mvsata_pci.c +++ b/sys/dev/pci/mvsata_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: mvsata_pci.c,v 1.2 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: mvsata_pci.c,v 1.3 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 2008 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mvsata_pci.c,v 1.2 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mvsata_pci.c,v 1.3 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -98,7 +98,7 @@ static void mvsata_pci_attach(device_t, device_t, void *); static int mvsata_pci_detach(device_t, int); static int mvsata_pci_intr(void *); -static bool mvsata_pci_resume(device_t, pmf_qual_t qual); +static bool mvsata_pci_resume(device_t, const pmf_qual_t *qual); static int mvsata_pci_sreset(struct mvsata_softc *); static int mvsata_pci_misc_reset(struct mvsata_softc *); @@ -298,7 +298,7 @@ mvsata_pci_intr(void *arg) } static bool -mvsata_pci_resume(device_t dev, pmf_qual_t qual) +mvsata_pci_resume(device_t dev, const pmf_qual_t *qual) { /* not yet... */ diff --git a/sys/dev/pci/neo.c b/sys/dev/pci/neo.c index a7b7c9d3b05..10acbcfd5af 100644 --- a/sys/dev/pci/neo.c +++ b/sys/dev/pci/neo.c @@ -1,4 +1,4 @@ -/* $NetBSD: neo.c,v 1.44 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: neo.c,v 1.45 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: neo.c,v 1.44 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: neo.c,v 1.45 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -549,7 +549,7 @@ neo_match(device_t parent, cfdata_t match, void *aux) } static bool -neo_resume(device_t dv, pmf_qual_t qual) +neo_resume(device_t dv, const pmf_qual_t *qual) { struct neo_softc *sc = device_private(dv); diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c index 7cb79e903b4..7da625d4aa4 100644 --- a/sys/dev/pci/pccbb.c +++ b/sys/dev/pci/pccbb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pccbb.c,v 1.193 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: pccbb.c,v 1.194 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1998, 1999 and 2000 @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.193 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.194 2010/02/24 22:38:01 dyoung Exp $"); /* #define CBB_DEBUG @@ -199,8 +199,8 @@ void pccbb_winlist_show(struct pccbb_win_chain *); /* for config_defer */ static void pccbb_pci_callback(device_t); -static bool pccbb_suspend(device_t, pmf_qual_t); -static bool pccbb_resume(device_t, pmf_qual_t); +static bool pccbb_suspend(device_t, const pmf_qual_t *); +static bool pccbb_resume(device_t, const pmf_qual_t *); #if defined SHOW_REGS static void cb_show_regs(pci_chipset_tag_t pc, pcitag_t tag, @@ -3179,7 +3179,7 @@ pccbb_winset(bus_addr_t align, struct pccbb_softc *sc, bus_space_tag_t bst) #endif /* rbus */ static bool -pccbb_suspend(device_t dv, pmf_qual_t qual) +pccbb_suspend(device_t dv, const pmf_qual_t *qual) { struct pccbb_softc *sc = device_private(dv); bus_space_tag_t base_memt = sc->sc_base_memt; /* socket regs memory */ @@ -3214,7 +3214,7 @@ pccbb_suspend(device_t dv, pmf_qual_t qual) } static bool -pccbb_resume(device_t dv, pmf_qual_t qual) +pccbb_resume(device_t dv, const pmf_qual_t *qual) { struct pccbb_softc *sc = device_private(dv); bus_space_tag_t base_memt = sc->sc_base_memt; /* socket regs memory */ diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 080a644c1db..99ff90824d3 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci.c,v 1.126 2010/02/23 19:28:00 dyoung Exp $ */ +/* $NetBSD: pci.c,v 1.127 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.126 2010/02/23 19:28:00 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.127 2010/02/24 22:38:01 dyoung Exp $"); #include "opt_pci.h" @@ -823,7 +823,7 @@ struct pci_child_power { }; static bool -pci_child_suspend(device_t dv, pmf_qual_t qual) +pci_child_suspend(device_t dv, const pmf_qual_t *qual) { struct pci_child_power *priv = device_pmf_bus_private(dv); pcireg_t ocsr, csr; @@ -851,7 +851,7 @@ pci_child_suspend(device_t dv, pmf_qual_t qual) } static bool -pci_child_resume(device_t dv, pmf_qual_t qual) +pci_child_resume(device_t dv, const pmf_qual_t *qual) { struct pci_child_power *priv = device_pmf_bus_private(dv); diff --git a/sys/dev/pci/piixide.c b/sys/dev/pci/piixide.c index fe5a6357686..b31ffb152b7 100644 --- a/sys/dev/pci/piixide.c +++ b/sys/dev/pci/piixide.c @@ -1,4 +1,4 @@ -/* $NetBSD: piixide.c,v 1.53 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: piixide.c,v 1.54 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1999, 2000, 2001 Manuel Bouyer. @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: piixide.c,v 1.53 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: piixide.c,v 1.54 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -45,8 +45,8 @@ static u_int32_t piix_setup_sidetim_timings(u_int8_t, u_int8_t, u_int8_t); static void piixsata_chip_map(struct pciide_softc*, struct pci_attach_args *); static int piix_dma_init(void *, int, int, void *, size_t, int); -static bool piixide_resume(device_t, pmf_qual_t); -static bool piixide_suspend(device_t, pmf_qual_t); +static bool piixide_resume(device_t, const pmf_qual_t *); +static bool piixide_suspend(device_t, const pmf_qual_t *); static int piixide_match(device_t, cfdata_t, void *); static void piixide_attach(device_t, device_t, void *); @@ -367,7 +367,7 @@ piixide_attach(device_t parent, device_t self, void *aux) } static bool -piixide_resume(device_t dv, pmf_qual_t qual) +piixide_resume(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); @@ -380,7 +380,7 @@ piixide_resume(device_t dv, pmf_qual_t qual) } static bool -piixide_suspend(device_t dv, pmf_qual_t qual) +piixide_suspend(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); diff --git a/sys/dev/pci/piixpm.c b/sys/dev/pci/piixpm.c index 6d4746b48f2..fddba274fdd 100644 --- a/sys/dev/pci/piixpm.c +++ b/sys/dev/pci/piixpm.c @@ -1,4 +1,4 @@ -/* $NetBSD: piixpm.c,v 1.31 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: piixpm.c,v 1.32 2010/02/24 22:38:01 dyoung Exp $ */ /* $OpenBSD: piixpm.c,v 1.20 2006/02/27 08:25:02 grange Exp $ */ /* @@ -22,7 +22,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.31 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.32 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -82,8 +82,8 @@ struct piixpm_softc { static int piixpm_match(device_t, cfdata_t, void *); static void piixpm_attach(device_t, device_t, void *); -static bool piixpm_suspend(device_t, pmf_qual_t); -static bool piixpm_resume(device_t, pmf_qual_t); +static bool piixpm_suspend(device_t, const pmf_qual_t *); +static bool piixpm_resume(device_t, const pmf_qual_t *); static int piixpm_i2c_acquire_bus(void *, int); static void piixpm_i2c_release_bus(void *, int); @@ -241,7 +241,7 @@ nopowermanagement: } static bool -piixpm_suspend(device_t dv, pmf_qual_t qual) +piixpm_suspend(device_t dv, const pmf_qual_t *qual) { struct piixpm_softc *sc = device_private(dv); @@ -254,7 +254,7 @@ piixpm_suspend(device_t dv, pmf_qual_t qual) } static bool -piixpm_resume(device_t dv, pmf_qual_t qual) +piixpm_resume(device_t dv, const pmf_qual_t *qual) { struct piixpm_softc *sc = device_private(dv); diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c index 4139726b454..9ed294a2584 100644 --- a/sys/dev/pci/ppb.c +++ b/sys/dev/pci/ppb.c @@ -1,4 +1,4 @@ -/* $NetBSD: ppb.c,v 1.41 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: ppb.c,v 1.42 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1996, 1998 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.41 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.42 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -51,8 +51,8 @@ struct ppb_softc { pcireg_t sc_pciconfext[48]; }; -static bool ppb_resume(device_t, pmf_qual_t); -static bool ppb_suspend(device_t, pmf_qual_t); +static bool ppb_resume(device_t, const pmf_qual_t *); +static bool ppb_suspend(device_t, const pmf_qual_t *); static int ppbmatch(device_t parent, cfdata_t match, void *aux) @@ -169,7 +169,7 @@ ppbdetach(device_t self, int flags) } static bool -ppb_resume(device_t dv, pmf_qual_t qual) +ppb_resume(device_t dv, const pmf_qual_t *qual) { struct ppb_softc *sc = device_private(dv); int off; @@ -188,7 +188,7 @@ ppb_resume(device_t dv, pmf_qual_t qual) } static bool -ppb_suspend(device_t dv, pmf_qual_t qual) +ppb_suspend(device_t dv, const pmf_qual_t *qual) { struct ppb_softc *sc = device_private(dv); int off; diff --git a/sys/dev/pci/siisata_pci.c b/sys/dev/pci/siisata_pci.c index c4ff9c4a701..d763beb75a5 100644 --- a/sys/dev/pci/siisata_pci.c +++ b/sys/dev/pci/siisata_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: siisata_pci.c,v 1.7 2010/01/30 16:16:35 jakllsch Exp $ */ +/* $NetBSD: siisata_pci.c,v 1.8 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -51,7 +51,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: siisata_pci.c,v 1.7 2010/01/30 16:16:35 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: siisata_pci.c,v 1.8 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/types.h> #include <sys/malloc.h> @@ -75,7 +75,7 @@ struct siisata_pci_softc { static int siisata_pci_match(device_t, cfdata_t, void *); static void siisata_pci_attach(device_t, device_t, void *); static int siisata_pci_detach(device_t, int); -static bool siisata_pci_resume(device_t, pmf_qual_t); +static bool siisata_pci_resume(device_t, const pmf_qual_t *); struct siisata_pci_board { pci_vendor_id_t spb_vend; @@ -298,7 +298,7 @@ siisata_pci_detach(device_t dv, int flags) } static bool -siisata_pci_resume(device_t dv, pmf_qual_t qual) +siisata_pci_resume(device_t dv, const pmf_qual_t *qual) { struct siisata_pci_softc *psc = device_private(dv); struct siisata_softc *sc = &psc->si_sc; diff --git a/sys/dev/pci/uhci_pci.c b/sys/dev/pci/uhci_pci.c index f0a5917a907..46ac54c7f25 100644 --- a/sys/dev/pci/uhci_pci.c +++ b/sys/dev/pci/uhci_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci_pci.c,v 1.49 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: uhci_pci.c,v 1.50 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhci_pci.c,v 1.49 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci_pci.c,v 1.50 2010/02/24 22:38:01 dyoung Exp $"); #include "ehci.h" @@ -55,7 +55,7 @@ __KERNEL_RCSID(0, "$NetBSD: uhci_pci.c,v 1.49 2010/01/08 19:56:52 dyoung Exp $") #include <dev/usb/uhcireg.h> #include <dev/usb/uhcivar.h> -static bool uhci_pci_resume(device_t, pmf_qual_t); +static bool uhci_pci_resume(device_t, const pmf_qual_t *); struct uhci_pci_softc { uhci_softc_t sc; @@ -229,7 +229,7 @@ uhci_pci_detach(device_t self, int flags) } static bool -uhci_pci_resume(device_t dv, pmf_qual_t qual) +uhci_pci_resume(device_t dv, const pmf_qual_t *qual) { struct uhci_pci_softc *sc = device_private(dv); diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c index 99f1aa3dbab..77e2012fb97 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: vga_pci.c,v 1.48 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: vga_pci.c,v 1.49 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.48 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.49 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -90,7 +90,7 @@ static int vga_pci_match(device_t, cfdata_t, void *); static void vga_pci_attach(device_t, device_t, void *); static int vga_pci_rescan(device_t, const char *, const int *); static int vga_pci_lookup_quirks(struct pci_attach_args *); -static bool vga_pci_resume(device_t dv, pmf_qual_t); +static bool vga_pci_resume(device_t dv, const pmf_qual_t *); CFATTACH_DECL2_NEW(vga_pci, sizeof(struct vga_pci_softc), vga_pci_match, vga_pci_attach, NULL, NULL, vga_pci_rescan, NULL); @@ -263,7 +263,7 @@ vga_pci_rescan(device_t self, const char *ifattr, const int *locators) } static bool -vga_pci_resume(device_t dv, pmf_qual_t qual) +vga_pci_resume(device_t dv, const pmf_qual_t *qual) { #if defined(VGA_POST) && NACPICA > 0 extern int acpi_md_vbios_reset; diff --git a/sys/dev/pci/viaide.c b/sys/dev/pci/viaide.c index 6ebbde70c5f..e2094f32a3d 100644 --- a/sys/dev/pci/viaide.c +++ b/sys/dev/pci/viaide.c @@ -1,4 +1,4 @@ -/* $NetBSD: viaide.c,v 1.67 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: viaide.c,v 1.68 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 1999, 2000, 2001 Manuel Bouyer. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.67 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.68 2010/02/24 22:38:01 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -59,8 +59,8 @@ static int viaide_match(device_t, cfdata_t, void *); static void viaide_attach(device_t, device_t, void *); static const struct pciide_product_desc * viaide_lookup(pcireg_t); -static bool viaide_suspend(device_t, pmf_qual_t); -static bool viaide_resume(device_t, pmf_qual_t); +static bool viaide_suspend(device_t, const pmf_qual_t *); +static bool viaide_resume(device_t, const pmf_qual_t *); CFATTACH_DECL_NEW(viaide, sizeof(struct pciide_softc), viaide_match, viaide_attach, NULL, NULL); @@ -400,7 +400,7 @@ via_pcib_match(struct pci_attach_args *pa) } static bool -viaide_suspend(device_t dv, pmf_qual_t qual) +viaide_suspend(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); @@ -415,7 +415,7 @@ viaide_suspend(device_t dv, pmf_qual_t qual) } static bool -viaide_resume(device_t dv, pmf_qual_t qual) +viaide_resume(device_t dv, const pmf_qual_t *qual) { struct pciide_softc *sc = device_private(dv); diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index 2fe42550201..48bd3b69bdd 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $NetBSD: yds.c,v 1.48 2010/01/08 19:56:52 dyoung Exp $ */ +/* $NetBSD: yds.c,v 1.49 2010/02/24 22:38:01 dyoung Exp $ */ /* * Copyright (c) 2000, 2001 Kazuki Sakamoto and Minoura Makoto. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: yds.c,v 1.48 2010/01/08 19:56:52 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: yds.c,v 1.49 2010/02/24 22:38:01 dyoung Exp $"); #include "mpu.h" @@ -677,7 +677,7 @@ yds_init(struct yds_softc *sc) } static bool -yds_suspend(device_t dv, pmf_qual_t qual) +yds_suspend(device_t dv, const pmf_qual_t *qual) { struct yds_softc *sc = device_private(dv); pci_chipset_tag_t pc = sc->sc_pc; @@ -692,7 +692,7 @@ yds_suspend(device_t dv, pmf_qual_t qual) } static bool -yds_resume(device_t dv, pmf_qual_t qual) +yds_resume(device_t dv, const pmf_qual_t *qual) { struct yds_softc *sc = device_private(dv); pci_chipset_tag_t pc = sc->sc_pc; diff --git a/sys/dev/pckbport/pckbd.c b/sys/dev/pckbport/pckbd.c index 2a8471dda03..a1ac6dd584f 100644 --- a/sys/dev/pckbport/pckbd.c +++ b/sys/dev/pckbport/pckbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: pckbd.c,v 1.28 2010/01/08 20:00:32 dyoung Exp $ */ +/* $NetBSD: pckbd.c,v 1.29 2010/02/24 22:38:08 dyoung Exp $ */ /*- * Copyright (c) 1998, 2009 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.28 2010/01/08 20:00:32 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.29 2010/02/24 22:38:08 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -236,7 +236,7 @@ pckbd_is_console(pckbport_tag_t tag, pckbport_slot_t slot) } static bool -pckbd_suspend(device_t dv, pmf_qual_t qual) +pckbd_suspend(device_t dv, const pmf_qual_t *qual) { struct pckbd_softc *sc = device_private(dv); u_char cmd[1]; @@ -259,7 +259,7 @@ pckbd_suspend(device_t dv, pmf_qual_t qual) } static bool -pckbd_resume(device_t dv, pmf_qual_t qual) +pckbd_resume(device_t dv, const pmf_qual_t *qual) { struct pckbd_softc *sc = device_private(dv); u_char cmd[1], resp[1]; diff --git a/sys/dev/pckbport/pms.c b/sys/dev/pckbport/pms.c index 2ecebeb7bea..0bc2a7c6145 100644 --- a/sys/dev/pckbport/pms.c +++ b/sys/dev/pckbport/pms.c @@ -1,4 +1,4 @@ -/* $NetBSD: pms.c,v 1.29 2010/01/08 20:00:32 dyoung Exp $ */ +/* $NetBSD: pms.c,v 1.30 2010/02/24 22:38:08 dyoung Exp $ */ /*- * Copyright (c) 2004 Kentaro Kurahone. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pms.c,v 1.29 2010/01/08 20:00:32 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pms.c,v 1.30 2010/02/24 22:38:08 dyoung Exp $"); #include "opt_pms.h" @@ -90,8 +90,8 @@ int pms_enable(void *); int pms_ioctl(void *, u_long, void *, int, struct lwp *); void pms_disable(void *); -static bool pms_suspend(device_t, pmf_qual_t); -static bool pms_resume(device_t, pmf_qual_t); +static bool pms_suspend(device_t, const pmf_qual_t *); +static bool pms_resume(device_t, const pmf_qual_t *); const struct wsmouse_accessops pms_accessops = { pms_enable, @@ -343,7 +343,7 @@ pms_disable(void *v) } static bool -pms_suspend(device_t dv, pmf_qual_t qual) +pms_suspend(device_t dv, const pmf_qual_t *qual) { struct pms_softc *sc = device_private(dv); @@ -354,7 +354,7 @@ pms_suspend(device_t dv, pmf_qual_t qual) } static bool -pms_resume(device_t dv, pmf_qual_t qual) +pms_resume(device_t dv, const pmf_qual_t *qual) { struct pms_softc *sc = device_private(dv); diff --git a/sys/dev/pcmcia/bt3c.c b/sys/dev/pcmcia/bt3c.c index 5f7c4df537b..71c59c5cc44 100644 --- a/sys/dev/pcmcia/bt3c.c +++ b/sys/dev/pcmcia/bt3c.c @@ -1,4 +1,4 @@ -/* $NetBSD: bt3c.c,v 1.20 2010/01/08 20:01:00 dyoung Exp $ */ +/* $NetBSD: bt3c.c,v 1.21 2010/02/24 22:38:08 dyoung Exp $ */ /*- * Copyright (c) 2005 Iain D. Hibbert, @@ -69,7 +69,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bt3c.c,v 1.20 2010/01/08 20:01:00 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bt3c.c,v 1.21 2010/02/24 22:38:08 dyoung Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -135,8 +135,8 @@ struct bt3c_softc { static int bt3c_match(device_t, cfdata_t, void *); static void bt3c_attach(device_t, device_t, void *); static int bt3c_detach(device_t, int); -static bool bt3c_suspend(device_t, pmf_qual_t); -static bool bt3c_resume(device_t, pmf_qual_t); +static bool bt3c_suspend(device_t, const pmf_qual_t *); +static bool bt3c_resume(device_t, const pmf_qual_t *); CFATTACH_DECL_NEW(bt3c, sizeof(struct bt3c_softc), bt3c_match, bt3c_attach, bt3c_detach, NULL); @@ -1019,7 +1019,7 @@ bt3c_detach(device_t self, int flags) } static bool -bt3c_suspend(device_t self, pmf_qual_t qual) +bt3c_suspend(device_t self, const pmf_qual_t *qual) { struct bt3c_softc *sc = device_private(self); @@ -1032,7 +1032,7 @@ bt3c_suspend(device_t self, pmf_qual_t qual) } static bool -bt3c_resume(device_t self, pmf_qual_t qual) +bt3c_resume(device_t self, const pmf_qual_t *qual) { struct bt3c_softc *sc = device_private(self); diff --git a/sys/dev/pcmcia/btbc.c b/sys/dev/pcmcia/btbc.c index c59dcdb32bb..6e6fc3d5d14 100644 --- a/sys/dev/pcmcia/btbc.c +++ b/sys/dev/pcmcia/btbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: btbc.c,v 1.14 2010/01/08 20:01:00 dyoung Exp $ */ +/* $NetBSD: btbc.c,v 1.15 2010/02/24 22:38:08 dyoung Exp $ */ /* * Copyright (c) 2007 KIYOHARA Takashi * All rights reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: btbc.c,v 1.14 2010/01/08 20:01:00 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btbc.c,v 1.15 2010/02/24 22:38:08 dyoung Exp $"); #include <sys/param.h> #include <sys/callout.h> @@ -104,8 +104,8 @@ struct btbc_softc { static int btbc_match(device_t, cfdata_t, void *); static void btbc_attach(device_t, device_t, void *); static int btbc_detach(device_t, int); -static bool btbc_suspend(device_t, pmf_qual_t); -static bool btbc_resume(device_t, pmf_qual_t); +static bool btbc_suspend(device_t, const pmf_qual_t *); +static bool btbc_resume(device_t, const pmf_qual_t *); static void btbc_activity_led_timeout(void *); static void btbc_enable_activity_led(struct btbc_softc *); @@ -224,7 +224,7 @@ btbc_detach(device_t self, int flags) } static bool -btbc_suspend(device_t self, pmf_qual_t qual) +btbc_suspend(device_t self, const pmf_qual_t *qual) { struct btbc_softc *sc = device_private(self); @@ -238,7 +238,7 @@ btbc_suspend(device_t self, pmf_qual_t qual) static bool -btbc_resume(device_t self, pmf_qual_t qual) +btbc_resume(device_t self, const pmf_qual_t *qual) { struct btbc_softc *sc = device_private(self); diff --git a/sys/dev/sbus/dbri.c b/sys/dev/sbus/dbri.c index 2e7122b6158..a7a7e0de102 100644 --- a/sys/dev/sbus/dbri.c +++ b/sys/dev/sbus/dbri.c @@ -1,4 +1,4 @@ -/* $NetBSD: dbri.c,v 1.30 2010/02/18 02:21:38 macallan Exp $ */ +/* $NetBSD: dbri.c,v 1.31 2010/02/24 22:38:08 dyoung Exp $ */ /* * Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.30 2010/02/18 02:21:38 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.31 2010/02/24 22:38:08 dyoung Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -162,8 +162,8 @@ static void dbri_free(void *, void *, struct malloc_type *); static paddr_t dbri_mappage(void *, void *, off_t, int); static void dbri_set_power(struct dbri_softc *, int); static void dbri_bring_up(struct dbri_softc *); -static bool dbri_suspend(device_t, pmf_qual_t); -static bool dbri_resume(device_t, pmf_qual_t); +static bool dbri_suspend(device_t, const pmf_qual_t *); +static bool dbri_resume(device_t, const pmf_qual_t *); /* stupid support routines */ static uint32_t reverse_bytes(uint32_t, int); @@ -2178,7 +2178,7 @@ dbri_close(void *cookie) } static bool -dbri_suspend(device_t self, pmf_qual_t qual) +dbri_suspend(device_t self, const pmf_qual_t *qual) { struct dbri_softc *sc = device_private(self); @@ -2187,7 +2187,7 @@ dbri_suspend(device_t self, pmf_qual_t qual) } static bool -dbri_resume(device_t self, pmf_qual_t qual) +dbri_resume(device_t self, const pmf_qual_t *qual) { struct dbri_softc *sc = device_private(self); diff --git a/sys/dev/sbus/p9100.c b/sys/dev/sbus/p9100.c index 3aeef799f01..fa576cdf5c0 100644 --- a/sys/dev/sbus/p9100.c +++ b/sys/dev/sbus/p9100.c @@ -1,4 +1,4 @@ -/* $NetBSD: p9100.c,v 1.51 2010/01/08 20:01:21 dyoung Exp $ */ +/* $NetBSD: p9100.c,v 1.52 2010/02/24 22:38:08 dyoung Exp $ */ /*- * Copyright (c) 1998, 2005, 2006 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.51 2010/01/08 20:01:21 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.52 2010/02/24 22:38:08 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -236,8 +236,8 @@ static int p9100_intr(void *); #endif /* power management stuff */ -static bool p9100_suspend(device_t, pmf_qual_t); -static bool p9100_resume(device_t, pmf_qual_t); +static bool p9100_suspend(device_t, const pmf_qual_t *); +static bool p9100_resume(device_t, const pmf_qual_t *); #if NTCTRL > 0 static void p9100_set_extvga(void *, int); @@ -925,7 +925,7 @@ p9100_get_video(struct p9100_softc *sc) } static bool -p9100_suspend(device_t dev, pmf_qual_t qual) +p9100_suspend(device_t dev, const pmf_qual_t *qual) { struct p9100_softc *sc = device_private(dev); @@ -946,7 +946,7 @@ p9100_suspend(device_t dev, pmf_qual_t qual) } static bool -p9100_resume(device_t dev, pmf_qual_t qual) +p9100_resume(device_t dev, const pmf_qual_t *qual) { struct p9100_softc *sc = device_private(dev); diff --git a/sys/dev/scsipi/sd.c b/sys/dev/scsipi/sd.c index 60d4bd85098..04539cc2749 100644 --- a/sys/dev/scsipi/sd.c +++ b/sys/dev/scsipi/sd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sd.c,v 1.291 2010/01/08 20:05:16 dyoung Exp $ */ +/* $NetBSD: sd.c,v 1.292 2010/02/24 22:38:08 dyoung Exp $ */ /*- * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc. @@ -47,7 +47,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.291 2010/01/08 20:05:16 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.292 2010/02/24 22:38:08 dyoung Exp $"); #include "opt_scsi.h" #include "rnd.h" @@ -100,7 +100,7 @@ static int sdgetdisklabel(struct sd_softc *); static void sdstart(struct scsipi_periph *); static void sdrestart(void *); static void sddone(struct scsipi_xfer *, int); -static bool sd_suspend(device_t, pmf_qual_t); +static bool sd_suspend(device_t, const pmf_qual_t *); static bool sd_shutdown(device_t, int); static int sd_interpret_sense(struct scsipi_xfer *); static int sdlastclose(device_t); @@ -1338,7 +1338,7 @@ sd_shutdown(device_t self, int how) } static bool -sd_suspend(device_t dv, pmf_qual_t qual) +sd_suspend(device_t dv, const pmf_qual_t *qual) { return sd_shutdown(dv, boothowto); /* XXX no need to poll */ } diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c index d6e54ae290a..b155988c974 100644 --- a/sys/dev/sdmmc/sdhc.c +++ b/sys/dev/sdmmc/sdhc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sdhc.c,v 1.5 2010/01/12 08:41:16 uebayasi Exp $ */ +/* $NetBSD: sdhc.c,v 1.6 2010/02/24 22:38:08 dyoung Exp $ */ /* $OpenBSD: sdhc.c,v 1.25 2009/01/13 19:44:20 grange Exp $ */ /* @@ -23,7 +23,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.5 2010/01/12 08:41:16 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.6 2010/02/24 22:38:08 dyoung Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -310,7 +310,7 @@ err1: } bool -sdhc_suspend(device_t dev, pmf_qual_t qual) +sdhc_suspend(device_t dev, const pmf_qual_t *qual) { struct sdhc_softc *sc = device_private(dev); struct sdhc_host *hp; @@ -329,7 +329,7 @@ sdhc_suspend(device_t dev, pmf_qual_t qual) } bool -sdhc_resume(device_t dev, pmf_qual_t qual) +sdhc_resume(device_t dev, const pmf_qual_t *qual) { struct sdhc_softc *sc = device_private(dev); struct sdhc_host *hp; diff --git a/sys/dev/sdmmc/sdhcvar.h b/sys/dev/sdmmc/sdhcvar.h index 26dca23e4eb..617800f6a18 100644 --- a/sys/dev/sdmmc/sdhcvar.h +++ b/sys/dev/sdmmc/sdhcvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: sdhcvar.h,v 1.2 2010/01/08 19:53:10 dyoung Exp $ */ +/* $NetBSD: sdhcvar.h,v 1.3 2010/02/24 22:38:08 dyoung Exp $ */ /* $OpenBSD: sdhcvar.h,v 1.3 2007/09/06 08:01:01 jsg Exp $ */ /* @@ -44,8 +44,8 @@ struct sdhc_softc { int sdhc_host_found(struct sdhc_softc *, bus_space_tag_t, bus_space_handle_t, bus_size_t); int sdhc_intr(void *); -bool sdhc_suspend(device_t dev, pmf_qual_t qual); -bool sdhc_resume(device_t dev, pmf_qual_t qual); +bool sdhc_suspend(device_t dev, const pmf_qual_t *qual); +bool sdhc_resume(device_t dev, const pmf_qual_t *qual); bool sdhc_shutdown(device_t dev, int flags); #endif /* _SDHCVAR_H_ */ diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 24985ce247d..7e6f4bf40ba 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ehci.c,v 1.165 2010/01/08 20:38:43 dyoung Exp $ */ +/* $NetBSD: ehci.c,v 1.166 2010/02/24 22:38:09 dyoung Exp $ */ /* * Copyright (c) 2004-2008 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.165 2010/01/08 20:38:43 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.166 2010/02/24 22:38:09 dyoung Exp $"); #include "ohci.h" #include "uhci.h" @@ -1123,7 +1123,7 @@ ehci_activate(device_t self, enum devact act) * bus glue needs to call out to it. */ bool -ehci_suspend(device_t dv, pmf_qual_t qual) +ehci_suspend(device_t dv, const pmf_qual_t *qual) { ehci_softc_t *sc = device_private(dv); int i, s; @@ -1174,7 +1174,7 @@ ehci_suspend(device_t dv, pmf_qual_t qual) } bool -ehci_resume(device_t dv, pmf_qual_t qual) +ehci_resume(device_t dv, const pmf_qual_t *qual) { ehci_softc_t *sc = device_private(dv); int i; diff --git a/sys/dev/usb/ehcivar.h b/sys/dev/usb/ehcivar.h index fd00a33769b..fbe8188b731 100644 --- a/sys/dev/usb/ehcivar.h +++ b/sys/dev/usb/ehcivar.h @@ -1,4 +1,4 @@ -/* $NetBSD: ehcivar.h,v 1.35 2010/01/08 20:39:03 dyoung Exp $ */ +/* $NetBSD: ehcivar.h,v 1.36 2010/02/24 22:38:09 dyoung Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -187,6 +187,6 @@ int ehci_intr(void *); int ehci_detach(ehci_softc_t *, int); int ehci_activate(device_t, enum devact); void ehci_childdet(device_t, device_t); -bool ehci_suspend(device_t, pmf_qual_t); -bool ehci_resume(device_t, pmf_qual_t); +bool ehci_suspend(device_t, const pmf_qual_t *); +bool ehci_resume(device_t, const pmf_qual_t *); bool ehci_shutdown(device_t, int); diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 7d4829f0c4d..950732906f8 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.205 2010/01/08 20:39:04 dyoung Exp $ */ +/* $NetBSD: ohci.c,v 1.206 2010/02/24 22:38:09 dyoung Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.205 2010/01/08 20:39:04 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.206 2010/02/24 22:38:09 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -997,7 +997,7 @@ ohci_shutdown(device_t self, int flags) } bool -ohci_resume(device_t dv, pmf_qual_t qual) +ohci_resume(device_t dv, const pmf_qual_t *qual) { ohci_softc_t *sc = device_private(dv); uint32_t ctl; @@ -1032,7 +1032,7 @@ ohci_resume(device_t dv, pmf_qual_t qual) } bool -ohci_suspend(device_t dv, pmf_qual_t qual) +ohci_suspend(device_t dv, const pmf_qual_t *qual) { ohci_softc_t *sc = device_private(dv); uint32_t ctl; diff --git a/sys/dev/usb/ohcivar.h b/sys/dev/usb/ohcivar.h index ca3f154940d..0744e23de88 100644 --- a/sys/dev/usb/ohcivar.h +++ b/sys/dev/usb/ohcivar.h @@ -1,4 +1,4 @@ -/* $NetBSD: ohcivar.h,v 1.46 2010/01/08 20:39:04 dyoung Exp $ */ +/* $NetBSD: ohcivar.h,v 1.47 2010/02/24 22:38:09 dyoung Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohcivar.h,v 1.13 1999/11/17 22:33:41 n_hibma Exp $ */ /* @@ -153,5 +153,5 @@ bool ohci_shutdown(device_t, int); void ohci_childdet(device_t, device_t); int ohci_activate(device_t, enum devact); #endif -bool ohci_resume(device_t, pmf_qual_t); -bool ohci_suspend(device_t, pmf_qual_t); +bool ohci_resume(device_t, const pmf_qual_t *); +bool ohci_suspend(device_t, const pmf_qual_t *); diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 00342b4f22b..146e7fbd68d 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.231 2010/01/08 20:39:04 dyoung Exp $ */ +/* $NetBSD: uhci.c,v 1.232 2010/02/24 22:38:09 dyoung Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ /* @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.231 2010/01/08 20:39:04 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.232 2010/02/24 22:38:09 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -691,7 +691,7 @@ uhci_freex(struct usbd_bus *bus, usbd_xfer_handle xfer) * are almost suspended anyway. */ bool -uhci_resume(device_t dv, pmf_qual_t qual) +uhci_resume(device_t dv, const pmf_qual_t *qual) { uhci_softc_t *sc = device_private(dv); int cmd; @@ -736,7 +736,7 @@ uhci_resume(device_t dv, pmf_qual_t qual) } bool -uhci_suspend(device_t dv, pmf_qual_t qual) +uhci_suspend(device_t dv, const pmf_qual_t *qual) { uhci_softc_t *sc = device_private(dv); int cmd; diff --git a/sys/dev/usb/uhcivar.h b/sys/dev/usb/uhcivar.h index 6a5761d5315..e8fbb72e022 100644 --- a/sys/dev/usb/uhcivar.h +++ b/sys/dev/usb/uhcivar.h @@ -1,4 +1,4 @@ -/* $NetBSD: uhcivar.h,v 1.46 2010/01/08 20:39:04 dyoung Exp $ */ +/* $NetBSD: uhcivar.h,v 1.47 2010/02/24 22:38:09 dyoung Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhcivar.h,v 1.14 1999/11/17 22:33:42 n_hibma Exp $ */ /* @@ -189,7 +189,7 @@ int uhci_intr(void *); int uhci_detach(uhci_softc_t *, int); void uhci_childdet(device_t, device_t); int uhci_activate(device_t, enum devact); -bool uhci_resume(device_t, pmf_qual_t); -bool uhci_suspend(device_t, pmf_qual_t); +bool uhci_resume(device_t, const pmf_qual_t *); +bool uhci_suspend(device_t, const pmf_qual_t *); #endif diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 42f1721c274..6bc26def705 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsdisplay.c,v 1.130 2010/02/02 16:54:40 drochner Exp $ */ +/* $NetBSD: wsdisplay.c,v 1.131 2010/02/24 22:38:09 dyoung Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.130 2010/02/02 16:54:40 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.131 2010/02/24 22:38:09 dyoung Exp $"); #include "opt_wsdisplay_compat.h" #include "opt_wsmsgattrs.h" @@ -168,7 +168,7 @@ static int wsdisplay_emul_match(device_t , cfdata_t, void *); static void wsdisplay_emul_attach(device_t, device_t, void *); static int wsdisplay_noemul_match(device_t, cfdata_t, void *); static void wsdisplay_noemul_attach(device_t, device_t, void *); -static bool wsdisplay_suspend(device_t, pmf_qual_t); +static bool wsdisplay_suspend(device_t, const pmf_qual_t *); CFATTACH_DECL_NEW(wsdisplay_emul, sizeof (struct wsdisplay_softc), wsdisplay_emul_match, wsdisplay_emul_attach, NULL, NULL); @@ -681,7 +681,7 @@ wsdisplay_handlex(int resume) } static bool -wsdisplay_suspend(device_t dv, pmf_qual_t qual) +wsdisplay_suspend(device_t dv, const pmf_qual_t *qual) { struct wsdisplay_softc *sc = device_private(dv); #ifdef DIAGNOSTIC diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index 6bf55b75d3d..1ecdcba714c 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wskbd.c,v 1.126 2010/01/28 22:36:19 drochner Exp $ */ +/* $NetBSD: wskbd.c,v 1.127 2010/02/24 22:38:09 dyoung Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -105,7 +105,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.126 2010/01/28 22:36:19 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.127 2010/02/24 22:38:09 dyoung Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -347,7 +347,7 @@ struct wssrcops wskbd_srcops = { }; #endif -static bool wskbd_suspend(device_t dv, pmf_qual_t); +static bool wskbd_suspend(device_t dv, const pmf_qual_t *); static void wskbd_repeat(void *v); static int wskbd_console_initted; @@ -505,7 +505,7 @@ wskbd_attach(device_t parent, device_t self, void *aux) } static bool -wskbd_suspend(device_t dv, pmf_qual_t qual) +wskbd_suspend(device_t dv, const pmf_qual_t *qual) { struct wskbd_softc *sc = device_private(dv); diff --git a/sys/dev/wsfb/genfbvar.h b/sys/dev/wsfb/genfbvar.h index 735b24c671c..2a2df0d6b06 100644 --- a/sys/dev/wsfb/genfbvar.h +++ b/sys/dev/wsfb/genfbvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: genfbvar.h,v 1.13 2010/02/22 05:55:10 ahoka Exp $ */ +/* $NetBSD: genfbvar.h,v 1.14 2010/02/24 22:38:09 dyoung Exp $ */ /*- * Copyright (c) 2007 Michael Lorenz @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: genfbvar.h,v 1.13 2010/02/22 05:55:10 ahoka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfbvar.h,v 1.14 2010/02/24 22:38:09 dyoung Exp $"); #ifndef GENFBVAR_H #define GENFBVAR_H @@ -66,8 +66,8 @@ struct genfb_colormap_callback { }; struct genfb_pmf_callback { - bool (*gpc_suspend)(device_t, pmf_qual_t); - bool (*gpc_resume)(device_t, pmf_qual_t); + bool (*gpc_suspend)(device_t, const pmf_qual_t *); + bool (*gpc_resume)(device_t, const pmf_qual_t *); }; struct genfb_softc { |
