Module Name: src Committed By: msaitoh Date: Thu Apr 27 04:26:12 UTC 2017
Modified Files: src/sys/dev/pci: pci_subr.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/sys/dev/pci/pci_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.178 src/sys/dev/pci/pci_subr.c:1.179 --- src/sys/dev/pci/pci_subr.c:1.178 Fri Apr 21 11:49:31 2017 +++ src/sys/dev/pci/pci_subr.c Thu Apr 27 04:26:12 2017 @@ -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 @@ pci_conf_print_pcie_cap(const pcireg_t * 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");