summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-03-21 00:00:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-03-21 00:00:00 +0000
commitc234ab332b695092844a92b20e8ede659abb9011 (patch)
tree5d673386e4336f07a23c966311912c16f29fba4e /sys/dev/isa
parent8717bf526986fc5a9192b883d13c30516e7c0146 (diff)
64-bit clean. if_ed.c now works on alpha.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/if_ed.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index 1675ce44b5c..42670bbac83 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.26 1997/02/21 10:52:09 niklas Exp $ */
+/* $OpenBSD: if_ed.c,v 1.27 1997/03/20 23:59:58 niklas Exp $ */
/* $NetBSD: if_ed.c,v 1.105 1996/10/21 22:40:45 thorpej Exp $ */
/*
@@ -141,7 +141,7 @@ void ed_shared_readmem __P((struct ed_softc *, int, caddr_t, int));
#define inline /* XXX for debugging porpoises */
-void ed_getmcaf __P((struct arpcom *, u_long *));
+void ed_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 *));
@@ -1606,7 +1606,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.
@@ -1684,7 +1684,8 @@ edinit(sc)
/* Set multicast filter on chip. */
ed_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
@@ -2705,12 +2706,12 @@ edget(sc, src, totlen)
void
ed_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;
@@ -2751,7 +2752,8 @@ ed_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