Include "ioconf.h" for struct cfdriver *_cd decls.

This commit is contained in:
tsutsui 2005-02-19 16:31:49 +00:00
parent 067a87d594
commit 31cb734598
7 changed files with 28 additions and 28 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf.c,v 1.56 2004/08/28 17:37:00 thorpej Exp $ */
/* $NetBSD: grf.c,v 1.57 2005/02/19 16:31:49 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.56 2004/08/28 17:37:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.57 2005/02/19 16:31:49 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -123,14 +123,14 @@ __KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.56 2004/08/28 17:37:00 thorpej Exp $");
#define iteoff(u,f)
#endif /* NITE > 0 */
#include "ioconf.h"
static int grfmatch(struct device *, struct cfdata *, void *);
static void grfattach(struct device *, struct device *, void *);
CFATTACH_DECL(grf, sizeof(struct grf_softc),
grfmatch, grfattach, NULL, NULL);
extern struct cfdriver grf_cd;
static dev_type_open(grfopen);
static dev_type_close(grfclose);
static dev_type_ioctl(grfioctl);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hil.c,v 1.64 2004/08/28 17:37:01 thorpej Exp $ */
/* $NetBSD: hil.c,v 1.65 2005/02/19 16:31:49 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hil.c,v 1.64 2004/08/28 17:37:01 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hil.c,v 1.65 2005/02/19 16:31:49 tsutsui Exp $");
#include "opt_compat_hpux.h"
#include "ite.h"
@ -113,6 +113,8 @@ __KERNEL_RCSID(0, "$NetBSD: hil.c,v 1.64 2004/08/28 17:37:01 thorpej Exp $");
#include <machine/bus.h>
#include <machine/cpu.h>
#include "ioconf.h"
static int hilmatch(struct device *, struct cfdata *, void *);
static void hilattach(struct device *, struct device *, void *);
@ -141,8 +143,6 @@ extern struct kbdmap kbd_map[];
/* symbolic sleep message strings */
static const char hilin[] = "hilin";
extern struct cfdriver hil_cd;
static dev_type_open(hilopen);
static dev_type_close(hilclose);
static dev_type_read(hilread);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpib.c,v 1.27 2004/08/28 17:37:01 thorpej Exp $ */
/* $NetBSD: hpib.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpib.c,v 1.27 2004/08/28 17:37:01 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpib.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -87,14 +87,14 @@ __KERNEL_RCSID(0, "$NetBSD: hpib.c,v 1.27 2004/08/28 17:37:01 thorpej Exp $");
#include <machine/cpu.h>
#include <machine/hp300spu.h>
#include "ioconf.h"
static int hpibbusmatch(struct device *, struct cfdata *, void *);
static void hpibbusattach(struct device *, struct device *, void *);
CFATTACH_DECL(hpibbus, sizeof(struct hpibbus_softc),
hpibbusmatch, hpibbusattach, NULL, NULL);
extern struct cfdriver hpibbus_cd;
static void hpibbus_attach_children(struct hpibbus_softc *);
static int hpibbussearch(struct device *, struct cfdata *, void *);
static int hpibbusprint(void *, const char *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ite.c,v 1.65 2004/08/28 17:37:01 thorpej Exp $ */
/* $NetBSD: ite.c,v 1.66 2005/02/19 16:31:49 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -119,7 +119,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.65 2004/08/28 17:37:01 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.66 2005/02/19 16:31:49 tsutsui Exp $");
#include "hil.h"
@ -144,6 +144,8 @@ __KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.65 2004/08/28 17:37:01 thorpej Exp $");
#include <hp300/dev/itevar.h>
#include <hp300/dev/kbdmap.h>
#include "ioconf.h"
#define set_attr(ip, attr) ((ip)->attribute |= (attr))
#define clr_attr(ip, attr) ((ip)->attribute &= ~(attr))
@ -164,8 +166,6 @@ CFATTACH_DECL(ite, sizeof(struct ite_softc),
/* XXX this has always been global, but shouldn't be */
static struct kbdmap *ite_km;
extern struct cfdriver ite_cd;
static dev_type_open(iteopen);
static dev_type_close(iteclose);
static dev_type_read(iteread);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mt.c,v 1.27 2004/10/28 07:07:36 yamt Exp $ */
/* $NetBSD: mt.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.27 2004/10/28 07:07:36 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -90,6 +90,8 @@ __KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.27 2004/10/28 07:07:36 yamt Exp $");
#include <hp300/dev/mtreg.h>
#include "ioconf.h"
static const struct mtinfo {
u_short hwid;
char *desc;
@ -140,8 +142,6 @@ static void mtattach(struct device *, struct device *, void *);
CFATTACH_DECL(mt, sizeof(struct mt_softc),
mtmatch, mtattach, NULL, NULL);
extern struct cfdriver mt_cd;
static dev_type_open(mtopen);
static dev_type_close(mtclose);
static dev_type_read(mtread);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppi.c,v 1.29 2004/08/28 17:37:02 thorpej Exp $ */
/* $NetBSD: ppi.c,v 1.30 2005/02/19 16:31:49 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.29 2004/08/28 17:37:02 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.30 2005/02/19 16:31:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -88,6 +88,8 @@ __KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.29 2004/08/28 17:37:02 thorpej Exp $");
#include <hp300/dev/ppiioctl.h>
#include "ioconf.h"
struct ppi_softc {
struct device sc_dev;
int sc_flags;
@ -115,8 +117,6 @@ static void ppiattach(struct device *, struct device *, void *);
CFATTACH_DECL(ppi, sizeof(struct ppi_softc),
ppimatch, ppiattach, NULL, NULL);
extern struct cfdriver ppi_cd;
static dev_type_open(ppiopen);
static dev_type_close(ppiclose);
static dev_type_read(ppiread);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rd.c,v 1.66 2005/02/05 16:19:35 chs Exp $ */
/* $NetBSD: rd.c,v 1.67 2005/02/19 16:31:49 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -117,7 +117,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.66 2005/02/05 16:19:35 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.67 2005/02/19 16:31:49 tsutsui Exp $");
#include "opt_useleds.h"
#include "rnd.h"
@ -148,6 +148,8 @@ __KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.66 2005/02/05 16:19:35 chs Exp $");
#include <hp300/hp300/leds.h>
#endif
#include "ioconf.h"
int rderrthresh = RDRETRY-1; /* when to start reporting errors */
#ifdef DEBUG
@ -318,8 +320,6 @@ static void rdattach(struct device *, struct device *, void *);
CFATTACH_DECL(rd, sizeof(struct rd_softc),
rdmatch, rdattach, NULL, NULL);
extern struct cfdriver rd_cd;
static dev_type_open(rdopen);
static dev_type_close(rdclose);
static dev_type_read(rdread);