diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-03-21 00:00:00 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-03-21 00:00:00 +0000 |
commit | c234ab332b695092844a92b20e8ede659abb9011 (patch) | |
tree | 5d673386e4336f07a23c966311912c16f29fba4e /sys/arch | |
parent | 8717bf526986fc5a9192b883d13c30516e7c0146 (diff) |
64-bit clean. if_ed.c now works on alpha.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/isa/if_isaed.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/arch/amiga/isa/if_isaed.c b/sys/arch/amiga/isa/if_isaed.c index 66ed20b1a85..9764f8fa096 100644 --- a/sys/arch/amiga/isa/if_isaed.c +++ b/sys/arch/amiga/isa/if_isaed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_isaed.c,v 1.15 1997/02/21 10:52:11 niklas Exp $ */ +/* $OpenBSD: if_isaed.c,v 1.16 1997/03/20 23:59:59 niklas Exp $ */ /* * Derived from sys/dev/isa/if_ed.c: @@ -144,7 +144,7 @@ void ed_shared_readmem __P((struct ed_softc *, int, caddr_t, int)); #define inline /* XXX for debugging porpoises */ -void isaed_getmcaf __P((struct arpcom *, u_long *)); +void isaed_getmcaf __P((struct arpcom *, u_int32_t *)); void edread __P((struct ed_softc *, int, int)); struct mbuf *edget __P((struct ed_softc *, int, int)); static inline void ed_rint __P((struct ed_softc *)); @@ -1614,7 +1614,7 @@ edinit(sc) struct ifnet *ifp = &sc->sc_arpcom.ac_if; int nicbase = sc->nic_base, asicbase = sc->asic_base; int i; - u_long mcaf[2]; + u_int32_t mcaf[2]; /* * Initialize the NIC in the exact order outlined in the NS manual. @@ -1692,7 +1692,8 @@ edinit(sc) /* Set multicast filter on chip. */ isaed_getmcaf(&sc->sc_arpcom, mcaf); for (i = 0; i < 8; i++) - NIC_PUT(iot, ioh, nicbase, ED_P1_MAR0 + i, ((u_char *)mcaf)[i]); + NIC_PUT(iot, ioh, nicbase, ED_P1_MAR0 + i, + ((u_char *)mcaf)[i]); /* * Set current page pointer to one page after the boundary pointer, as @@ -2713,12 +2714,12 @@ edget(sc, src, totlen) void isaed_getmcaf(ac, af) struct arpcom *ac; - u_long *af; + u_int32_t *af; { struct ifnet *ifp = &ac->ac_if; struct ether_multi *enm; register u_char *cp, c; - register u_long crc; + register u_int32_t crc; register int i, len; struct ether_multistep step; @@ -2759,7 +2760,8 @@ isaed_getmcaf(ac, af) for (len = sizeof(enm->enm_addrlo); --len >= 0;) { c = *cp++; for (i = 8; --i >= 0;) { - if (((crc & 0x80000000) ? 1 : 0) ^ (c & 0x01)) { + if (((crc & 0x80000000) ? 1 : 0) + ^ (c & 0x01)) { crc <<= 1; crc ^= 0x04c11db6 | 1; } else |