Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb remove explicit 'extern struct cfdriver <my>_cd;...
details: https://anonhg.NetBSD.org/src/rev/f5688f16e4c7
branches: trunk
changeset: 998851:f5688f16e4c7
user: mrg <mrg%NetBSD.org@localhost>
date: Sun May 05 03:17:54 2019 +0000
description:
remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h
diffstat:
sys/dev/usb/if_atu.c | 6 +++---
sys/dev/usb/if_aue.c | 6 +++---
sys/dev/usb/if_cdce.c | 6 +++---
sys/dev/usb/if_cue.c | 6 +++---
sys/dev/usb/if_kue.c | 6 +++---
sys/dev/usb/if_rum.c | 6 +++---
sys/dev/usb/if_udav.c | 6 +++---
sys/dev/usb/if_upl.c | 6 +++---
sys/dev/usb/if_ural.c | 6 +++---
sys/dev/usb/if_url.c | 6 +++---
sys/dev/usb/if_zyd.c | 6 +++---
sys/dev/usb/stuirda.c | 6 +++---
sys/dev/usb/uark.c | 6 +++---
sys/dev/usb/uaudio.c | 6 +++---
sys/dev/usb/uberry.c | 6 +++---
sys/dev/usb/ubsa.c | 6 +++---
sys/dev/usb/ubt.c | 6 +++---
sys/dev/usb/uchcom.c | 6 +++---
sys/dev/usb/ucom.c | 8 ++++----
sys/dev/usb/ucycom.c | 6 +++---
sys/dev/usb/udsbr.c | 6 +++---
sys/dev/usb/uep.c | 6 +++---
sys/dev/usb/uftdi.c | 6 +++---
sys/dev/usb/ugen.c | 8 +++++---
sys/dev/usb/ugensa.c | 6 +++---
sys/dev/usb/uhid.c | 8 +++++---
sys/dev/usb/uhidev.c | 6 +++---
sys/dev/usb/uhso.c | 7 ++++---
sys/dev/usb/uhub.c | 6 +++---
sys/dev/usb/uipad.c | 6 +++---
sys/dev/usb/uipaq.c | 6 +++---
sys/dev/usb/uirda.c | 6 +++---
sys/dev/usb/ukbd.c | 6 +++---
sys/dev/usb/ukyopon.c | 6 +++---
sys/dev/usb/ulpt.c | 8 +++++---
sys/dev/usb/umass.c | 6 +++---
sys/dev/usb/umct.c | 6 +++---
sys/dev/usb/umidi.c | 6 +++---
sys/dev/usb/umodem.c | 6 +++---
sys/dev/usb/ums.c | 6 +++---
sys/dev/usb/uplcom.c | 6 +++---
sys/dev/usb/urio.c | 8 +++++---
sys/dev/usb/usb.c | 8 +++++---
sys/dev/usb/uscanner.c | 8 +++++---
sys/dev/usb/usscanner.c | 6 +++---
sys/dev/usb/ustir.c | 6 +++---
sys/dev/usb/uthum.c | 6 +++---
sys/dev/usb/utoppy.c | 8 +++++---
sys/dev/usb/uts.c | 6 +++---
sys/dev/usb/uvideo.c | 6 +++---
sys/dev/usb/uvisor.c | 6 +++---
sys/dev/usb/uvscom.c | 6 +++---
sys/dev/usb/uyap.c | 6 +++---
sys/dev/usb/uyurex.c | 6 +++---
54 files changed, 178 insertions(+), 163 deletions(-)
diffs (truncated from 1541 to 300 lines):
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_atu.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atu.c,v 1.64 2019/04/26 06:33:34 msaitoh Exp $ */
+/* $NetBSD: if_atu.c,v 1.65 2019/05/05 03:17:54 mrg Exp $ */
/* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
/*
* Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.64 2019/04/26 06:33:34 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.65 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -282,7 +282,7 @@
void atu_attach(device_t, device_t, void *);
int atu_detach(device_t, int);
int atu_activate(device_t, enum devact);
-extern struct cfdriver atu_cd;
+
CFATTACH_DECL_NEW(atu, sizeof(struct atu_softc), atu_match, atu_attach,
atu_detach, atu_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_aue.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.150 2019/04/22 08:36:03 msaitoh Exp $ */
+/* $NetBSD: if_aue.c,v 1.151 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.150 2019/04/22 08:36:03 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.151 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -212,7 +212,7 @@
void aue_attach(device_t, device_t, void *);
int aue_detach(device_t, int);
int aue_activate(device_t, enum devact);
-extern struct cfdriver aue_cd;
+
CFATTACH_DECL_NEW(aue, sizeof(struct aue_softc), aue_match, aue_attach,
aue_detach, aue_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_cdce.c
--- a/sys/dev/usb/if_cdce.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_cdce.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cdce.c,v 1.46 2018/06/26 06:48:02 msaitoh Exp $ */
+/* $NetBSD: if_cdce.c,v 1.47 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul%windriver.com@localhost>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.46 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.47 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -111,7 +111,7 @@
void cdce_attach(device_t, device_t, void *);
int cdce_detach(device_t, int);
int cdce_activate(device_t, enum devact);
-extern struct cfdriver cdce_cd;
+
CFATTACH_DECL_NEW(cdce, sizeof(struct cdce_softc), cdce_match, cdce_attach,
cdce_detach, cdce_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_cue.c
--- a/sys/dev/usb/if_cue.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_cue.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cue.c,v 1.80 2018/08/02 06:09:04 riastradh Exp $ */
+/* $NetBSD: if_cue.c,v 1.81 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.80 2018/08/02 06:09:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.81 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -116,7 +116,7 @@
void cue_attach(device_t, device_t, void *);
int cue_detach(device_t, int);
int cue_activate(device_t, enum devact);
-extern struct cfdriver cue_cd;
+
CFATTACH_DECL_NEW(cue, sizeof(struct cue_softc), cue_match, cue_attach,
cue_detach, cue_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_kue.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_kue.c,v 1.92 2018/06/26 06:48:02 msaitoh Exp $ */
+/* $NetBSD: if_kue.c,v 1.93 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.92 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.93 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -161,7 +161,7 @@
void kue_attach(device_t, device_t, void *);
int kue_detach(device_t, int);
int kue_activate(device_t, enum devact);
-extern struct cfdriver kue_cd;
+
CFATTACH_DECL_NEW(kue, sizeof(struct kue_softc), kue_match, kue_attach,
kue_detach, kue_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_rum.c
--- a/sys/dev/usb/if_rum.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_rum.c Sun May 05 03:17:54 2019 +0000
@@ -1,5 +1,5 @@
/* $OpenBSD: if_rum.c,v 1.40 2006/09/18 16:20:20 damien Exp $ */
-/* $NetBSD: if_rum.c,v 1.64 2018/09/12 21:57:18 christos Exp $ */
+/* $NetBSD: if_rum.c,v 1.65 2019/05/05 03:17:54 mrg Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.64 2018/09/12 21:57:18 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.65 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -234,7 +234,7 @@
static void rum_attach(device_t, device_t, void *);
static int rum_detach(device_t, int);
static int rum_activate(device_t, enum devact);
-extern struct cfdriver rum_cd;
+
CFATTACH_DECL_NEW(rum, sizeof(struct rum_softc), rum_match, rum_attach,
rum_detach, rum_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_udav.c
--- a/sys/dev/usb/if_udav.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_udav.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_udav.c,v 1.56 2019/01/22 03:42:28 msaitoh Exp $ */
+/* $NetBSD: if_udav.c,v 1.57 2019/05/05 03:17:54 mrg Exp $ */
/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
/*
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.56 2019/01/22 03:42:28 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.57 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -90,7 +90,7 @@
void udav_attach(device_t, device_t, void *);
int udav_detach(device_t, int);
int udav_activate(device_t, enum devact);
-extern struct cfdriver udav_cd;
+
CFATTACH_DECL_NEW(udav, sizeof(struct udav_softc), udav_match, udav_attach,
udav_detach, udav_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_upl.c
--- a/sys/dev/usb/if_upl.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_upl.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_upl.c,v 1.62 2018/06/26 06:48:02 msaitoh Exp $ */
+/* $NetBSD: if_upl.c,v 1.63 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_upl.c,v 1.62 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_upl.c,v 1.63 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -176,7 +176,7 @@
void upl_attach(device_t, device_t, void *);
int upl_detach(device_t, int);
int upl_activate(device_t, enum devact);
-extern struct cfdriver upl_cd;
+
CFATTACH_DECL_NEW(upl, sizeof(struct upl_softc), upl_match, upl_attach,
upl_detach, upl_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_ural.c
--- a/sys/dev/usb/if_ural.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_ural.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ural.c,v 1.58 2018/09/03 16:29:33 riastradh Exp $ */
+/* $NetBSD: if_ural.c,v 1.59 2019/05/05 03:17:54 mrg Exp $ */
/* $FreeBSD: /repoman/r/ncvs/src/sys/dev/usb/if_ural.c,v 1.40 2006/06/02 23:14:40 sam Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ural.c,v 1.58 2018/09/03 16:29:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ural.c,v 1.59 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -339,7 +339,7 @@
void ural_attach(device_t, device_t, void *);
int ural_detach(device_t, int);
int ural_activate(device_t, enum devact);
-extern struct cfdriver ural_cd;
+
CFATTACH_DECL_NEW(ural, sizeof(struct ural_softc), ural_match, ural_attach,
ural_detach, ural_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_url.c
--- a/sys/dev/usb/if_url.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_url.c Sun May 05 03:17:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_url.c,v 1.62 2019/03/08 03:05:15 msaitoh Exp $ */
+/* $NetBSD: if_url.c,v 1.63 2019/05/05 03:17:54 mrg Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.62 2019/03/08 03:05:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.63 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -91,7 +91,7 @@
void url_attach(device_t, device_t, void *);
int url_detach(device_t, int);
int url_activate(device_t, enum devact);
-extern struct cfdriver url_cd;
+
CFATTACH_DECL_NEW(url, sizeof(struct url_softc), url_match, url_attach,
url_detach, url_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/if_zyd.c
--- a/sys/dev/usb/if_zyd.c Sun May 05 01:48:53 2019 +0000
+++ b/sys/dev/usb/if_zyd.c Sun May 05 03:17:54 2019 +0000
@@ -1,5 +1,5 @@
/* $OpenBSD: if_zyd.c,v 1.52 2007/02/11 00:08:04 jsg Exp $ */
-/* $NetBSD: if_zyd.c,v 1.51 2018/09/03 16:29:33 riastradh Exp $ */
+/* $NetBSD: if_zyd.c,v 1.52 2019/05/05 03:17:54 mrg Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_zyd.c,v 1.51 2018/09/03 16:29:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_zyd.c,v 1.52 2019/05/05 03:17:54 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -160,7 +160,7 @@
void zyd_attach(device_t, device_t, void *);
int zyd_detach(device_t, int);
int zyd_activate(device_t, enum devact);
-extern struct cfdriver zyd_cd;
+
CFATTACH_DECL_NEW(zyd, sizeof(struct zyd_softc), zyd_match,
zyd_attach, zyd_detach, zyd_activate);
diff -r 79f9eab44632 -r f5688f16e4c7 sys/dev/usb/stuirda.c
Home |
Main Index |
Thread Index |
Old Index