Use CFATTACH_DECL().

This commit is contained in:
thorpej 2002-10-01 05:18:59 +00:00
parent b7e3052e30
commit fa165ee3fd
36 changed files with 121 additions and 163 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.8 2002/09/27 20:36:42 thorpej Exp $ */
/* $NetBSD: autoconf.c,v 1.9 2002/10/01 05:20:21 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -113,9 +113,8 @@ cpu_configure()
static int mainbus_match __P((struct device *, struct cfdata *, void *));
static void mainbus_attach __P((struct device *, struct device *, void *));
const struct cfattach mainbus_ca = {
sizeof(struct device), mainbus_match, mainbus_attach
};
CFATTACH_DECL(mainbus, sizeof(struct device),
mainbus_match, mainbus_attach, NULL, NULL)
/*
* Probe for the mainbus; always succeeds.

View File

@ -1,4 +1,4 @@
/* $NetBSD: vme_sun68k.c,v 1.4 2002/09/27 20:36:43 thorpej Exp $ */
/* $NetBSD: vme_sun68k.c,v 1.5 2002/10/01 05:20:21 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -101,9 +101,8 @@ static int sun68k_vme_dmamap_load_raw __P((bus_dma_tag_t, bus_dmamap_t,
paddr_t sun68k_vme_mmap_cookie __P((vme_addr_t, vme_am_t, bus_space_handle_t *));
const struct cfattach sun68kvme_ca = {
sizeof(struct sun68kvme_softc), sun68kvme_match, sun68kvme_attach
};
CFATTACH_DECL(sun68kvme, sizeof(struct sun68kvme_softc),
sun68kvme_match, sun68kvme_attach, NULL, NULL)
/*
* The VME bus logic on sun68k machines maps DMA requests in the first MB

View File

@ -1,4 +1,4 @@
/* $NetBSD: bi_mainbus.c,v 1.5 2002/09/27 20:36:43 thorpej Exp $ */
/* $NetBSD: bi_mainbus.c,v 1.6 2002/10/01 05:18:59 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -46,9 +46,8 @@
static int bi_mainbus_match __P((struct device *, struct cfdata *, void *));
static void bi_mainbus_attach __P((struct device *, struct device *, void *));
const struct cfattach bi_mainbus_ca = {
sizeof(struct bi_softc), bi_mainbus_match, bi_mainbus_attach
};
CFATTACH_DECL(bi_mainbus, sizeof(struct bi_softc),
bi_mainbus_match, bi_mainbus_attach, NULL, NULL)
extern struct vax_bus_space vax_mem_bus_space;
extern struct vax_bus_dma_tag vax_bus_dma_tag;

View File

@ -1,4 +1,4 @@
/* $NetBSD: bi_nmi.c,v 1.2 2002/09/27 20:36:44 thorpej Exp $ */
/* $NetBSD: bi_nmi.c,v 1.3 2002/10/01 05:18:59 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -102,6 +102,5 @@ bi_nmi_attach(struct device *parent, struct device *self, void *aux)
bi_attach(sc);
}
const struct cfattach bi_nmi_ca = {
sizeof(struct bi_softc), bi_nmi_match, bi_nmi_attach
};
CFATTACH_DECL(bi_nmi, sizeof(struct bi_softc),
bi_nmi_match, bi_nmi_attach, NULL, NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_de.c,v 1.37 2002/09/27 20:36:45 thorpej Exp $ */
/* $NetBSD: if_de.c,v 1.38 2002/10/01 05:19:00 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
@ -156,9 +156,8 @@ void de_setaddr __P((u_char *, struct de_softc *));
void deintr __P((int));
const struct cfattach de_ca = {
sizeof(struct de_softc), dematch, deattach
};
CFATTACH_DECL(de, sizeof(struct de_softc),
dematch, deattach, NULL, NULL)
extern struct cfdriver de_cd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.22 2002/09/27 20:36:46 thorpej Exp $ */
/* $NetBSD: if_le.c,v 1.23 2002/10/01 05:19:00 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -123,9 +123,8 @@ void lance_copytobuf_gap2 __P((struct lance_softc *, void *, int, int));
void lance_copyfrombuf_gap2 __P((struct lance_softc *, void *, int, int));
void lance_zerobuf_gap2 __P((struct lance_softc *, int, int));
const struct cfattach le_ibus_ca = {
sizeof(struct le_softc), le_ibus_match, le_ibus_attach
};
CFATTACH_DECL(le_ibus, sizeof(struct le_softc),
le_ibus_match, le_ibus_attach, NULL, NULL)
void
lewrcsr(ls, port, val)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_vsbus.c,v 1.13 2002/09/27 20:36:46 thorpej Exp $ */
/* $NetBSD: if_le_vsbus.c,v 1.14 2002/10/01 05:19:00 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -120,9 +120,8 @@ static void le_vsbus_attach __P((struct device *, struct device *, void *));
static void lewrcsr __P((struct lance_softc *, u_int16_t, u_int16_t));
static u_int16_t lerdcsr __P((struct lance_softc *, u_int16_t));
const struct cfattach le_vsbus_ca = {
sizeof(struct le_softc), le_vsbus_match, le_vsbus_attach
};
CFATTACH_DECL(le_vsbus, sizeof(struct le_softc),
le_vsbus_match, le_vsbus_attach, NULL, NULL)
static void
lewrcsr(ls, port, val)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ze.c,v 1.7 2002/09/27 20:36:47 thorpej Exp $ */
/* $NetBSD: if_ze.c,v 1.8 2002/10/01 05:19:00 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -70,9 +70,8 @@
static int zematch __P((struct device *, struct cfdata *, void *));
static void zeattach __P((struct device *, struct device *, void *));
const struct cfattach ze_ibus_ca = {
sizeof(struct ze_softc), zematch, zeattach
};
CFATTACH_DECL(ze_ibus, sizeof(struct ze_softc),
zematch, zeattach, NULL, NULL)
/*
* Check for present SGEC.

View File

@ -1,4 +1,4 @@
/* $NetBSD: hp.c,v 1.27 2002/09/27 20:36:48 thorpej Exp $ */
/* $NetBSD: hp.c,v 1.28 2002/10/01 05:19:00 thorpej Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -82,9 +82,8 @@ void hpstart(struct mba_device *);
int hpattn(struct mba_device *);
enum xfer_action hpfinish(struct mba_device *, int, int *);
const struct cfattach hp_ca = {
sizeof(struct hp_softc), hpmatch, hpattach
};
CFATTACH_DECL(hp, sizeof(struct hp_softc),
hpmatch, hpattach, NULL, NULL)
dev_type_open(hpopen);
dev_type_close(hpclose);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mba.c,v 1.27 2002/09/27 20:36:48 thorpej Exp $ */
/* $NetBSD: mba.c,v 1.28 2002/10/01 05:19:00 thorpej Exp $ */
/*
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -79,13 +79,11 @@ void mbaqueue(struct mba_device *);
void mbastart(struct mba_softc *);
void mbamapregs(struct mba_softc *);
const struct cfattach mba_cmi_ca = {
sizeof(struct mba_softc), mbamatch, mbaattach
};
CFATTACH_DECL(mba_cmi, sizeof(struct mba_softc),
mbamatch, mbaattach, NULL, NULL)
const struct cfattach mba_sbi_ca = {
sizeof(struct mba_softc), mbamatch, mbaattach
};
CFATTACH_DECL(mba_sbi, sizeof(struct mba_softc),
mbamatch, mbaattach, NULL, NULL)
#define MBA_WCSR(reg, val) \
bus_space_write_4(sc->sc_iot, sc->sc_ioh, (reg), (val))

View File

@ -1,4 +1,4 @@
/* $NetBSD: ts.c,v 1.21 2002/09/27 20:36:49 thorpej Exp $ */
/* $NetBSD: ts.c,v 1.22 2002/10/01 05:19:01 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -193,9 +193,8 @@ int tsmatch __P((struct device *, void *, void *));
void tsattach __P((struct device *, struct device *, void *));
void tsstrategy __P((struct buf *));
const struct cfattach ts_ca = {
sizeof(struct ts_softc), tsmatch, tsattach
};
CFATTACH_DECL(ts, sizeof(struct ts_softc),
tsmatch, tsattach, NULL, NULL)
extern struct cfdriver ts_cd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_cmi.c,v 1.8 2002/09/27 20:36:50 thorpej Exp $ */
/* $NetBSD: uba_cmi.c,v 1.9 2002/10/01 05:19:01 thorpej Exp $ */
/*
* Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -72,9 +72,8 @@ static void dw750_init(struct uba_softc*);
static void dw750_purge(struct uba_softc *, int);
#endif
const struct cfattach uba_cmi_ca = {
sizeof(struct uba_vsoftc), dw750_match, dw750_attach
};
CFATTACH_DECL(uba_cmi, sizeof(struct uba_vsoftc),
dw750_match, dw750_attach, NULL, NULL)
extern struct vax_bus_space vax_mem_bus_space;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_ibus.c,v 1.5 2002/09/27 20:36:50 thorpej Exp $ */
/* $NetBSD: uba_ibus.c,v 1.6 2002/10/01 05:19:01 thorpej Exp $ */
/*
* Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -70,9 +70,8 @@ static void qba_attach __P((struct device *, struct device *, void *));
static void qba_beforescan __P((struct uba_softc*));
static void qba_init __P((struct uba_softc*));
const struct cfattach uba_ibus_ca = {
sizeof(struct uba_vsoftc), qba_match, qba_attach
};
CFATTACH_DECL(uba_ibus, sizeof(struct uba_vsoftc),
qba_match, qba_attach, NULL, NULL)
extern struct vax_bus_space vax_mem_bus_space;
extern struct vax_bus_dma_tag vax_bus_dma_tag;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_mainbus.c,v 1.3 2002/09/27 20:36:51 thorpej Exp $ */
/* $NetBSD: uba_mainbus.c,v 1.4 2002/10/01 05:19:01 thorpej Exp $ */
/*
* Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -67,9 +67,8 @@ static void qba_attach __P((struct device *, struct device *, void *));
static void qba_beforescan __P((struct uba_softc*));
static void qba_init __P((struct uba_softc*));
const struct cfattach uba_mainbus_ca = {
sizeof(struct uba_vsoftc), qba_match, qba_attach
};
CFATTACH_DECL(uba_mainbus, sizeof(struct uba_vsoftc),
qba_match, qba_attach, NULL, NULL)
extern struct vax_bus_space vax_mem_bus_space;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_sbi.c,v 1.17 2002/09/27 20:36:51 thorpej Exp $ */
/* $NetBSD: uba_sbi.c,v 1.18 2002/10/01 05:19:01 thorpej Exp $ */
/*
* Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -99,9 +99,8 @@ static void ubaerror(struct uba_softc *, int *, int *);
static void dw780_purge(struct uba_softc *, int);
#endif
const struct cfattach uba_sbi_ca = {
sizeof(struct uba_vsoftc), dw780_match, dw780_attach
};
CFATTACH_DECL(uba_sbi, sizeof(struct uba_vsoftc),
dw780_match, dw780_attach, NULL, NULL)
static struct evcnt strayint = EVCNT_INITIALIZER(EVCNT_TYPE_INTR, NULL, "uba","stray intr");
static int strayinit = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.74 2002/09/27 20:36:52 thorpej Exp $ */
/* $NetBSD: autoconf.c,v 1.75 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -168,9 +168,8 @@ mainbus_attach(parent, self, hej)
}
const struct cfattach mainbus_ca = {
sizeof(struct device), mainbus_match, mainbus_attach
};
CFATTACH_DECL(mainbus, sizeof(struct device),
mainbus_match, mainbus_attach, NULL, NULL)
#include "sd.h"
#include "cd.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: cmi.c,v 1.4 2002/09/27 20:36:52 thorpej Exp $ */
/* $NetBSD: cmi.c,v 1.5 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -44,9 +44,8 @@ static int cmi_print(void *, const char *);
static int cmi_match(struct device *, struct cfdata *, void *);
static void cmi_attach(struct device *, struct device *, void*);
const struct cfattach cmi_ca = {
sizeof(struct device), cmi_match, cmi_attach
};
CFATTACH_DECL(cmi, sizeof(struct device),
cmi_match, cmi_attach, NULL, NULL)
int
cmi_print(void *aux, const char *name)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibus.c,v 1.8 2002/09/27 20:36:53 thorpej Exp $ */
/* $NetBSD: ibus.c,v 1.9 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -43,9 +43,8 @@ static int ibus_print(void *, const char *);
static int ibus_match(struct device *, struct cfdata *, void *);
static void ibus_attach(struct device *, struct device *, void*);
const struct cfattach ibus_ca = {
sizeof(struct device), ibus_match, ibus_attach
};
CFATTACH_DECL(ibus, sizeof(struct device),
ibus_match, ibus_attach, NULL, NULL)
int
ibus_print(void *aux, const char *name)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka6400.c,v 1.2 2002/09/27 20:36:53 thorpej Exp $ */
/* $NetBSD: ka6400.c,v 1.3 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@ -110,9 +110,8 @@ struct ka6400_softc {
int sc_nodeid; /* CPU node ID */
};
const struct cfattach cpu_xmi_ca = {
sizeof(struct ka6400_softc), ka6400_match, ka6400_attach
};
CFATTACH_DECL(cpu_xmi, sizeof(struct ka6400_softc),
ka6400_match, ka6400_attach, NULL, NULL)
static int
ka6400_match(struct device *parent, struct cfdata *cf, void *aux)
@ -197,9 +196,8 @@ struct mem_xmi_softc {
bus_space_handle_t sc_ioh;
};
const struct cfattach mem_xmi_ca = {
sizeof(struct mem_xmi_softc), ms6400_match, ms6400_attach
};
CFATTACH_DECL(mem_xmi, sizeof(struct mem_xmi_softc),
ms6400_match, ms6400_attach, NULL, NULL)
static int
ms6400_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka750.c,v 1.32 2002/09/27 20:36:54 thorpej Exp $ */
/* $NetBSD: ka750.c,v 1.33 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -97,9 +97,8 @@ ka750_conf()
static int ka750_memmatch(struct device *, struct cfdata *, void *);
static void ka750_memenable(struct device *, struct device *, void *);
const struct cfattach mem_cmi_ca = {
sizeof(struct device), ka750_memmatch, ka750_memenable
};
CFATTACH_DECL(mem_cmi, sizeof(struct device),
ka750_memmatch, ka750_memenable, NULL, NULL)
int
ka750_memmatch(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka780.c,v 1.18 2002/09/27 20:36:54 thorpej Exp $ */
/* $NetBSD: ka780.c,v 1.19 2002/10/01 05:19:02 thorpej Exp $ */
/*-
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
* All rights reserved.
@ -58,9 +58,8 @@ static int mem_sbi_match(struct device *, struct cfdata *, void *);
static void mem_sbi_attach(struct device *, struct device *, void *);
static int getsort(int type);
const struct cfattach mem_sbi_ca = {
sizeof(struct mem_softc), mem_sbi_match, mem_sbi_attach
};
CFATTACH_DECL(sbi, sizeof(struct mem_softc),
mem_sbi_match, mem_sbi_attach, NULL, NULL)
int
mem_sbi_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka820.c,v 1.32 2002/09/27 20:36:55 thorpej Exp $ */
/* $NetBSD: ka820.c,v 1.33 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
@ -131,9 +131,8 @@ struct ka820_softc {
int sc_binid; /* CPU node ID */
};
const struct cfattach cpu_bi_ca = {
sizeof(struct ka820_softc), ka820_match, ka820_attach
};
CFATTACH_DECL(cpu_bi, sizeof(struct ka820_softc),
ka820_match, ka820_attach, NULL, NULL)
#ifdef notyet
extern struct pte BRAMmap[];
@ -304,9 +303,8 @@ struct mem_bi_softc {
bus_space_handle_t sc_ioh;
};
const struct cfattach mem_bi_ca = {
sizeof(struct mem_bi_softc), ms820_match, ms820_attach
};
CFATTACH_DECL(mem_bi, sizeof(struct mem_bi_softc),
ms820_match, ms820_attach, NULL, NULL)
static int
ms820_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka860.c,v 1.18 2002/09/27 20:36:56 thorpej Exp $ */
/* $NetBSD: ka860.c,v 1.19 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 1986, 1988 Regents of the University of California.
* All rights reserved.
@ -346,9 +346,8 @@ static int abus_print __P((void *, const char *));
static int abus_match __P((struct device *, struct cfdata *, void *));
static void abus_attach __P((struct device *, struct device *, void*));
const struct cfattach abus_ca = {
sizeof(struct device), abus_match, abus_attach
};
CFATTACH_DECL(abus, sizeof(struct device),
abus_match, abus_attach, NULL, NULL)
/*
* Abus is the master bus on VAX 8600.

View File

@ -1,4 +1,4 @@
/* $NetBSD: ka88.c,v 1.3 2002/09/27 20:36:56 thorpej Exp $ */
/* $NetBSD: ka88.c,v 1.4 2002/10/01 05:19:02 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@ -155,9 +155,8 @@ ka88_attach(struct device *parent, struct device *self, void *aux)
curcpu()->ci_dev = self;
}
const struct cfattach cpu_nmi_ca = {
sizeof(struct ka88_softc), ka88_match, ka88_attach
};
CFATTACH_DECL(cpu_nmi, sizeof(struct ka88_softc),
ka88_match, ka88_attach, NULL, NULL)
struct mem_nmi_softc {
struct device sc_dev;
@ -184,9 +183,8 @@ ms88_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
}
const struct cfattach mem_nmi_ca = {
sizeof(struct mem_nmi_softc), ms88_match, ms88_attach
};
CFATTACH_DECL(mem_nmi, sizeof(struct mem_nmi_softc),
ms88_match, ms88_attach, NULL, NULL)
static void
ka88_badaddr(void)

View File

@ -1,4 +1,4 @@
/* $NetBSD: nmi_mainbus.c,v 1.2 2002/09/27 20:36:56 thorpej Exp $ */
/* $NetBSD: nmi_mainbus.c,v 1.3 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -118,6 +118,5 @@ nmi_mainbus_attach(struct device *parent, struct device *self, void *aux)
}
}
const struct cfattach nmi_mainbus_ca = {
sizeof(struct device), nmi_mainbus_match, nmi_mainbus_attach
};
CFATTACH_DECL(nmi_mainbus, sizeof(struct device),
nmi_mainbus_match, nmi_mainbus_attach, NULL, NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbi.c,v 1.24 2002/09/27 20:36:57 thorpej Exp $ */
/* $NetBSD: sbi.c,v 1.25 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -127,10 +127,8 @@ sbi_attach(struct device *parent, struct device *self, void *aux)
}
}
const struct cfattach sbi_mainbus_ca = {
sizeof(struct device), sbi_match, sbi_attach
};
CFATTACH_DECL(sbi_mainbus, sizeof(struct device),
sbi_match, sbi_attach, NULL, NULL)
const struct cfattach sbi_abus_ca = {
sizeof(struct device), sbi_match_abus, sbi_attach
};
CFATTACH_DECL(sbi_abus, sizeof(struct device),
sbi_match_abus, sbi_attach, NULL, NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: xmi_mainbus.c,v 1.2 2002/09/27 20:36:58 thorpej Exp $ */
/* $NetBSD: xmi_mainbus.c,v 1.3 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -45,9 +45,8 @@
static int xmi_mainbus_match __P((struct device *, struct cfdata *, void *));
static void xmi_mainbus_attach __P((struct device *, struct device *, void *));
const struct cfattach xmi_mainbus_ca = {
sizeof(struct xmi_softc), xmi_mainbus_match, xmi_mainbus_attach
};
CFATTACH_DECL(xmi_mainbus, sizeof(struct xmi_softc),
xmi_mainbus_match, xmi_mainbus_attach, NULL, NULL)
extern struct vax_bus_space vax_mem_bus_space;
extern struct vax_bus_dma_tag vax_bus_dma_tag;

View File

@ -1,4 +1,4 @@
/* $NetBSD: asc_vsbus.c,v 1.26 2002/09/27 20:36:58 thorpej Exp $ */
/* $NetBSD: asc_vsbus.c,v 1.27 2002/10/01 05:19:03 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -40,7 +40,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: asc_vsbus.c,v 1.26 2002/09/27 20:36:58 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: asc_vsbus.c,v 1.27 2002/10/01 05:19:03 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -105,9 +105,8 @@ struct asc_vsbus_softc {
static int asc_vsbus_match(struct device *, struct cfdata *, void *);
static void asc_vsbus_attach(struct device *, struct device *, void *);
const struct cfattach asc_vsbus_ca = {
sizeof(struct asc_vsbus_softc), asc_vsbus_match, asc_vsbus_attach
};
CFATTACH_DECL(asc_vsbus, sizeof(struct asc_vsbus_softc),
asc_vsbus_match, asc_vsbus_attach, NULL, NULL)
/*
* Functions and the switch for the MI code

View File

@ -1,4 +1,4 @@
/* $NetBSD: dz_ibus.c,v 1.27 2002/09/27 20:36:59 thorpej Exp $ */
/* $NetBSD: dz_ibus.c,v 1.28 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -67,9 +67,8 @@ static void dz_ibus_attach(struct device *, struct device *, void *);
static vaddr_t idz_regs; /* Used for console */
const struct cfattach dz_ibus_ca = {
sizeof(struct dz_softc), dz_ibus_match, dz_ibus_attach
};
CFATTACH_DECL(dz_ibus, sizeof(struct dz_softc),
dz_ibus_match, dz_ibus_attach, NULL, NULL)
#define REG(name) short name; short X##name##X;
static volatile struct ss_dz {/* base address of DZ-controller: 0x200A0000 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dz_vsbus.c,v 1.27 2002/09/27 20:36:59 thorpej Exp $ */
/* $NetBSD: dz_vsbus.c,v 1.28 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -74,9 +74,8 @@ static void dz_vsbus_attach(struct device *, struct device *, void *);
static vaddr_t dz_regs; /* Used for console */
const struct cfattach dz_vsbus_ca = {
sizeof(struct dz_softc), dz_vsbus_match, dz_vsbus_attach
};
CFATTACH_DECL(dz_vsbus, sizeof(struct dz_softc),
dz_vsbus_match, dz_vsbus_attach, NULL, NULL)
#define REG(name) short name; short X##name##X;
static volatile struct ss_dz {/* base address of DZ-controller: 0x200A0000 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdc9224.c,v 1.21 2002/09/27 20:37:00 thorpej Exp $ */
/* $NetBSD: hdc9224.c,v 1.22 2002/10/01 05:19:03 thorpej Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -181,13 +181,11 @@ static void hdc_writeregs(struct hdcsoftc *);
static void hdc_readregs(struct hdcsoftc *);
static void hdc_qstart(void *);
const struct cfattach hdc_ca = {
sizeof(struct hdcsoftc), hdcmatch, hdcattach
};
CFATTACH_DECL(hdc, sizeof(struct hdcsoftc),
hdcmatch, hdcattach, NULL, NULL)
const struct cfattach rd_ca = {
sizeof(struct rdsoftc), rdmatch, rdattach
};
CFATTACH_DECL(rd, sizeof(struct rdsoftc),
rdmatch, rdattach, NULL, NULL)
dev_type_open(rdopen);
dev_type_close(rdclose);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ze_vsbus.c,v 1.6 2002/09/27 20:37:01 thorpej Exp $ */
/* $NetBSD: if_ze_vsbus.c,v 1.7 2002/10/01 05:19:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -67,9 +67,8 @@
static int zematch(struct device *, struct cfdata *, void *);
static void zeattach(struct device *, struct device *, void *);
const struct cfattach ze_vsbus_ca = {
sizeof(struct ze_softc), zematch, zeattach
};
CFATTACH_DECL(ze_vsbus, sizeof(struct ze_softc),
zematch, zeattach, NULL, NULL)
/*
* Check for present SGEC.

View File

@ -1,4 +1,4 @@
/* $NetBSD: lkc.c,v 1.14 2002/09/27 20:37:02 thorpej Exp $ */
/* $NetBSD: lkc.c,v 1.15 2002/10/01 05:19:04 thorpej Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -60,9 +60,8 @@ struct lkc_softc {
int ls_lastchar; /* last key pressed (for repeat) */
};
const struct cfattach lkc_ca = {
sizeof(struct lkc_softc), lkc_match, lkc_attach,
};
CFATTACH_DECL(lkc, sizeof(struct lkc_softc),
lkc_match, lkc_attach, NULL, NULL)
int
lkc_match(parent, cf, aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr.c,v 1.37 2002/09/27 20:37:03 thorpej Exp $ */
/* $NetBSD: ncr.c,v 1.38 2002/10/01 05:19:04 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -114,9 +114,8 @@ static void si_dma_eop(struct ncr5380_softc *);
static void si_dma_stop(struct ncr5380_softc *);
static void si_dma_go(void *);
const struct cfattach si_vsbus_ca = {
sizeof(struct si_softc), si_vsbus_match, si_vsbus_attach
};
CFATTACH_DECL(si_vsbus, sizeof(struct si_softc),
si_vsbus_match, si_vsbus_attach, NULL, NULL)
static int
si_vsbus_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: smg.c,v 1.33 2002/09/27 20:37:04 thorpej Exp $ */
/* $NetBSD: smg.c,v 1.34 2002/10/01 05:19:04 thorpej Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -116,9 +116,8 @@ struct smg_softc {
struct device ss_dev;
};
const struct cfattach smg_ca = {
sizeof(struct smg_softc), smg_match, smg_attach,
};
CFATTACH_DECL(smg, sizeof(struct smg_softc),
smg_match, smg_attach, NULL, NULL)
static void smg_cursor(void *, int, int, int);
static int smg_mapchar(void *, int, unsigned int *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vsbus.c,v 1.37 2002/09/27 20:37:05 thorpej Exp $ */
/* $NetBSD: vsbus.c,v 1.38 2002/10/01 05:19:04 thorpej Exp $ */
/*
* Copyright (c) 1996, 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -97,9 +97,8 @@ static struct vax_bus_dma_tag vsbus_bus_dma_tag = {
extern struct vax_bus_space vax_mem_bus_space;
static SIMPLEQ_HEAD(, vsbus_dma) vsbus_dma;
const struct cfattach vsbus_ca = {
sizeof(struct vsbus_softc), vsbus_match, vsbus_attach
};
CFATTACH_DECL(vsbus, sizeof(struct vsbus_softc),
vsbus_match, vsbus_attach, NULL, NULL)
int
vsbus_print(aux, name)