summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-11-16 17:31:33 +0000
committerjhb <jhb@FreeBSD.org>2006-11-16 17:31:33 +0000
commit3b565e6dd23a2f8c04acebb17a3725d041d0d8e1 (patch)
tree79fa8600ad29dffba2d43a13e164414464d4edbc /sys/dev/pci
parent6697dbcd9bfe2448633c581723f647658554c512 (diff)
downloadFreeBSD-src-3b565e6dd23a2f8c04acebb17a3725d041d0d8e1.zip
FreeBSD-src-3b565e6dd23a2f8c04acebb17a3725d041d0d8e1.tar.gz
Look for capabilities in PCI-PCI bridges using the same CAP PTR register
as for type 0 devices. Submitted by: grehan MFC after: 1 week
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 9e1b845..5e5ce61 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -447,6 +447,7 @@ pci_read_extcap(device_t pcib, pcicfgregs *cfg)
switch (cfg->hdrtype & PCIM_HDRTYPE) {
case 0:
+ case 1:
ptrptr = PCIR_CAP_PTR;
break;
case 2:
@@ -869,6 +870,7 @@ pci_find_extcap_method(device_t dev, device_t child, int capability,
*/
switch (cfg->hdrtype & PCIM_HDRTYPE) {
case 0:
+ case 1:
ptr = PCIR_CAP_PTR;
break;
case 2:
OpenPOWER on IntegriCloud