Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isa Make 3C509[B] in ISA mode probed correctly on bi...



details:   https://anonhg.NetBSD.org/src/rev/73bd9d2e4256
branches:  trunk
changeset: 514414:73bd9d2e4256
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Sep 02 06:46:57 2001 +0000

description:
Make 3C509[B] in ISA mode probed correctly on big endian machines.

diffstat:

 sys/dev/isa/if_ep_isa.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r da380e3c0f6d -r 73bd9d2e4256 sys/dev/isa/if_ep_isa.c
--- a/sys/dev/isa/if_ep_isa.c   Sun Sep 02 05:53:38 2001 +0000
+++ b/sys/dev/isa/if_ep_isa.c   Sun Sep 02 06:46:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ep_isa.c,v 1.27 2001/07/08 17:55:50 thorpej Exp $   */
+/*     $NetBSD: if_ep_isa.c,v 1.28 2001/09/02 06:46:57 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -207,11 +207,11 @@
                if (slot == 0)
                        bus_space_write_1(iot, ioh, 0, TAG_ADAPTER + 0);
 
-               vendor = htons(epreadeeprom(iot, ioh, EEPROM_MFG_ID));
+               vendor = bswap16(epreadeeprom(iot, ioh, EEPROM_MFG_ID));
                if (vendor != MFG_ID)
                        continue;
 
-               model = htons(epreadeeprom(iot, ioh, EEPROM_PROD_ID));
+               model = bswap16(epreadeeprom(iot, ioh, EEPROM_PROD_ID));
                /*
                 * XXX: Add a new product id to check for other cards
                 * (3c515?) and fix the check in ep_isa_attach.



Home | Main Index | Thread Index | Old Index