Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Check slot registers if a device is PCI/PCI-X to...



details:   https://anonhg.NetBSD.org/src/rev/c45ef32fe6ba
branches:  trunk
changeset: 823579:c45ef32fe6ba
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Apr 27 04:26:12 2017 +0000

description:
Check slot registers if a device is PCI/PCI-X to PCI Express Bridge. Tested
with Pericom Semiconductors(Diodes) PI7C9X111SL PCIe to PCI Reverse Bridge.

diffstat:

 sys/dev/pci/pci_subr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 94205dff3548 -r c45ef32fe6ba sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Thu Apr 27 03:57:37 2017 +0000
+++ b/sys/dev/pci/pci_subr.c    Thu Apr 27 04:26:12 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_subr.c,v 1.178 2017/04/21 11:49:31 kre Exp $       */
+/*     $NetBSD: pci_subr.c,v 1.179 2017/04/27 04:26:12 msaitoh Exp $   */
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.178 2017/04/21 11:49:31 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.179 2017/04/27 04:26:12 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -1689,6 +1689,7 @@
                break;
        case PCIE_XCAP_TYPE_PCI2PCIE:   /* 0x8 */
                printf("PCI/PCI-X to PCI Express Bridge\n");
+               check_slot = true;
                break;
        case PCIE_XCAP_TYPE_ROOT_INTEP: /* 0x9 */
                printf("Root Complex Integrated Endpoint\n");



Home | Main Index | Thread Index | Old Index