From 378871cd2785706300da24fe218a8928f4f25242 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 4 Sep 2004 11:28:32 +0000 Subject: [PATCH] Include ioconf.h to declare struct cfdriver. --- sys/arch/news68k/dev/hb.c | 8 ++++---- sys/arch/news68k/dev/if_le.c | 7 ++++--- sys/arch/news68k/dev/kb_hb.c | 8 ++++---- sys/arch/news68k/dev/kbc.c | 8 ++++---- sys/arch/news68k/dev/mkclock_hb.c | 8 ++++---- sys/arch/news68k/dev/si.c | 7 ++++--- sys/arch/news68k/dev/timer_hb.c | 7 ++++--- sys/arch/news68k/dev/zs.c | 8 ++++---- 8 files changed, 32 insertions(+), 29 deletions(-) diff --git a/sys/arch/news68k/dev/hb.c b/sys/arch/news68k/dev/hb.c index 1aef4c440c66..e8a4f7811728 100644 --- a/sys/arch/news68k/dev/hb.c +++ b/sys/arch/news68k/dev/hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: hb.c,v 1.12 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: hb.c,v 1.13 2004/09/04 11:28:32 tsutsui Exp $ */ /*- * Copyright (C) 1999 Izumi Tsutsui. All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: hb.c,v 1.12 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hb.c,v 1.13 2004/09/04 11:28:32 tsutsui Exp $"); #include #include @@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: hb.c,v 1.12 2003/07/15 02:59:26 lukem Exp $"); #include #include +#include "ioconf.h" + static int hb_match(struct device *, struct cfdata *, void *); static void hb_attach(struct device *, struct device *, void *); static int hb_search(struct device *, struct cfdata *, void *); @@ -48,8 +50,6 @@ static int hb_print(void *, const char *); CFATTACH_DECL(hb, sizeof(struct device), hb_match, hb_attach, NULL, NULL); -extern struct cfdriver hb_cd; - static int hb_match(parent, cf, aux) struct device *parent; diff --git a/sys/arch/news68k/dev/if_le.c b/sys/arch/news68k/dev/if_le.c index 40aa696656ff..777961a4f69e 100644 --- a/sys/arch/news68k/dev/if_le.c +++ b/sys/arch/news68k/dev/if_le.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_le.c,v 1.8 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: if_le.c,v 1.9 2004/09/04 11:30:39 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_le.c,v 1.8 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_le.c,v 1.9 2004/09/04 11:30:39 tsutsui Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -70,6 +70,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_le.c,v 1.8 2003/07/15 02:59:26 lukem Exp $"); #include #include +#include "ioconf.h" + /* * LANCE registers. * The real stuff is in dev/ic/am7990reg.h @@ -212,7 +214,6 @@ leintr(unit) int unit; { struct am7990_softc *sc; - extern struct cfdriver le_cd; if (unit >= le_cd.cd_ndevs) return 0; diff --git a/sys/arch/news68k/dev/kb_hb.c b/sys/arch/news68k/dev/kb_hb.c index a0b30bbc347f..8927522a0b83 100644 --- a/sys/arch/news68k/dev/kb_hb.c +++ b/sys/arch/news68k/dev/kb_hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: kb_hb.c,v 1.5 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: kb_hb.c,v 1.6 2004/09/04 11:28:32 tsutsui Exp $ */ /* * Copyright (c) 2001 Izumi Tsutsui. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.5 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.6 2004/09/04 11:28:32 tsutsui Exp $"); #include #include @@ -48,6 +48,8 @@ __KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.5 2003/07/15 02:59:26 lukem Exp $"); #include +#include "ioconf.h" + #define KB_SIZE 0x10 /* XXX */ #define KB_PRI 5 @@ -62,8 +64,6 @@ CFATTACH_DECL(kb_hb, sizeof(struct kb_softc), struct console_softc kb_hb_conssc; -extern struct cfdriver kb_hb_cd; - int kb_hb_match(parent, cf, aux) struct device *parent; diff --git a/sys/arch/news68k/dev/kbc.c b/sys/arch/news68k/dev/kbc.c index e2a8c78e705c..42b2f08080be 100644 --- a/sys/arch/news68k/dev/kbc.c +++ b/sys/arch/news68k/dev/kbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: kbc.c,v 1.7 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: kbc.c,v 1.8 2004/09/04 11:28:32 tsutsui Exp $ */ /*- * Copyright (C) 2001 Izumi Tsutsui. All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.7 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.8 2004/09/04 11:28:32 tsutsui Exp $"); #include #include @@ -43,6 +43,8 @@ __KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.7 2003/07/15 02:59:26 lukem Exp $"); #include #include +#include "ioconf.h" + #define KBC_SIZE 0x10 /* XXX */ /* Definition of the driver for autoconfig. */ @@ -53,8 +55,6 @@ static int kbc_print(void *, const char *name); CFATTACH_DECL(kbc, sizeof(struct device), kbc_match, kbc_attach, NULL, NULL); -extern struct cfdriver kbc_cd; - static int kbc_match(parent, cf, aux) struct device *parent; struct cfdata *cf; diff --git a/sys/arch/news68k/dev/mkclock_hb.c b/sys/arch/news68k/dev/mkclock_hb.c index 23d73e8d7110..7f9be0017e9a 100644 --- a/sys/arch/news68k/dev/mkclock_hb.c +++ b/sys/arch/news68k/dev/mkclock_hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: mkclock_hb.c,v 1.8 2003/11/01 22:49:38 tsutsui Exp $ */ +/* $NetBSD: mkclock_hb.c,v 1.9 2004/09/04 11:28:32 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mkclock_hb.c,v 1.8 2003/11/01 22:49:38 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mkclock_hb.c,v 1.9 2004/09/04 11:28:32 tsutsui Exp $"); #include #include @@ -55,14 +55,14 @@ __KERNEL_RCSID(0, "$NetBSD: mkclock_hb.c,v 1.8 2003/11/01 22:49:38 tsutsui Exp $ #include +#include "ioconf.h" + int mkclock_hb_match(struct device *, struct cfdata *, void *); void mkclock_hb_attach(struct device *, struct device *, void *); CFATTACH_DECL(mkclock_hb, sizeof(struct mk48txx_softc), mkclock_hb_match, mkclock_hb_attach, NULL, NULL); -extern struct cfdriver mkclock_cd; - int mkclock_hb_match(parent, cf, aux) struct device *parent; diff --git a/sys/arch/news68k/dev/si.c b/sys/arch/news68k/dev/si.c index 7fc46df2fb3f..31d366882139 100644 --- a/sys/arch/news68k/dev/si.c +++ b/sys/arch/news68k/dev/si.c @@ -1,4 +1,4 @@ -/* $NetBSD: si.c,v 1.14 2004/08/13 12:54:44 tsutsui Exp $ */ +/* $NetBSD: si.c,v 1.15 2004/09/04 11:30:39 tsutsui Exp $ */ /* * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -45,7 +45,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: si.c,v 1.14 2004/08/13 12:54:44 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: si.c,v 1.15 2004/09/04 11:30:39 tsutsui Exp $"); #include #include @@ -64,6 +64,8 @@ __KERNEL_RCSID(0, "$NetBSD: si.c,v 1.14 2004/08/13 12:54:44 tsutsui Exp $"); #include #include +#include "ioconf.h" + #define MIN_DMA_LEN 128 #define DMAC_BASE 0xe0e80000 /* XXX */ #define SI_REGSIZE 8 @@ -210,7 +212,6 @@ si_intr(unit) int unit; { struct si_softc *sc; - extern struct cfdriver si_cd; if (unit >= si_cd.cd_ndevs) return 0; diff --git a/sys/arch/news68k/dev/timer_hb.c b/sys/arch/news68k/dev/timer_hb.c index 5ae67399ffa1..0520c6be25ba 100644 --- a/sys/arch/news68k/dev/timer_hb.c +++ b/sys/arch/news68k/dev/timer_hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: timer_hb.c,v 1.6 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: timer_hb.c,v 1.7 2004/09/04 11:28:32 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.6 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.7 2004/09/04 11:28:32 tsutsui Exp $"); #include #include @@ -56,6 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.6 2003/07/15 02:59:26 lukem Exp $"); #include +#include "ioconf.h" + /* * interrupt level for clock */ @@ -78,7 +80,6 @@ CFATTACH_DECL(timer_hb, sizeof(struct device), static volatile u_int8_t *ctrl_timer; /* XXX */ extern volatile u_char *ctrl_led; /* XXX */ -extern struct cfdriver timer_cd; int timer_hb_match(parent, cf, aux) diff --git a/sys/arch/news68k/dev/zs.c b/sys/arch/news68k/dev/zs.c index f88326ba5a37..fa7833efd163 100644 --- a/sys/arch/news68k/dev/zs.c +++ b/sys/arch/news68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $NetBSD: zs.c,v 1.18 2003/07/15 02:59:26 lukem Exp $ */ +/* $NetBSD: zs.c,v 1.19 2004/09/04 11:28:32 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -48,7 +48,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.18 2003/07/15 02:59:26 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.19 2004/09/04 11:28:32 tsutsui Exp $"); #include "opt_ddb.h" @@ -66,6 +66,8 @@ __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.18 2003/07/15 02:59:26 lukem Exp $"); #include +#include "ioconf.h" + int zs_getc(void *); void zs_putc(void *, int); @@ -151,8 +153,6 @@ static int zs_print(void *, const char *name); CFATTACH_DECL(zsc, sizeof(struct zsc_softc), zs_match, zs_attach, NULL, NULL); -extern struct cfdriver zsc_cd; - static int zshard(void *); void zssoft(void *); #if 0