Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Do not stop no matter when pci_mapreg_map fails ...



details:   https://anonhg.NetBSD.org/src/rev/d97d47410ae9
branches:  trunk
changeset: 477663:d97d47410ae9
user:      haya <haya%NetBSD.org@localhost>
date:      Wed Oct 27 00:48:36 1999 +0000

description:
Do not stop no matter when pci_mapreg_map fails to map bridge socket
registers.  When it fails, reset Socket Base Address register and map
registers using rbus.

diffstat:

 sys/dev/pci/pccbb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r f7ceecbbe428 -r d97d47410ae9 sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c       Tue Oct 26 22:32:44 1999 +0000
+++ b/sys/dev/pci/pccbb.c       Wed Oct 27 00:48:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccbb.c,v 1.4 1999/10/19 09:29:46 haya Exp $   */
+/*     $NetBSD: pccbb.c,v 1.5 1999/10/27 00:48:36 haya Exp $   */
 
 /*
  * Copyright (c) 1998 and 1999 HAYAKAWA Koichi.  All rights reserved.
@@ -426,7 +426,9 @@
                         &sockbase, NULL)) {
        printf("%s: can't map socket base address 0x%lx: io mode\n",
               sc->sc_dev.dv_xname, sockbase);
-       return;
+       /* give up... allocate register space via rbus. */
+       sc->sc_base_memh = 0;
+       pci_conf_write(pc, pa->pa_tag, PCI_SOCKBASE, 0);
       }
     } else {
       DPRINTF(("%s: socket base address 0x%lx",sc->sc_dev.dv_xname, sockbase));



Home | Main Index | Thread Index | Old Index