summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2010-11-03 22:30:50 +0000
committerdyoung <dyoung@NetBSD.org>2010-11-03 22:30:50 +0000
commite74917f4cf5972b7040407f885a9601101020bd1 (patch)
treec98a0b541daa1bf4fca687d5e931e81ae2749c48 /sys
parent68c8418c635ce150972471f1982d95cdba1def16 (diff)
Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera. These files produce the same assembly (according to objdump -d) before and after the change, except for if_cue.c where two adjacent instructions inexplicably change order. Straggler from last: commit corresponding header files.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_kuereg.h4
-rw-r--r--sys/dev/usb/if_rumvar.h8
-rw-r--r--sys/dev/usb/if_udavreg.h6
-rw-r--r--sys/dev/usb/if_uralvar.h8
-rw-r--r--sys/dev/usb/if_urlreg.h6
-rw-r--r--sys/dev/usb/if_zydreg.h8
6 files changed, 20 insertions, 20 deletions
diff --git a/sys/dev/usb/if_kuereg.h b/sys/dev/usb/if_kuereg.h
index f3518bb025d..4746832e27c 100644
--- a/sys/dev/usb/if_kuereg.h
+++ b/sys/dev/usb/if_kuereg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_kuereg.h,v 1.15 2010/08/16 11:21:43 tsutsui Exp $ */
+/* $NetBSD: if_kuereg.h,v 1.16 2010/11/03 22:30:50 dyoung Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
@@ -159,7 +159,7 @@ struct kue_cdata {
};
struct kue_softc {
- USBBASEDEVICE kue_dev;
+ device_t kue_dev;
struct ethercom kue_ec;
#if NRND > 0
diff --git a/sys/dev/usb/if_rumvar.h b/sys/dev/usb/if_rumvar.h
index 8013a9420ab..3f24773cce1 100644
--- a/sys/dev/usb/if_rumvar.h
+++ b/sys/dev/usb/if_rumvar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rumvar.h,v 1.7 2010/01/19 22:07:44 pooka Exp $ */
+/* $NetBSD: if_rumvar.h,v 1.8 2010/11/03 22:30:50 dyoung Exp $ */
/* $OpenBSD: if_rumvar.h,v 1.7 2006/11/13 20:06:38 damien Exp $ */
/*-
@@ -71,7 +71,7 @@ struct rum_rx_data {
};
struct rum_softc {
- USBBASEDEVICE sc_dev;
+ device_t sc_dev;
struct ethercom sc_ec;
#define sc_if sc_ec.ec_if
struct ieee80211com sc_ic;
@@ -109,8 +109,8 @@ struct rum_softc {
struct ieee80211_beacon_offsets sc_bo;
- usb_callout_t sc_scan_ch;
- usb_callout_t sc_amrr_ch;
+ struct callout sc_scan_ch;
+ struct callout sc_amrr_ch;
int sc_tx_timer;
diff --git a/sys/dev/usb/if_udavreg.h b/sys/dev/usb/if_udavreg.h
index b4456b4aa09..4aea9f9c791 100644
--- a/sys/dev/usb/if_udavreg.h
+++ b/sys/dev/usb/if_udavreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_udavreg.h,v 1.5 2009/09/04 18:10:08 dyoung Exp $ */
+/* $NetBSD: if_udavreg.h,v 1.6 2010/11/03 22:30:50 dyoung Exp $ */
/* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */
/*
* Copyright (c) 2003
@@ -166,7 +166,7 @@ struct udav_cdata {
};
struct udav_softc {
- USBBASEDEVICE sc_dev; /* base device */
+ device_t sc_dev; /* base device */
usbd_device_handle sc_udev;
/* USB */
@@ -178,7 +178,7 @@ struct udav_softc {
usbd_pipe_handle sc_pipe_rx;
usbd_pipe_handle sc_pipe_tx;
usbd_pipe_handle sc_pipe_intr;
- usb_callout_t sc_stat_ch;
+ struct callout sc_stat_ch;
u_int sc_rx_errs;
/* u_int sc_intr_errs; */
struct timeval sc_rx_notice;
diff --git a/sys/dev/usb/if_uralvar.h b/sys/dev/usb/if_uralvar.h
index 3f9822017ee..5114a1189ea 100644
--- a/sys/dev/usb/if_uralvar.h
+++ b/sys/dev/usb/if_uralvar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_uralvar.h,v 1.10 2010/01/19 22:07:44 pooka Exp $ */
+/* $NetBSD: if_uralvar.h,v 1.11 2010/11/03 22:30:50 dyoung Exp $ */
/* $OpenBSD: if_ralvar.h,v 1.2 2005/05/13 18:42:50 damien Exp $ */
/*-
@@ -71,7 +71,7 @@ struct ural_rx_data {
};
struct ural_softc {
- USBBASEDEVICE sc_dev;
+ device_t sc_dev;
struct ethercom sc_ec;
#define sc_if sc_ec.ec_if
struct ieee80211com sc_ic;
@@ -104,8 +104,8 @@ struct ural_softc {
struct ieee80211_beacon_offsets sc_bo;
- usb_callout_t sc_scan_ch;
- usb_callout_t sc_amrr_ch;
+ struct callout sc_scan_ch;
+ struct callout sc_amrr_ch;
int sc_tx_timer;
diff --git a/sys/dev/usb/if_urlreg.h b/sys/dev/usb/if_urlreg.h
index 74cbf7eeb92..86a3af5ad80 100644
--- a/sys/dev/usb/if_urlreg.h
+++ b/sys/dev/usb/if_urlreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urlreg.h,v 1.5 2009/09/04 18:10:08 dyoung Exp $ */
+/* $NetBSD: if_urlreg.h,v 1.6 2010/11/03 22:30:50 dyoung Exp $ */
/*
* Copyright (c) 2001, 2002
* Shingo WATANABE <nabe@nabechan.org>. All rights reserved.
@@ -152,7 +152,7 @@ struct url_cdata {
};
struct url_softc {
- USBBASEDEVICE sc_dev; /* base device */
+ device_t sc_dev; /* base device */
usbd_device_handle sc_udev;
/* USB */
@@ -164,7 +164,7 @@ struct url_softc {
usbd_pipe_handle sc_pipe_rx;
usbd_pipe_handle sc_pipe_tx;
usbd_pipe_handle sc_pipe_intr;
- usb_callout_t sc_stat_ch;
+ struct callout sc_stat_ch;
u_int sc_rx_errs;
/* u_int sc_intr_errs; */
struct timeval sc_rx_notice;
diff --git a/sys/dev/usb/if_zydreg.h b/sys/dev/usb/if_zydreg.h
index 810ddd7f7fc..ddf367aa10c 100644
--- a/sys/dev/usb/if_zydreg.h
+++ b/sys/dev/usb/if_zydreg.h
@@ -1,5 +1,5 @@
/* $OpenBSD: if_zydreg.h,v 1.19 2006/11/30 19:28:07 damien Exp $ */
-/* $NetBSD: if_zydreg.h,v 1.4 2010/01/19 22:07:44 pooka Exp $ */
+/* $NetBSD: if_zydreg.h,v 1.5 2010/11/03 22:30:50 dyoung Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
@@ -1166,7 +1166,7 @@ struct rq {
};
struct zyd_softc {
- USBBASEDEVICE sc_dev;
+ device_t sc_dev;
struct ethercom sc_ec;
#define sc_if sc_ec.ec_if
struct ieee80211com sc_ic;
@@ -1185,8 +1185,8 @@ struct zyd_softc {
int sc_arg;
int attached;
- usb_callout_t sc_scan_ch;
- usb_callout_t sc_amrr_ch;
+ struct callout sc_scan_ch;
+ struct callout sc_amrr_ch;
struct ieee80211_amrr amrr;