make it compile without "__BROKEN_INDIRECT_CONFIG"

This commit is contained in:
drochner 1997-11-30 15:31:23 +00:00
parent 4da2344b18
commit 805c7b6bc0
4 changed files with 45 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic_isa.c,v 1.4 1997/10/20 18:43:04 thorpej Exp $ */
/* $NetBSD: aic_isa.c,v 1.5 1997/11/30 15:31:23 drochner Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Charles M. Hannum. All rights reserved.
@ -73,7 +73,11 @@
#include <dev/ic/aic6360reg.h>
#include <dev/ic/aic6360var.h>
int aic_isa_probe __P((struct device *, void *, void *));
#ifdef __BROKEN_INDIRECT_CONFIG
int aic_isa_probe __P((struct device *, void *, void *));
#else
int aic_isa_probe __P((struct device *, struct cfdata *, void *));
#endif
struct aic_isa_softc {
struct aic_softc sc_aic; /* real "aic" softc */
@ -98,7 +102,12 @@ struct cfattach aic_isa_ca = {
int
aic_isa_probe(parent, match, aux)
struct device *parent;
void *match, *aux;
#ifdef __BROKEN_INDIRECT_CONFIG
void *match;
#else
struct cfdata *match;
#endif
void *aux;
{
struct isa_attach_args *ia = aux;
bus_space_tag_t iot = ia->ia_iot;

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82365_isa.c,v 1.7 1997/11/05 21:41:36 thorpej Exp $ */
/* $NetBSD: i82365_isa.c,v 1.8 1997/11/30 15:31:24 drochner Exp $ */
#define PCICISADEBUG
@ -106,7 +106,11 @@ int pcicisa_debug = 0 /* XXX */ ;
#define DPRINTF(arg)
#endif
#ifdef __BROKEN_INDIRECT_CONFIG
int pcic_isa_probe __P((struct device *, void *, void *));
#else
int pcic_isa_probe __P((struct device *, struct cfdata *, void *));
#endif
void pcic_isa_attach __P((struct device *, struct device *, void *));
void *pcic_isa_chip_intr_establish __P((pcmcia_chipset_handle_t,
@ -138,7 +142,12 @@ static struct pcmcia_chip_functions pcic_isa_functions = {
int
pcic_isa_probe(parent, match, aux)
struct device *parent;
void *match, *aux;
#ifdef __BROKEN_INDIRECT_CONFIG
void *match;
#else
struct cfdata *match;
#endif
void *aux;
{
struct isa_attach_args *ia = aux;
bus_space_tag_t iot = ia->ia_iot;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_el.c,v 1.49 1997/10/15 05:59:26 explorer Exp $ */
/* $NetBSD: if_el.c,v 1.50 1997/11/30 15:31:25 drochner Exp $ */
/*
* Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted
@ -106,7 +106,11 @@ void elread __P((struct el_softc *, int));
struct mbuf *elget __P((struct el_softc *sc, int));
static inline void el_hardreset __P((struct el_softc *));
#ifdef __BROKEN_INDIRECT_CONFIG
int elprobe __P((struct device *, void *, void *));
#else
int elprobe __P((struct device *, struct cfdata *, void *));
#endif
void elattach __P((struct device *, struct device *, void *));
struct cfattach el_ca = {
@ -126,7 +130,12 @@ struct cfdriver el_cd = {
int
elprobe(parent, match, aux)
struct device *parent;
void *match, *aux;
#ifdef __BROKEN_INDIRECT_CONFIG
void *match;
#else
struct cfdata *match;
#endif
void *aux;
{
struct isa_attach_args *ia = aux;
bus_space_tag_t iot = ia->ia_iot;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iy.c,v 1.16 1997/10/20 18:43:14 thorpej Exp $ */
/* $NetBSD: if_iy.c,v 1.17 1997/11/30 15:31:26 drochner Exp $ */
/* #define IYDEBUG */
/* #define IYMEMDEBUG */
/*-
@ -153,7 +153,11 @@ int in_ifrint = 0;
int in_iftint = 0;
#endif
#ifdef __BROKEN_INDIRECT_CONFIG
int iyprobe __P((struct device *, void *, void *));
#else
int iyprobe __P((struct device *, struct cfdata *, void *));
#endif
void iyattach __P((struct device *, struct device *, void *));
static u_int16_t eepromread __P((bus_space_tag_t, bus_space_handle_t, int));
@ -175,7 +179,12 @@ static u_int8_t eepro_revirqmap[] = EEPP_RINTMAP;
int
iyprobe(parent, match, aux)
struct device *parent;
void *match, *aux;
#ifdef __BROKEN_INDIRECT_CONFIG
void *match;
#else
struct cfdata *match;
#endif
void *aux;
{
struct isa_attach_args *ia = aux;
u_int16_t eaddr[8];