diff options
| author | christos <christos@NetBSD.org> | 1996-05-05 19:49:51 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1996-05-05 19:49:51 +0000 |
| commit | d21e608c6be42a6aa62b68692e4b0263f8dbbd62 (patch) | |
| tree | 4320b0512ed205c84647aae3d75abcb5e0b4b455 /sys/dev | |
| parent | 079631f59daa99b966de546b2125090a7849387c (diff) | |
Make those compile again; they were missing a declaration for bc.
Also fix prototypes.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isa/ast.c | 16 | ||||
| -rw-r--r-- | sys/dev/isa/boca.c | 15 | ||||
| -rw-r--r-- | sys/dev/isa/rtfps.c | 16 |
3 files changed, 27 insertions, 20 deletions
diff --git a/sys/dev/isa/ast.c b/sys/dev/isa/ast.c index 222fcf60711..418f297f79e 100644 --- a/sys/dev/isa/ast.c +++ b/sys/dev/isa/ast.c @@ -1,4 +1,4 @@ -/* $NetBSD: ast.c,v 1.26 1996/04/15 18:55:23 cgd Exp $ */ +/* $NetBSD: ast.c,v 1.27 1996/05/05 19:49:54 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -34,6 +34,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/device.h> #include <sys/termios.h> @@ -62,9 +63,10 @@ struct ast_softc { bus_io_handle_t sc_slaveioh[NSLAVES]; }; -int astprobe(); -void astattach(); +int astprobe __P((struct device *, void *, void *)); +void astattach __P((struct device *, struct device *, void *)); int astintr __P((void *)); +int astprint __P((void *, char *)); struct cfattach ast_ca = { sizeof(struct ast_softc), astprobe, astattach @@ -76,7 +78,8 @@ struct cfdriver ast_cd = { int astprobe(parent, self, aux) - struct device *parent, *self; + struct device *parent; + void *self; void *aux; { struct isa_attach_args *ia = aux; @@ -146,7 +149,8 @@ astattach(parent, self, aux) struct ast_softc *sc = (void *)self; struct isa_attach_args *ia = aux; struct commulti_attach_args ca; - int i, subunit; + bus_chipset_tag_t bc = ia->ia_bc; + int i; sc->sc_bc = ia->ia_bc; sc->sc_iobase = ia->ia_iobase; @@ -164,8 +168,6 @@ astattach(parent, self, aux) printf("\n"); for (i = 0; i < NSLAVES; i++) { - struct cfdata *match; - ca.ca_slave = i; ca.ca_bc = sc->sc_bc; ca.ca_ioh = sc->sc_slaveioh[i]; diff --git a/sys/dev/isa/boca.c b/sys/dev/isa/boca.c index b3de267623c..3827517f914 100644 --- a/sys/dev/isa/boca.c +++ b/sys/dev/isa/boca.c @@ -1,4 +1,4 @@ -/* $NetBSD: boca.c,v 1.13 1996/04/15 18:55:28 cgd Exp $ */ +/* $NetBSD: boca.c,v 1.14 1996/05/05 19:49:55 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -34,6 +34,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/device.h> #include <sys/termios.h> @@ -62,9 +63,10 @@ struct boca_softc { bus_io_handle_t sc_slaveioh[NSLAVES]; }; -int bocaprobe(); -void bocaattach(); +int bocaprobe __P((struct device *, void *, void *)); +void bocaattach __P((struct device *, struct device *, void *)); int bocaintr __P((void *)); +int bocaprint __P((void *, char *)); struct cfattach boca_ca = { sizeof(struct boca_softc), bocaprobe, bocaattach, @@ -76,7 +78,8 @@ struct cfdriver boca_cd = { int bocaprobe(parent, self, aux) - struct device *parent, *self; + struct device *parent; + void *self; void *aux; { struct isa_attach_args *ia = aux; @@ -146,7 +149,8 @@ bocaattach(parent, self, aux) struct boca_softc *sc = (void *)self; struct isa_attach_args *ia = aux; struct commulti_attach_args ca; - int i, subunit; + bus_chipset_tag_t bc = ia->ia_bc; + int i; sc->sc_bc = ia->ia_bc; sc->sc_iobase = ia->ia_iobase; @@ -159,7 +163,6 @@ bocaattach(parent, self, aux) printf("\n"); for (i = 0; i < NSLAVES; i++) { - struct cfdata *match; ca.ca_slave = i; ca.ca_bc = sc->sc_bc; diff --git a/sys/dev/isa/rtfps.c b/sys/dev/isa/rtfps.c index a5ea46a3e3d..555c910111e 100644 --- a/sys/dev/isa/rtfps.c +++ b/sys/dev/isa/rtfps.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtfps.c,v 1.21 1996/04/15 18:55:31 cgd Exp $ */ +/* $NetBSD: rtfps.c,v 1.22 1996/05/05 19:49:51 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -34,6 +34,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/device.h> #include <sys/termios.h> @@ -64,9 +65,10 @@ struct rtfps_softc { bus_io_handle_t sc_slaveioh[NSLAVES]; }; -int rtfpsprobe(); -void rtfpsattach(); +int rtfpsprobe __P((struct device *, void *, void *)); +void rtfpsattach __P((struct device *, struct device *, void *)); int rtfpsintr __P((void *)); +int rtfpsprint __P((void *, char *)); struct cfattach rtfps_ca = { sizeof(struct rtfps_softc), rtfpsprobe, rtfpsattach @@ -78,7 +80,8 @@ struct cfdriver rtfps_cd = { int rtfpsprobe(parent, self, aux) - struct device *parent, *self; + struct device *parent; + void *self; void *aux; { struct isa_attach_args *ia = aux; @@ -154,7 +157,8 @@ rtfpsattach(parent, self, aux) IOBASEUNK, 0x2f2, 0x6f2, 0x6f3, IOBASEUNK, IOBASEUNK, IOBASEUNK, IOBASEUNK }; - int i, subunit; + bus_chipset_tag_t bc = ia->ia_bc; + int i; sc->sc_bc = ia->ia_bc; sc->sc_iobase = ia->ia_iobase; @@ -176,8 +180,6 @@ rtfpsattach(parent, self, aux) printf("\n"); for (i = 0; i < NSLAVES; i++) { - struct cfdata *match; - ca.ca_slave = i; ca.ca_bc = sc->sc_bc; ca.ca_ioh = sc->sc_slaveioh[i]; |
