Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Use CFATTACH_DECL().
details: https://anonhg.NetBSD.org/src/rev/614af5097f11
branches: trunk
changeset: 537491:614af5097f11
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Oct 02 02:00:07 2002 +0000
description:
Use CFATTACH_DECL().
diffstat:
sys/arch/sgimips/pci/macepci.c | 7 +++----
sys/dev/isa/addcom_isa.c | 9 ++++-----
sys/dev/isa/aha_isa.c | 9 ++++-----
sys/dev/isa/aic_isa.c | 9 ++++-----
sys/dev/isa/aria.c | 9 ++++-----
sys/dev/isa/ast.c | 9 ++++-----
sys/dev/isa/aztech.c | 7 +++----
sys/dev/isa/bha_isa.c | 9 ++++-----
sys/dev/isa/boca.c | 9 ++++-----
sys/dev/isa/cms.c | 9 ++++-----
sys/dev/isa/com_isa.c | 9 ++++-----
sys/dev/isa/com_multi.c | 9 ++++-----
sys/dev/isa/cy_isa.c | 9 ++++-----
sys/dev/isa/daic_isa.c | 7 +++----
sys/dev/isa/depca_isa.c | 9 ++++-----
sys/dev/isa/dpt_isa.c | 9 ++++-----
sys/dev/isa/ega.c | 9 ++++-----
sys/dev/isa/esp_isa.c | 9 ++++-----
sys/dev/isa/ess_isa.c | 9 ++++-----
sys/dev/isa/fd.c | 9 ++++-----
sys/dev/isa/fdc_isa.c | 9 ++++-----
sys/dev/isa/gus.c | 9 ++++-----
sys/dev/isa/i82365_isa.c | 9 ++++-----
sys/dev/isa/if_ai.c | 9 ++++-----
sys/dev/isa/if_ate.c | 9 ++++-----
sys/dev/isa/if_cs_isa.c | 9 ++++-----
sys/dev/isa/if_ec.c | 9 ++++-----
sys/dev/isa/if_ef.c | 9 ++++-----
sys/dev/isa/if_eg.c | 9 ++++-----
sys/dev/isa/if_el.c | 9 ++++-----
sys/dev/isa/if_ep_isa.c | 9 ++++-----
sys/dev/isa/if_fmv.c | 9 ++++-----
sys/dev/isa/if_ix.c | 9 ++++-----
sys/dev/isa/if_iy.c | 9 ++++-----
sys/dev/isa/if_lc_isa.c | 9 ++++-----
sys/dev/isa/if_le_isa.c | 24 +++++++++++++-----------
sys/dev/isa/if_ne_isa.c | 9 ++++-----
sys/dev/isa/if_ntwoc_isa.c | 11 +++++------
sys/dev/isa/if_sm_isa.c | 9 ++++-----
sys/dev/isa/if_tr_isa.c | 9 ++++-----
sys/dev/isa/if_we_isa.c | 9 ++++-----
sys/dev/isa/ioat66.c | 9 ++++-----
sys/dev/isa/isa.c | 9 ++++-----
sys/dev/isa/isic_isa.c | 7 +++----
sys/dev/isa/joy_isa.c | 9 ++++-----
sys/dev/isa/lm_isa.c | 9 ++++-----
sys/dev/isa/lpt_isa.c | 9 ++++-----
sys/dev/isa/mcd.c | 9 ++++-----
sys/dev/isa/midi_pcppi.c | 9 ++++-----
sys/dev/isa/moxa_isa.c | 9 ++++-----
sys/dev/isa/mpu_isa.c | 9 ++++-----
sys/dev/isa/mpu_sb.c | 9 ++++-----
sys/dev/isa/mpu_ym.c | 9 ++++-----
sys/dev/isa/nca_isa.c | 9 ++++-----
sys/dev/isa/nsclpcsio_isa.c | 9 ++++-----
sys/dev/isa/opl_ess.c | 9 ++++-----
sys/dev/isa/opl_isa.c | 9 ++++-----
sys/dev/isa/opl_sb.c | 9 ++++-----
sys/dev/isa/opl_wss.c | 9 ++++-----
sys/dev/isa/opl_ym.c | 9 ++++-----
sys/dev/isa/pas.c | 9 ++++-----
sys/dev/isa/pcdisplay.c | 9 ++++-----
sys/dev/isa/pckbc_isa.c | 9 ++++-----
sys/dev/isa/pcppi.c | 9 ++++-----
sys/dev/isa/pss.c | 24 ++++++++++--------------
sys/dev/isa/radiotrack.c | 7 +++----
sys/dev/isa/radiotrack2.c | 7 +++----
sys/dev/isa/rtfps.c | 9 ++++-----
sys/dev/isa/satlink.c | 9 ++++-----
sys/dev/isa/sb_isa.c | 9 ++++-----
sys/dev/isa/seagate.c | 9 ++++-----
sys/dev/isa/sf16fmr2.c | 7 +++----
sys/dev/isa/slhci_isa.c | 9 ++++-----
sys/dev/isa/spkr.c | 9 ++++-----
sys/dev/isa/tcic2_isa.c | 9 ++++-----
sys/dev/isa/tcom.c | 9 ++++-----
sys/dev/isa/uha_isa.c | 9 ++++-----
sys/dev/isa/vga_isa.c | 9 ++++-----
sys/dev/isa/wdc_isa.c | 9 ++++-----
sys/dev/isa/wds.c | 9 ++++-----
sys/dev/isa/wss_isa.c | 9 ++++-----
sys/dev/isa/wt.c | 9 ++++-----
82 files changed, 337 insertions(+), 419 deletions(-)
diffs (truncated from 2434 to 300 lines):
diff -r 5e7e82655977 -r 614af5097f11 sys/arch/sgimips/pci/macepci.c
--- a/sys/arch/sgimips/pci/macepci.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/arch/sgimips/pci/macepci.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: macepci.c,v 1.6 2002/09/27 20:35:21 thorpej Exp $ */
+/* $NetBSD: macepci.c,v 1.7 2002/10/02 02:00:07 thorpej Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -63,9 +63,8 @@
void macepci_conf_write(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
int macepci_intr(void *);
-const struct cfattach macepci_ca = {
- sizeof(struct macepci_softc), macepci_match, macepci_attach
-};
+CFATTACH_DECL(macepci, sizeof(struct macepci_softc),
+ macepci_match, macepci_attach, NULL, NULL);
static int
macepci_match(parent, match, aux)
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/addcom_isa.c
--- a/sys/dev/isa/addcom_isa.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/addcom_isa.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: addcom_isa.c,v 1.5 2002/09/27 20:38:13 thorpej Exp $ */
+/* $NetBSD: addcom_isa.c,v 1.6 2002/10/02 02:09:16 thorpej Exp $ */
/*
* Copyright (c) 2000 Michael Graff. All rights reserved.
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: addcom_isa.c,v 1.5 2002/09/27 20:38:13 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: addcom_isa.c,v 1.6 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -110,9 +110,8 @@
int addcomintr __P((void *));
int addcomprint __P((void *, const char *));
-const struct cfattach addcom_isa_ca = {
- sizeof(struct addcom_softc), addcomprobe, addcomattach,
-};
+CFATTACH_DECL(addcom_isa, sizeof(struct addcom_isa_softc),
+ addcomprobe, addcomattach, NULL, NULL);
int
addcomprobe(struct device *parent, struct cfdata *self, void *aux)
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/aha_isa.c
--- a/sys/dev/isa/aha_isa.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/aha_isa.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aha_isa.c,v 1.15 2002/09/27 20:38:14 thorpej Exp $ */
+/* $NetBSD: aha_isa.c,v 1.16 2002/10/02 02:09:16 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aha_isa.c,v 1.15 2002/09/27 20:38:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aha_isa.c,v 1.16 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -61,9 +61,8 @@
int aha_isa_probe __P((struct device *, struct cfdata *, void *));
void aha_isa_attach __P((struct device *, struct device *, void *));
-const struct cfattach aha_isa_ca = {
- sizeof(struct aha_softc), aha_isa_probe, aha_isa_attach
-};
+CFATTACH_DECL(aha_isa, sizeof(struct aha_isa_softc),
+ aha_isa_probe, aha_isa_attach, NULL, NULL);
/*
* Check the slots looking for a board we recognise
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/aic_isa.c
--- a/sys/dev/isa/aic_isa.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/aic_isa.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic_isa.c,v 1.11 2002/09/27 20:38:15 thorpej Exp $ */
+/* $NetBSD: aic_isa.c,v 1.12 2002/10/02 02:09:16 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Charles M. Hannum. All rights reserved.
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic_isa.c,v 1.11 2002/09/27 20:38:15 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic_isa.c,v 1.12 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -85,9 +85,8 @@
void *sc_ih; /* interrupt handler */
};
-const struct cfattach aic_isa_ca = {
- sizeof(struct aic_isa_softc), aic_isa_probe, aic_isa_attach
-};
+CFATTACH_DECL(aic_isa, sizeof(struct aic_isa_softc),
+ aic_isa_probe, aic_isa_attach, NULL, NULL);
/*
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/aria.c
--- a/sys/dev/isa/aria.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/aria.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aria.c,v 1.13 2002/09/27 20:38:16 thorpej Exp $ */
+/* $NetBSD: aria.c,v 1.14 2002/10/02 02:09:16 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1996, 1998 Roland C. Dowdeswell. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aria.c,v 1.13 2002/09/27 20:38:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aria.c,v 1.14 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -184,9 +184,8 @@
int aria_mixer_get_port __P((void *, mixer_ctrl_t *));
int aria_mixer_query_devinfo __P((void *, mixer_devinfo_t *));
-const struct cfattach aria_ca = {
- sizeof(struct aria_softc), ariaprobe, ariaattach
-};
+CFATTACH_DECL(aria, sizeof(struct aria_softc),
+ ariaprobe, ariaattach, NULL, NULL);
/* XXX temporary test for 1.3 */
#ifndef AudioNaux
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/ast.c
--- a/sys/dev/isa/ast.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/ast.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ast.c,v 1.49 2002/09/27 20:38:16 thorpej Exp $ */
+/* $NetBSD: ast.c,v 1.50 2002/10/02 02:09:16 thorpej Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.49 2002/09/27 20:38:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.50 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -69,9 +69,8 @@
int astintr __P((void *));
int astprint __P((void *, const char *));
-const struct cfattach ast_ca = {
- sizeof(struct ast_softc), astprobe, astattach
-};
+CFATTACH_DECL(ast, sizeof(struct ast_softc),
+ astprobe, astattach, NULL, NULL);
int
astprobe(parent, self, aux)
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/aztech.c
--- a/sys/dev/isa/aztech.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/aztech.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aztech.c,v 1.5 2002/09/27 20:38:17 thorpej Exp $ */
+/* $NetBSD: aztech.c,v 1.6 2002/10/02 02:09:16 thorpej Exp $ */
/* $OpenBSD: aztech.c,v 1.2 2001/12/05 10:27:06 mickey Exp $ */
/* $RuOBSD: aztech.c,v 1.11 2001/10/20 13:23:47 pva Exp $ */
@@ -100,9 +100,8 @@
struct lm700x_t lm;
};
-const struct cfattach az_ca = {
- sizeof(struct az_softc), az_probe, az_attach
-};
+CFATTACH_DECL(az, sizeof(struct az_softc),
+ az_probe, az_attach, NULL, NULL);
u_int az_find(bus_space_tag_t, bus_space_handle_t);
void az_set_mute(struct az_softc *);
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/bha_isa.c
--- a/sys/dev/isa/bha_isa.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/bha_isa.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bha_isa.c,v 1.22 2002/09/27 20:38:17 thorpej Exp $ */
+/* $NetBSD: bha_isa.c,v 1.23 2002/10/02 02:09:16 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bha_isa.c,v 1.22 2002/09/27 20:38:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bha_isa.c,v 1.23 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,9 +60,8 @@
int bha_isa_probe __P((struct device *, struct cfdata *, void *));
void bha_isa_attach __P((struct device *, struct device *, void *));
-const struct cfattach bha_isa_ca = {
- sizeof(struct bha_softc), bha_isa_probe, bha_isa_attach
-};
+CFATTACH_DECL(bha_isa, sizeof(struct bha_isa_softc),
+ bha_isa_probe, bha_isa_attach, NULL, NULL);
/*
* Check the slots looking for a board we recognise
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/boca.c
--- a/sys/dev/isa/boca.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/boca.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boca.c,v 1.37 2002/09/27 20:38:17 thorpej Exp $ */
+/* $NetBSD: boca.c,v 1.38 2002/10/02 02:09:16 thorpej Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: boca.c,v 1.37 2002/09/27 20:38:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: boca.c,v 1.38 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -73,9 +73,8 @@
void boca_fixup __P((void *));
int bocaprint __P((void *, const char *));
-const struct cfattach boca_ca = {
- sizeof(struct boca_softc), bocaprobe, bocaattach,
-};
+CFATTACH_DECL(boca, sizeof(struct boca_softc),
+ bocaprobe, bocaattach, NULL, NULL);
int
bocaprobe(parent, self, aux)
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/cms.c
--- a/sys/dev/isa/cms.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/cms.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cms.c,v 1.5 2002/09/27 20:38:18 thorpej Exp $ */
+/* $NetBSD: cms.c,v 1.6 2002/10/02 02:09:16 thorpej Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.5 2002/09/27 20:38:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.6 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -78,9 +78,8 @@
int cms_probe __P((struct device *, struct cfdata *, void *));
void cms_attach __P((struct device *, struct device *, void *));
-const struct cfattach cms_ca = {
- sizeof(struct cms_softc), cms_probe, cms_attach,
-};
+CFATTACH_DECL(cms, sizeof(struct cms_softc),
+ cms_probe, cms_attach, NULL, NULL);
int cms_open __P((midisyn *, int));
void cms_close __P((midisyn *));
diff -r 5e7e82655977 -r 614af5097f11 sys/dev/isa/com_isa.c
--- a/sys/dev/isa/com_isa.c Wed Oct 02 01:22:09 2002 +0000
+++ b/sys/dev/isa/com_isa.c Wed Oct 02 02:00:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com_isa.c,v 1.18 2002/09/27 20:38:18 thorpej Exp $ */
+/* $NetBSD: com_isa.c,v 1.19 2002/10/02 02:09:16 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_isa.c,v 1.18 2002/09/27 20:38:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_isa.c,v 1.19 2002/10/02 02:09:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index