summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_we.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-10-20 16:54:02 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-10-20 16:54:02 +0000
commitbc84703e9f93bdc102d3416a6939ea7e4a505b0e (patch)
tree8f7cd9e47abc6104ca11ffb76c9e7958311c1726 /sys/dev/isa/if_we.c
parent33aae4888cee1d2168ee259a78d8df9d31b497e2 (diff)
ansi
Diffstat (limited to 'sys/dev/isa/if_we.c')
-rw-r--r--sys/dev/isa/if_we.c62
1 files changed, 17 insertions, 45 deletions
diff --git a/sys/dev/isa/if_we.c b/sys/dev/isa/if_we.c
index 0fefb38814a..37fbe057787 100644
--- a/sys/dev/isa/if_we.c
+++ b/sys/dev/isa/if_we.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_we.c,v 1.15 2006/10/01 20:51:36 brad Exp $ */
+/* $OpenBSD: if_we.c,v 1.16 2006/10/20 16:54:01 brad Exp $ */
/* $NetBSD: if_we.c,v 1.11 1998/07/05 06:49:14 jonathan Exp $ */
/*-
@@ -205,9 +205,7 @@ do { \
} while (0)
int
-we_probe(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+we_probe(struct device *parent, void *match, void *aux)
{
struct isa_attach_args *ia = aux;
struct cfdata *cf = match;
@@ -350,9 +348,7 @@ we_probe(parent, match, aux)
}
void
-we_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+we_attach(struct device *parent, struct device *self, void *aux)
{
struct we_softc *wsc = (struct we_softc *)self;
struct dp8390_softc *sc = &wsc->sc_dp8390;
@@ -572,8 +568,7 @@ we_attach(parent, self, aux)
}
int
-we_test_mem(sc)
- struct dp8390_softc *sc;
+we_test_mem(struct dp8390_softc *sc)
{
struct we_softc *wsc = (struct we_softc *)sc;
bus_space_tag_t memt = sc->sc_buft;
@@ -613,11 +608,7 @@ we_test_mem(sc)
* up to a word - ok as long as mbufs are word-sized.
*/
__inline void
-we_readmem(wsc, from, to, len)
- struct we_softc *wsc;
- int from;
- u_int8_t *to;
- int len;
+we_readmem(struct we_softc *wsc, int from, u_int8_t *to, int len)
{
bus_space_tag_t memt = wsc->sc_dp8390.sc_buft;
bus_space_handle_t memh = wsc->sc_dp8390.sc_bufh;
@@ -634,10 +625,7 @@ we_readmem(wsc, from, to, len)
}
int
-we_write_mbuf(sc, m, buf)
- struct dp8390_softc *sc;
- struct mbuf *m;
- int buf;
+we_write_mbuf(struct dp8390_softc *sc, struct mbuf *m, int buf)
{
struct we_softc *wsc = (struct we_softc *)sc;
bus_space_tag_t memt = wsc->sc_dp8390.sc_buft;
@@ -731,11 +719,7 @@ we_write_mbuf(sc, m, buf)
}
int
-we_ring_copy(sc, src, dst, amount)
- struct dp8390_softc *sc;
- int src;
- caddr_t dst;
- u_short amount;
+we_ring_copy(struct dp8390_softc *sc, int src, caddr_t dst, u_short amount)
{
struct we_softc *wsc = (struct we_softc *)sc;
u_short tmp_amount;
@@ -758,10 +742,8 @@ we_ring_copy(sc, src, dst, amount)
}
void
-we_read_hdr(sc, packet_ptr, packet_hdrp)
- struct dp8390_softc *sc;
- int packet_ptr;
- struct dp8390_ring *packet_hdrp;
+we_read_hdr(struct dp8390_softc *sc, int packet_ptr,
+ struct dp8390_ring *packet_hdrp)
{
struct we_softc *wsc = (struct we_softc *)sc;
@@ -773,8 +755,7 @@ we_read_hdr(sc, packet_ptr, packet_hdrp)
}
void
-we_recv_int(sc)
- struct dp8390_softc *sc;
+we_recv_int(struct dp8390_softc *sc)
{
struct we_softc *wsc = (struct we_softc *)sc;
@@ -816,8 +797,7 @@ we_media_init(struct dp8390_softc *sc)
}
int
-we_mediachange(sc)
- struct dp8390_softc *sc;
+we_mediachange(struct dp8390_softc *sc)
{
/*
@@ -830,9 +810,7 @@ we_mediachange(sc)
}
void
-we_mediastatus(sc, ifmr)
- struct dp8390_softc *sc;
- struct ifmediareq *ifmr;
+we_mediastatus(struct dp8390_softc *sc, struct ifmediareq *ifmr)
{
struct ifmedia *ifm = &sc->sc_media;
@@ -843,8 +821,7 @@ we_mediastatus(sc, ifmr)
}
void
-we_init_card(sc)
- struct dp8390_softc *sc;
+we_init_card(struct dp8390_softc *sc)
{
struct we_softc *wsc = (struct we_softc *)sc;
struct ifmedia *ifm = &sc->sc_media;
@@ -853,9 +830,7 @@ we_init_card(sc)
}
void
-we_set_media(wsc, media)
- struct we_softc *wsc;
- int media;
+we_set_media(struct we_softc *wsc, int media)
{
struct dp8390_softc *sc = &wsc->sc_dp8390;
bus_space_tag_t asict = wsc->sc_asict;
@@ -887,12 +862,9 @@ we_set_media(wsc, media)
}
const char *
-we_params(asict, asich, typep, memsizep, is16bitp, is790p)
- bus_space_tag_t asict;
- bus_space_handle_t asich;
- u_int8_t *typep;
- bus_size_t *memsizep;
- int *is16bitp, *is790p;
+we_params(bus_space_tag_t asict, bus_space_handle_t asich,
+ u_int8_t *typep, bus_size_t *memsizep, int *is16bitp,
+ int *is790p)
{
const char *typestr;
bus_size_t memsize;