aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-12-08 07:54:15 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-12-08 07:54:15 +0000
commita55a017f42cd3f75d68f3a79b0a8f051b37435b8 (patch)
treea76375ea757ab61d6de7a0c5ec2362d2e15d403f /sys/dev/ed
parenta5b5101f5eb625051381e7cd74ec05aa5f431842 (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 063e7bb0f2dbd..d34c395dfc4bc 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -104,7 +104,7 @@ static u_short ed_pio_write_mbufs(struct ed_softc *, struct mbuf *, int);
static void ed_setrcr (struct ed_softc *);
-static u_int32_t ds_mchash (caddr_t addr);
+static uint32_t ds_mchash (const uint8_t *);
/*
* Interrupt conversion table for WD/SMC ASIC/83C584
@@ -3531,14 +3531,14 @@ ed_setrcr(sc)
/*
* Compute crc for ethernet address
*/
-static u_int32_t
+static uint32_t
ds_mchash(addr)
- caddr_t addr;
+ const uint8_t *addr;
{
#define ED_POLYNOMIAL 0x04c11db6
- register u_int32_t crc = 0xffffffff;
+ register uint32_t crc = 0xffffffff;
register int carry, idx, bit;
- register u_char data;
+ register uint8_t data;
for (idx = 6; --idx >= 0;) {
for (data = *addr++, bit = 8; --bit >= 0; data >>=1 ) {