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/e5daa8150d45
branches:  trunk
changeset: 537360:e5daa8150d45
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Sep 30 21:31:52 2002 +0000

description:
Use CFATTACH_DECL().

diffstat:

 sys/dev/isapnp/aha_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/aic_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/com_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/ess_isapnp.c    |  10 ++++------
 sys/dev/isapnp/gus_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/i82365_isapnp.c |   9 ++++-----
 sys/dev/isapnp/if_an_isapnp.c  |   9 ++++-----
 sys/dev/isapnp/if_cs_isapnp.c  |  11 ++++-------
 sys/dev/isapnp/if_ep_isapnp.c  |   9 ++++-----
 sys/dev/isapnp/if_le_isapnp.c  |   9 ++++-----
 sys/dev/isapnp/if_ne_isapnp.c  |   9 ++++-----
 sys/dev/isapnp/if_tr_isapnp.c  |   9 ++++-----
 sys/dev/isapnp/isapnp.c        |   9 ++++-----
 sys/dev/isapnp/isic_isapnp.c   |   7 +++----
 sys/dev/isapnp/joy_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/mpu_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/sb_isapnp.c     |  10 ++++------
 sys/dev/isapnp/wdc_isapnp.c    |   9 ++++-----
 sys/dev/isapnp/wss_isapnp.c    |  10 ++++------
 sys/dev/isapnp/ym_isapnp.c     |  10 ++++------
 sys/dev/mca/aha_mca.c          |  10 ++++------
 sys/dev/mca/com_mca.c          |   9 ++++-----
 sys/dev/mca/ed_mca.c           |   9 ++++-----
 sys/dev/mca/edc_mca.c          |   9 ++++-----
 sys/dev/mca/esp_mca.c          |   8 +++-----
 sys/dev/mca/if_ate_mca.c       |   9 ++++-----
 sys/dev/mca/if_elmc_mca.c      |   9 ++++-----
 sys/dev/mca/if_ep_mca.c        |   9 ++++-----
 sys/dev/mca/if_le_mca.c        |   9 ++++-----
 sys/dev/mca/if_ne_mca.c        |   9 ++++-----
 sys/dev/mca/if_tr_mca.c        |   9 ++++-----
 sys/dev/mca/if_we_mca.c        |   9 ++++-----
 sys/dev/mca/mca.c              |   9 ++++-----
 33 files changed, 130 insertions(+), 171 deletions(-)

diffs (truncated from 975 to 300 lines):

diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/aha_isapnp.c
--- a/sys/dev/isapnp/aha_isapnp.c       Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/aha_isapnp.c       Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aha_isapnp.c,v 1.5 2002/09/27 20:38:59 thorpej Exp $   */
+/*     $NetBSD: aha_isapnp.c,v 1.6 2002/09/30 21:31:52 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aha_isapnp.c,v 1.5 2002/09/27 20:38:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aha_isapnp.c,v 1.6 2002/09/30 21:31:52 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,9 +63,8 @@
 int    aha_isapnp_probe __P((struct device *, struct cfdata *, void *));
 void   aha_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach aha_isapnp_ca = {
-       sizeof(struct aha_softc), aha_isapnp_probe, aha_isapnp_attach
-};
+CFATTACH_DECL(aha_isapnp, sizeof(struct aha_softc),
+    aha_isapnp_probe, aha_isapnp_attach, NULL, NULL)
 
 int
 aha_isapnp_probe(parent, match, aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/aic_isapnp.c
--- a/sys/dev/isapnp/aic_isapnp.c       Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/aic_isapnp.c       Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic_isapnp.c,v 1.7 2002/09/27 20:38:59 thorpej Exp $   */
+/*     $NetBSD: aic_isapnp.c,v 1.8 2002/09/30 21:31:52 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic_isapnp.c,v 1.7 2002/09/27 20:38:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic_isapnp.c,v 1.8 2002/09/30 21:31:52 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -67,9 +67,8 @@
 int    aic_isapnp_match __P((struct device *, struct cfdata *, void *));
 void   aic_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach aic_isapnp_ca = {
-       sizeof(struct aic_isapnp_softc), aic_isapnp_match, aic_isapnp_attach
-};
+CFATTACH_DECL(aic_isapnp, sizeof(struct aic_isapnp_softc),
+    aic_isapnp_match, aic_isapnp_attach, NULL, NULL)
 
 int
 aic_isapnp_match(parent, match, aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/com_isapnp.c
--- a/sys/dev/isapnp/com_isapnp.c       Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/com_isapnp.c       Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_isapnp.c,v 1.18 2002/09/27 20:39:00 thorpej Exp $  */
+/*     $NetBSD: com_isapnp.c,v 1.19 2002/09/30 21:31:53 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_isapnp.c,v 1.18 2002/09/27 20:39:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_isapnp.c,v 1.19 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -69,9 +69,8 @@
 int    com_isapnp_match __P((struct device *, struct cfdata *, void *));
 void   com_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach com_isapnp_ca = {
-       sizeof(struct com_isapnp_softc), com_isapnp_match, com_isapnp_attach
-};
+CFATTACH_DECL(com_isapnp, sizeof(struct com_isapnp_softc),
+    com_isapnp_match, com_isapnp_attach, NULL, NULL)
 
 int
 com_isapnp_match(parent, match, aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/ess_isapnp.c
--- a/sys/dev/isapnp/ess_isapnp.c       Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/ess_isapnp.c       Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ess_isapnp.c,v 1.8 2002/09/27 20:39:00 thorpej Exp $   */
+/*     $NetBSD: ess_isapnp.c,v 1.9 2002/09/30 21:31:53 thorpej Exp $   */
 
 /*
  * Copyright (c) 1991-1993 Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ess_isapnp.c,v 1.8 2002/09/27 20:39:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ess_isapnp.c,v 1.9 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,10 +64,8 @@
 int    ess_isapnp_match __P((struct device *, struct cfdata *, void *));
 void   ess_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach ess_isapnp_ca = {
-       sizeof(struct ess_softc), ess_isapnp_match, ess_isapnp_attach
-};
-
+CFATTACH_DECL(ess_isapnp, sizeof(struct ess_softc),
+    ess_isapnp_match, ess_isapnp_attach, NULL, NULL)
 
 /*
  * Probe / attach routines.
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/gus_isapnp.c
--- a/sys/dev/isapnp/gus_isapnp.c       Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/gus_isapnp.c       Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gus_isapnp.c,v 1.18 2002/09/27 20:39:01 thorpej Exp $  */
+/*     $NetBSD: gus_isapnp.c,v 1.19 2002/09/30 21:31:53 thorpej Exp $  */
 
 /*
  * Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gus_isapnp.c,v 1.18 2002/09/27 20:39:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gus_isapnp.c,v 1.19 2002/09/30 21:31:53 thorpej Exp $");
 
 #include "guspnp.h"
 #if NGUSPNP > 0
@@ -116,9 +116,8 @@
 
 
 
-const struct cfattach guspnp_ca = {
-       sizeof(struct iw_softc), gus_isapnp_match, gus_isapnp_attach
-};
+CFATTACH_DECL(guspnp, sizeof(struct iw_softc),
+    gus_isapnp_match, gus_isapnp_attach, NULL, NULL)
 
 extern struct cfdriver guspnp_cd;
 
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/i82365_isapnp.c
--- a/sys/dev/isapnp/i82365_isapnp.c    Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/i82365_isapnp.c    Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365_isapnp.c,v 1.13 2002/09/27 20:39:02 thorpej Exp $       */
+/*     $NetBSD: i82365_isapnp.c,v 1.14 2002/09/30 21:31:53 thorpej Exp $       */
 
 /*
  * Copyright (c) 1998 Bill Sommerfeld.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82365_isapnp.c,v 1.13 2002/09/27 20:39:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82365_isapnp.c,v 1.14 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -68,9 +68,8 @@
 int pcic_isapnp_match __P((struct device *, struct cfdata *, void *));
 void   pcic_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach pcic_isapnp_ca = {
-       sizeof(struct pcic_isa_softc), pcic_isapnp_match, pcic_isapnp_attach
-};
+CFATTACH_DECL(pcic_isapnp, sizeof(struct pcic_isa_softc),
+    pcic_isapnp_match, pcic_isapnp_attach, NULL, NULL)
 
 static struct pcmcia_chip_functions pcic_isa_functions = {
        pcic_chip_mem_alloc,
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/if_an_isapnp.c
--- a/sys/dev/isapnp/if_an_isapnp.c     Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/if_an_isapnp.c     Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_an_isapnp.c,v 1.5 2002/09/27 20:39:02 thorpej Exp $ */
+/*     $NetBSD: if_an_isapnp.c,v 1.6 2002/09/30 21:31:53 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_an_isapnp.c,v 1.5 2002/09/27 20:39:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_an_isapnp.c,v 1.6 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -84,9 +84,8 @@
        void    *sc_ih;                         /* interrupt cookie */
 };
 
-const struct cfattach an_isapnp_ca = {
-       sizeof(struct an_isapnp_softc), an_isapnp_match, an_isapnp_attach
-};
+CFATTACH_DECL(an_isapnp, sizeof(struct an_isapnp_softc),
+    an_isapnp_match, an_isapnp_attach, NULL, NULL)
 
 int
 an_isapnp_match(struct device *parent, struct cfdata *match, void *aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/if_cs_isapnp.c
--- a/sys/dev/isapnp/if_cs_isapnp.c     Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/if_cs_isapnp.c     Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cs_isapnp.c,v 1.3 2002/09/27 20:39:03 thorpej Exp $ */
+/* $NetBSD: if_cs_isapnp.c,v 1.4 2002/09/30 21:31:53 thorpej Exp $ */
 
 /*-
  * Copyright (c)2001 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.3 2002/09/27 20:39:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.4 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -60,11 +60,8 @@
 int cs_isapnp_match(struct device *, struct cfdata *, void *);
 void cs_isapnp_attach(struct device *, struct device *, void *);
 
-const struct cfattach cs_isapnp_ca = {
-       sizeof(struct cs_softc),
-       cs_isapnp_match,
-       cs_isapnp_attach
-};
+CFATTACH_DECL(cs_isapnp, sizeof(struct cs_softc),
+    cs_isapnp_match, cs_isapnp_attach, NULL, NULL)
 
 int
 cs_isapnp_match(parent, match, aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/if_ep_isapnp.c
--- a/sys/dev/isapnp/if_ep_isapnp.c     Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/if_ep_isapnp.c     Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ep_isapnp.c,v 1.23 2002/09/27 20:39:03 thorpej Exp $        */
+/*     $NetBSD: if_ep_isapnp.c,v 1.24 2002/09/30 21:31:53 thorpej Exp $        */
 
 /*
  * Copyright (c) 1997 Jonathan Stone <jonathan%NetBSD.org@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ep_isapnp.c,v 1.23 2002/09/27 20:39:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ep_isapnp.c,v 1.24 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,9 +66,8 @@
 int ep_isapnp_match __P((struct device *, struct cfdata *, void *));
 void ep_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach ep_isapnp_ca = {
-       sizeof(struct ep_softc), ep_isapnp_match, ep_isapnp_attach
-};
+CFATTACH_DECL(ep_isapnp, sizeof(struct ep_softc),
+    ep_isapnp_match, ep_isapnp_attach, NULL, NULL)
 
 int
 ep_isapnp_match(parent, match, aux)
diff -r 99dfe5cea415 -r e5daa8150d45 sys/dev/isapnp/if_le_isapnp.c
--- a/sys/dev/isapnp/if_le_isapnp.c     Mon Sep 30 21:17:57 2002 +0000
+++ b/sys/dev/isapnp/if_le_isapnp.c     Mon Sep 30 21:31:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le_isapnp.c,v 1.21 2002/09/27 20:39:04 thorpej Exp $        */
+/*     $NetBSD: if_le_isapnp.c,v 1.22 2002/09/30 21:31:53 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_le_isapnp.c,v 1.21 2002/09/27 20:39:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_le_isapnp.c,v 1.22 2002/09/30 21:31:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -107,9 +107,8 @@
 int le_isapnp_match __P((struct device *, struct cfdata *, void *));
 void le_isapnp_attach __P((struct device *, struct device *, void *));
 
-const struct cfattach le_isapnp_ca = {
-       sizeof(struct le_softc), le_isapnp_match, le_isapnp_attach
-};
+CFATTACH_DECL(le_isapnp, sizeof(struct le_softc),
+    le_isapnp_match, le_isapnp_attach, NULL, NULL)



Home | Main Index | Thread Index | Old Index