Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Byte swap the EEPROM words on the PNIC. From St...
details: https://anonhg.NetBSD.org/src/rev/28868a60c492
branches: trunk
changeset: 475998:28868a60c492
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Sep 03 00:24:56 1999 +0000
description:
Byte swap the EEPROM words on the PNIC. From Stephen Ma.
diffstat:
sys/dev/pci/if_tlp_pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c3709605778e -r 28868a60c492 sys/dev/pci/if_tlp_pci.c
--- a/sys/dev/pci/if_tlp_pci.c Thu Sep 02 23:39:43 1999 +0000
+++ b/sys/dev/pci/if_tlp_pci.c Fri Sep 03 00:24:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tlp_pci.c,v 1.1 1999/09/01 00:32:42 thorpej Exp $ */
+/* $NetBSD: if_tlp_pci.c,v 1.2 1999/09/03 00:24:56 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -320,7 +320,7 @@
sc->sc_dev.dv_xname);
return;
}
- rombuf[i] = (val & PNIC_MIIROM_DATA);
+ rombuf[i] = bswap16(val & PNIC_MIIROM_DATA);
}
break;
Home |
Main Index |
Thread Index |
Old Index