Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Stop using the compatibility macros USB_ATTACH()...
details: https://anonhg.NetBSD.org/src/rev/843d4c223c86
branches: trunk
changeset: 758388:843d4c223c86
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Nov 03 22:30:50 2010 +0000
description:
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:
sys/dev/usb/if_kuereg.h | 4 ++--
sys/dev/usb/if_rumvar.h | 8 ++++----
sys/dev/usb/if_udavreg.h | 6 +++---
sys/dev/usb/if_uralvar.h | 8 ++++----
sys/dev/usb/if_urlreg.h | 6 +++---
sys/dev/usb/if_zydreg.h | 8 ++++----
6 files changed, 20 insertions(+), 20 deletions(-)
diffs (160 lines):
diff -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_kuereg.h
--- a/sys/dev/usb/if_kuereg.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_kuereg.h Wed Nov 03 22:30:50 2010 +0000
@@ -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@localhost>. All rights reserved.
@@ -159,7 +159,7 @@
};
struct kue_softc {
- USBBASEDEVICE kue_dev;
+ device_t kue_dev;
struct ethercom kue_ec;
#if NRND > 0
diff -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_rumvar.h
--- a/sys/dev/usb/if_rumvar.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_rumvar.h Wed Nov 03 22:30:50 2010 +0000
@@ -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_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 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 -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_udavreg.h
--- a/sys/dev/usb/if_udavreg.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_udavreg.h Wed Nov 03 22:30:50 2010 +0000
@@ -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_softc {
- USBBASEDEVICE sc_dev; /* base device */
+ device_t sc_dev; /* base device */
usbd_device_handle sc_udev;
/* USB */
@@ -178,7 +178,7 @@
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 -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_uralvar.h
--- a/sys/dev/usb/if_uralvar.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_uralvar.h Wed Nov 03 22:30:50 2010 +0000
@@ -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_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 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 -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_urlreg.h
--- a/sys/dev/usb/if_urlreg.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_urlreg.h Wed Nov 03 22:30:50 2010 +0000
@@ -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@localhost>. All rights reserved.
@@ -152,7 +152,7 @@
};
struct url_softc {
- USBBASEDEVICE sc_dev; /* base device */
+ device_t sc_dev; /* base device */
usbd_device_handle sc_udev;
/* USB */
@@ -164,7 +164,7 @@
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 -r 8dc9ee6325ad -r 843d4c223c86 sys/dev/usb/if_zydreg.h
--- a/sys/dev/usb/if_zydreg.h Wed Nov 03 22:28:31 2010 +0000
+++ b/sys/dev/usb/if_zydreg.h Wed Nov 03 22:30:50 2010 +0000
@@ -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@localhost>
@@ -1166,7 +1166,7 @@
};
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index