summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-11-17 23:20:39 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-11-17 23:20:39 +0000
commit9620add1354a0464ea4af99cc9e4a2a6cbfd4056 (patch)
tree053b571e638e675b149f726158d33d921e018654 /sys/dev
parentc0b6c6dde6b72491a0af352185360746134ea6c0 (diff)
Allow pci_get_capability to decode capabilities for PCI bridges.
From jmcneill NetBSD ok kettenis@ dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 8a56aef3468..4bf343f8862 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.51 2007/10/22 03:08:53 fgsch Exp $ */
+/* $OpenBSD: pci.c,v 1.52 2007/11/17 23:20:38 brad Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -363,9 +363,10 @@ pci_get_capability(pci_chipset_tag_t pc, pcitag_t tag, int capid,
reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
switch (PCI_HDRTYPE_TYPE(reg)) {
case 0: /* standard device header */
+ case 1: /* PCI-PCI bridge header */
ofs = PCI_CAPLISTPTR_REG;
break;
- case 2: /* PCI-CardBus Bridge header */
+ case 2: /* PCI-CardBus bridge header */
ofs = PCI_CARDBUS_CAPLISTPTR_REG;
break;
default: