summaryrefslogtreecommitdiff
path: root/sys/dev/ic/dc.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-16 03:26:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-16 03:26:01 +0000
commitfea5b69e4115c63ff4c12959a752e5064792a786 (patch)
tree6a21a8eb47161bed142d05b28cf9d6d7a3d891a6 /sys/dev/ic/dc.c
parent58cff475e23a1e08b64aff413c9f13f19390eafb (diff)
be more sane w/ byte swapping and leave the le archs at the same behaviour and give be archs a better chance at getting the correct mac address as tested on the mac and hppa where mac has an additional bug w/ the phy bit still remaining and hppa seems fine; jason@ ok
Diffstat (limited to 'sys/dev/ic/dc.c')
-rw-r--r--sys/dev/ic/dc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index fd4231492e6..afc38116793 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.60 2003/05/20 18:48:43 henning Exp $ */
+/* $OpenBSD: dc.c,v 1.61 2003/06/16 03:26:00 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -439,9 +439,9 @@ void dc_read_eeprom(sc, dest, off, cnt, swap)
dc_eeprom_getword(sc, off + i, &word);
ptr = (u_int16_t *)(dest + (i * 2));
if (swap)
- *ptr = ntohs(word);
+ *ptr = betoh16(word);
else
- *ptr = word;
+ *ptr = letoh16(word);
}
}