Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic The EEPROM is little-endian.
details: https://anonhg.NetBSD.org/src/rev/70c2bbedc8c0
branches: trunk
changeset: 486519:70c2bbedc8c0
user: soren <soren%NetBSD.org@localhost>
date: Wed May 24 08:04:23 2000 +0000
description:
The EEPROM is little-endian.
diffstat:
sys/dev/ic/i82557.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 690c5d0e7c0a -r 70c2bbedc8c0 sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c Wed May 24 07:49:13 2000 +0000
+++ b/sys/dev/ic/i82557.c Wed May 24 08:04:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.29 2000/05/24 07:49:13 soren Exp $ */
+/* $NetBSD: i82557.c,v 1.30 2000/05/24 08:04:23 soren Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -666,6 +666,9 @@
}
CSR_WRITE_2(sc, FXP_CSR_EEPROMCONTROL, 0);
DELAY(1);
+
+ /* The EEPROM data is little-endian. */
+ data[i] = le16toh(data[i]);
}
}
Home |
Main Index |
Thread Index |
Old Index