diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-16 03:26:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-16 03:26:01 +0000 |
commit | fea5b69e4115c63ff4c12959a752e5064792a786 (patch) | |
tree | 6a21a8eb47161bed142d05b28cf9d6d7a3d891a6 /sys | |
parent | 58cff475e23a1e08b64aff413c9f13f19390eafb (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')
-rw-r--r-- | sys/dev/ic/dc.c | 6 |
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); } } |