Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Use CFATTACH_DECL().
details: https://anonhg.NetBSD.org/src/rev/2e8ea8a53e59
branches: trunk
changeset: 537361:2e8ea8a53e59
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Sep 30 21:57:46 2002 +0000
description:
Use CFATTACH_DECL().
diffstat:
sys/dev/mii/acphy.c | 10 ++++------
sys/dev/mii/amhphy.c | 10 ++++------
sys/dev/mii/bmtphy.c | 10 ++++------
sys/dev/mii/brgphy.c | 10 ++++------
sys/dev/mii/dmphy.c | 10 ++++------
sys/dev/mii/exphy.c | 10 ++++------
sys/dev/mii/gentbi.c | 10 ++++------
sys/dev/mii/glxtphy.c | 10 ++++------
sys/dev/mii/gphyter.c | 10 ++++------
sys/dev/mii/icsphy.c | 10 ++++------
sys/dev/mii/inphy.c | 10 ++++------
sys/dev/mii/iophy.c | 10 ++++------
sys/dev/mii/lxtphy.c | 10 ++++------
sys/dev/mii/makphy.c | 10 ++++------
sys/dev/mii/nsphy.c | 10 ++++------
sys/dev/mii/nsphyter.c | 10 ++++------
sys/dev/mii/pnaphy.c | 10 ++++------
sys/dev/mii/qsphy.c | 10 ++++------
sys/dev/mii/sqphy.c | 10 ++++------
sys/dev/mii/tlphy.c | 10 ++++------
sys/dev/mii/tqphy.c | 10 ++++------
sys/dev/mii/ukphy.c | 10 ++++------
sys/dev/mii/urlphy.c | 10 ++++------
sys/dev/mscp/mscp_disk.c | 14 ++++++--------
sys/dev/mscp/mscp_subr.c | 9 ++++-----
sys/dev/mscp/mscp_tape.c | 9 ++++-----
sys/dev/mvme/clmpcc_pcctwo.c | 7 +++----
sys/dev/mvme/clock_pcctwo.c | 7 +++----
sys/dev/mvme/if_ie_mvme.c | 7 +++----
sys/dev/mvme/lpt_pcctwo.c | 7 +++----
sys/dev/mvme/osiop_pcctwo.c | 8 +++-----
sys/dev/ofisa/com_ofisa.c | 9 ++++-----
sys/dev/ofisa/ess_ofisa.c | 9 ++++-----
sys/dev/ofisa/if_cs_ofisa.c | 9 ++++-----
sys/dev/ofisa/joy_ofisa.c | 9 ++++-----
sys/dev/ofisa/lpt_ofisa.c | 9 ++++-----
sys/dev/ofisa/ofisa.c | 9 ++++-----
sys/dev/ofisa/pckbc_ofisa.c | 9 ++++-----
sys/dev/ofisa/sb_ofisa.c | 9 ++++-----
sys/dev/ofisa/wdc_ofisa.c | 9 ++++-----
sys/dev/ofw/ofbus.c | 9 ++++-----
sys/dev/ofw/ofcons.c | 9 ++++-----
sys/dev/ofw/ofdisk.c | 9 ++++-----
sys/dev/ofw/ofnet.c | 9 ++++-----
sys/dev/ofw/ofrtc.c | 9 ++++-----
sys/dev/pckbc/pckbd.c | 9 ++++-----
sys/dev/pckbc/pms.c | 9 ++++-----
sys/dev/pcmcia/aic_pcmcia.c | 10 ++++------
sys/dev/pcmcia/com_pcmcia.c | 10 ++++------
sys/dev/pcmcia/esl_pcmcia.c | 10 ++++------
sys/dev/pcmcia/esp_pcmcia.c | 10 ++++------
sys/dev/pcmcia/fdc_pcmcia.c | 9 ++++-----
sys/dev/pcmcia/if_an_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_awi_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_cnw.c | 11 ++++-------
sys/dev/pcmcia/if_cs_pcmcia.c | 13 ++++---------
sys/dev/pcmcia/if_ep_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_mbe_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_ne_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_ray.c | 11 ++++-------
sys/dev/pcmcia/if_sm_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_tr_pcmcia.c | 13 ++++---------
sys/dev/pcmcia/if_wi_pcmcia.c | 10 ++++------
sys/dev/pcmcia/if_xi.c | 13 ++++---------
sys/dev/pcmcia/isic_pcmcia.c | 9 ++++-----
sys/dev/pcmcia/mhzc.c | 22 ++++++++--------------
sys/dev/pcmcia/nca_pcmcia.c | 10 ++++------
sys/dev/pcmcia/opl_esl.c | 10 ++++------
sys/dev/pcmcia/pcmcia.c | 9 ++++-----
sys/dev/pcmcia/pcmcom.c | 16 ++++++----------
sys/dev/pcmcia/wdc_pcmcia.c | 10 ++++------
sys/dev/podulebus/acemidi.c | 14 ++++++--------
sys/dev/podulebus/dtide.c | 9 ++++-----
sys/dev/podulebus/hcide.c | 9 ++++-----
sys/dev/podulebus/hcsc.c | 9 ++++-----
sys/dev/podulebus/if_ea.c | 9 ++++-----
sys/dev/podulebus/if_eb.c | 9 ++++-----
sys/dev/podulebus/if_ei.c | 9 ++++-----
sys/dev/podulebus/oak.c | 9 ++++-----
sys/dev/qbus/dhu.c | 9 ++++-----
sys/dev/qbus/dl.c | 9 ++++-----
sys/dev/qbus/dz_uba.c | 9 ++++-----
sys/dev/qbus/if_de.c | 9 ++++-----
sys/dev/qbus/if_dmc.c | 9 ++++-----
sys/dev/qbus/if_il.c | 9 ++++-----
sys/dev/qbus/if_qe.c | 9 ++++-----
sys/dev/qbus/qd.c | 9 ++++-----
sys/dev/qbus/rl.c | 14 ++++++--------
sys/dev/qbus/ts.c | 9 ++++-----
sys/dev/qbus/uda.c | 14 ++++++--------
90 files changed, 369 insertions(+), 525 deletions(-)
diffs (truncated from 2776 to 300 lines):
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/acphy.c
--- a/sys/dev/mii/acphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/acphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acphy.c,v 1.8 2002/09/27 20:39:18 thorpej Exp $ */
+/* $NetBSD: acphy.c,v 1.9 2002/09/30 21:57:46 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acphy.c,v 1.8 2002/09/27 20:39:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acphy.c,v 1.9 2002/09/30 21:57:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -61,10 +61,8 @@
int acphymatch(struct device *, struct cfdata *, void *);
void acphyattach(struct device *, struct device *, void *);
-const struct cfattach acphy_ca = {
- sizeof(struct mii_softc), acphymatch, acphyattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(acphy, sizeof(struct mii_softc),
+ acphymatch, acphyattach, mii_phy_detach, mii_phy_activate)
int acphy_service(struct mii_softc *, struct mii_data *, int);
void acphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/amhphy.c
--- a/sys/dev/mii/amhphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/amhphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amhphy.c,v 1.6 2002/09/27 20:39:18 thorpej Exp $ */
+/* $NetBSD: amhphy.c,v 1.7 2002/09/30 21:57:46 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amhphy.c,v 1.6 2002/09/27 20:39:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amhphy.c,v 1.7 2002/09/30 21:57:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -61,10 +61,8 @@
int amhphymatch(struct device *, struct cfdata *, void *);
void amhphyattach(struct device *, struct device *, void *);
-const struct cfattach amhphy_ca = {
- sizeof(struct mii_softc), amhphymatch, amhphyattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(amhphy, sizeof(struct mii_softc),
+ amhphymatch, amhphyattach, mii_phy_detach, mii_phy_activate)
int amhphy_service(struct mii_softc *, struct mii_data *, int);
void amhphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/bmtphy.c
--- a/sys/dev/mii/bmtphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/bmtphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bmtphy.c,v 1.9 2002/09/27 20:39:19 thorpej Exp $ */
+/* $NetBSD: bmtphy.c,v 1.10 2002/09/30 21:57:46 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bmtphy.c,v 1.9 2002/09/27 20:39:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bmtphy.c,v 1.10 2002/09/30 21:57:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -94,10 +94,8 @@
int bmtphymatch(struct device *, struct cfdata *, void *);
void bmtphyattach(struct device *, struct device *, void *);
-const struct cfattach bmtphy_ca = {
- sizeof(struct mii_softc), bmtphymatch, bmtphyattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(bmtphy, sizeof(struct mii_softc),
+ bmtphymatch, bmtphyattach, mii_phy_detach, mii_phy_activate)
int bmtphy_service(struct mii_softc *, struct mii_data *, int);
void bmtphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/brgphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brgphy.c,v 1.11 2002/09/27 20:39:19 thorpej Exp $ */
+/* $NetBSD: brgphy.c,v 1.12 2002/09/30 21:57:46 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.11 2002/09/27 20:39:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.12 2002/09/30 21:57:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -95,10 +95,8 @@
int brgphymatch(struct device *, struct cfdata *, void *);
void brgphyattach(struct device *, struct device *, void *);
-const struct cfattach brgphy_ca = {
- sizeof(struct mii_softc), brgphymatch, brgphyattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(brgphy, sizeof(struct mii_softc),
+ brgphymatch, brgphyattach, mii_phy_detach, mii_phy_activate)
int brgphy_service(struct mii_softc *, struct mii_data *, int);
void brgphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/dmphy.c
--- a/sys/dev/mii/dmphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/dmphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmphy.c,v 1.15 2002/09/27 20:39:20 thorpej Exp $ */
+/* $NetBSD: dmphy.c,v 1.16 2002/09/30 21:57:47 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmphy.c,v 1.15 2002/09/27 20:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmphy.c,v 1.16 2002/09/30 21:57:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -93,10 +93,8 @@
int dmphymatch(struct device *, struct cfdata *, void *);
void dmphyattach(struct device *, struct device *, void *);
-const struct cfattach dmphy_ca = {
- sizeof(struct mii_softc), dmphymatch, dmphyattach, mii_phy_detach,
- mii_phy_activate
-};
+CFATTACH_DECL(dmphy, sizeof(struct mii_softc),
+ dmphymatch, dmphyattach, mii_phy_detach, mii_phy_activate)
int dmphy_service(struct mii_softc *, struct mii_data *, int);
void dmphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/exphy.c
--- a/sys/dev/mii/exphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/exphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exphy.c,v 1.32 2002/09/27 20:39:20 thorpej Exp $ */
+/* $NetBSD: exphy.c,v 1.33 2002/09/30 21:57:47 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exphy.c,v 1.32 2002/09/27 20:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exphy.c,v 1.33 2002/09/30 21:57:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -89,10 +89,8 @@
int exphymatch(struct device *, struct cfdata *, void *);
void exphyattach(struct device *, struct device *, void *);
-const struct cfattach exphy_ca = {
- sizeof(struct mii_softc), exphymatch, exphyattach, mii_phy_detach,
- mii_phy_activate
-};
+CFATTACH_DECL(exphy, sizeof(struct mii_softc),
+ exphymatch, exphyattach, mii_phy_detach, mii_phy_activate)
int exphy_service(struct mii_softc *, struct mii_data *, int);
void exphy_reset(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/gentbi.c
--- a/sys/dev/mii/gentbi.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/gentbi.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gentbi.c,v 1.7 2002/09/27 20:39:20 thorpej Exp $ */
+/* $NetBSD: gentbi.c,v 1.8 2002/09/30 21:57:47 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gentbi.c,v 1.7 2002/09/27 20:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gentbi.c,v 1.8 2002/09/30 21:57:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -93,10 +93,8 @@
int gentbimatch(struct device *, struct cfdata *, void *);
void gentbiattach(struct device *, struct device *, void *);
-const struct cfattach gentbi_ca = {
- sizeof(struct mii_softc), gentbimatch, gentbiattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(gentbi, sizeof(struct mii_softc),
+ gentbimatch, gentbiattach, mii_phy_detach, mii_phy_activate)
int gentbi_service(struct mii_softc *, struct mii_data *, int);
void gentbi_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/glxtphy.c
--- a/sys/dev/mii/glxtphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/glxtphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: glxtphy.c,v 1.6 2002/09/27 20:39:21 thorpej Exp $ */
+/* $NetBSD: glxtphy.c,v 1.7 2002/09/30 21:57:47 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: glxtphy.c,v 1.6 2002/09/27 20:39:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: glxtphy.c,v 1.7 2002/09/30 21:57:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,10 +92,8 @@
int glxtphymatch(struct device *, struct cfdata *, void *);
void glxtphyattach(struct device *, struct device *, void *);
-const struct cfattach glxtphy_ca = {
- sizeof(struct mii_softc), glxtphymatch, glxtphyattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(glxtphy, sizeof(struct mii_softc),
+ glxtphymatch, glxtphyattach, mii_phy_detach, mii_phy_activate)
int glxtphy_service(struct mii_softc *, struct mii_data *, int);
void glxtphy_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/gphyter.c
--- a/sys/dev/mii/gphyter.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/gphyter.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gphyter.c,v 1.9 2002/09/27 20:39:21 thorpej Exp $ */
+/* $NetBSD: gphyter.c,v 1.10 2002/09/30 21:57:47 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gphyter.c,v 1.9 2002/09/27 20:39:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gphyter.c,v 1.10 2002/09/30 21:57:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -96,10 +96,8 @@
int gphytermatch(struct device *, struct cfdata *, void *);
void gphyterattach(struct device *, struct device *, void *);
-const struct cfattach gphyter_ca = {
- sizeof(struct mii_softc), gphytermatch, gphyterattach,
- mii_phy_detach, mii_phy_activate
-};
+CFATTACH_DECL(gphyter, sizeof(struct mii_softc),
+ gphytermatch, gphyterattach, mii_phy_detach, mii_phy_activate)
int gphyter_service(struct mii_softc *, struct mii_data *, int);
void gphyter_status(struct mii_softc *);
diff -r e5daa8150d45 -r 2e8ea8a53e59 sys/dev/mii/icsphy.c
--- a/sys/dev/mii/icsphy.c Mon Sep 30 21:31:52 2002 +0000
+++ b/sys/dev/mii/icsphy.c Mon Sep 30 21:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icsphy.c,v 1.28 2002/09/27 20:39:21 thorpej Exp $ */
+/* $NetBSD: icsphy.c,v 1.29 2002/09/30 21:57:48 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icsphy.c,v 1.28 2002/09/27 20:39:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icsphy.c,v 1.29 2002/09/30 21:57:48 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,10 +92,8 @@
int icsphymatch(struct device *, struct cfdata *, void *);
void icsphyattach(struct device *, struct device *, void *);
Home |
Main Index |
Thread Index |
Old Index