Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/i386/pci Pull up revision 1.34 (requested by t...



details:   https://anonhg.NetBSD.org/src/rev/0a211148b850
branches:  netbsd-1-6
changeset: 528061:0a211148b850
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 21 16:30:45 2002 +0000

description:
Pull up revision 1.34 (requested by thorpej in ticket #346):
Add support for auxillary busses on the Intel 82452 PCI-Host
bridge.  PR 17353, from MOCHIDA Shuji.

diffstat:

 sys/arch/i386/pci/pchb.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 88325fce4e9d -r 0a211148b850 sys/arch/i386/pci/pchb.c
--- a/sys/arch/i386/pci/pchb.c  Fri Jun 21 16:25:23 2002 +0000
+++ b/sys/arch/i386/pci/pchb.c  Fri Jun 21 16:30:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pchb.c,v 1.33 2002/05/16 01:01:37 thorpej Exp $        */
+/*     $NetBSD: pchb.c,v 1.33.4.1 2002/06/21 16:30:45 lukem Exp $      */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.33 2002/05/16 01:01:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.33.4.1 2002/06/21 16:30:45 lukem Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -156,6 +156,14 @@
 
        case PCI_VENDOR_INTEL:
                switch (PCI_PRODUCT(pa->pa_id)) {
+               case PCI_PRODUCT_INTEL_82452_PB:
+                       bcreg = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x40);
+                       pbnum = PCISET_BRIDGE_NUMBER(bcreg);
+                       if (pbnum != 0xff) {
+                               pbnum++;
+                               doattach = 1;
+                       }
+                       break;
                case PCI_PRODUCT_INTEL_82443BX_AGP:
                case PCI_PRODUCT_INTEL_82443BX_NOAGP:
                        /*



Home | Main Index | Thread Index | Old Index