Include ioconf.h to declare struct cfdriver.
This commit is contained in:
parent
434117bcce
commit
378871cd27
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: hb.c,v 1.12 2003/07/15 02:59:26 lukem Exp $");
|
||||
#include <news68k/news68k/isr.h>
|
||||
#include <news68k/dev/hbvar.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <dev/ic/am7990reg.h>
|
||||
#include <dev/ic/am7990var.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -48,6 +48,8 @@ __KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.5 2003/07/15 02:59:26 lukem Exp $");
|
||||
|
||||
#include <news68k/news68k/isr.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -43,6 +43,8 @@ __KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.7 2003/07/15 02:59:26 lukem Exp $");
|
||||
#include <news68k/dev/hbvar.h>
|
||||
#include <news68k/dev/kbcvar.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -55,14 +55,14 @@ __KERNEL_RCSID(0, "$NetBSD: mkclock_hb.c,v 1.8 2003/11/01 22:49:38 tsutsui Exp $
|
||||
|
||||
#include <news68k/dev/hbvar.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -64,6 +64,8 @@ __KERNEL_RCSID(0, "$NetBSD: si.c,v 1.14 2004/08/13 12:54:44 tsutsui Exp $");
|
||||
#include <news68k/dev/hbvar.h>
|
||||
#include <news68k/dev/dmac_0266.h>
|
||||
|
||||
#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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -56,6 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.6 2003/07/15 02:59:26 lukem Exp $");
|
||||
|
||||
#include <news68k/dev/hbvar.h>
|
||||
|
||||
#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)
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <news68k/dev/hbvar.h>
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user