Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/iq80310 Fix typos in determing the ATU and P...



details:   https://anonhg.NetBSD.org/src/rev/9639cf4661a3
branches:  trunk
changeset: 517277:9639cf4661a3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Nov 09 22:47:48 2001 +0000

description:
Fix typos in determing the ATU and PPB bus numbers.

diffstat:

 sys/arch/evbarm/iq80310/iq80310_pci.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r de07291d4981 -r 9639cf4661a3 sys/arch/evbarm/iq80310/iq80310_pci.c
--- a/sys/arch/evbarm/iq80310/iq80310_pci.c     Fri Nov 09 21:00:04 2001 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_pci.c     Fri Nov 09 22:47:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_pci.c,v 1.1 2001/11/09 20:58:58 thorpej Exp $  */
+/*     $NetBSD: iq80310_pci.c,v 1.2 2001/11/09 22:47:48 thorpej Exp $  */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -101,8 +101,8 @@
         */
 
        reg = bus_space_read_4(sc->sc_st, sc->sc_ppb_sh, PPB_REG_BUSINFO);
-       pbus = PPB_BUSINFO_SECONDARY(pbus);
-       sbus = PPB_BUSINFO_SECONDARY(sbus);
+       pbus = PPB_BUSINFO_PRIMARY(reg);
+       sbus = PPB_BUSINFO_SECONDARY(reg);
 
        /*
         * XXX We don't know how to map interrupts on the Primary
@@ -144,7 +144,7 @@
 
        /* Now read the PPB's secondary bus number. */
        reg = pci_conf_read(pa->pa_pc, tag, PPB_REG_BUSINFO);
-       sbus = PPB_BUSINFO_SECONDARY(sbus);
+       sbus = PPB_BUSINFO_SECONDARY(reg);
 
        if (pa->pa_bus == sbus && pa->pa_device == 0 &&
            pa->pa_function == 0) {



Home | Main Index | Thread Index | Old Index