summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcireg.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-12-12 13:20:35 +0000
committermsmith <msmith@FreeBSD.org>2000-12-12 13:20:35 +0000
commit3246f521daddcdd0cd1d7e634b58ab9043c0d7f9 (patch)
treedc3d07f60227cdeebf81d00cb3d37cf32abc8fd7 /sys/dev/pci/pcireg.h
parent98070a71a38611a90a30345cff491368a1509f82 (diff)
downloadFreeBSD-src-3246f521daddcdd0cd1d7e634b58ab9043c0d7f9.zip
FreeBSD-src-3246f521daddcdd0cd1d7e634b58ab9043c0d7f9.tar.gz
- We have access to our own device_t here, so use pci_read_config
rather than finding our parent pcib and using its PCI_READ_CONFIG method. - Fix the defines for the 32-bit I/O decode registers, and properly process the 16-bit versions. Now we will correctly check that I/O resources behind the bridge are going to be decoded. - Bring the quirk for the Orion PCI:PCI bridge in here (since it seems to want to set the secondary/supplementary bus numbers). - Use PCI_SLOTMAX rather than a magic number.
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r--sys/dev/pci/pcireg.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index eb5c471..35297e4 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -90,18 +90,21 @@
#define PCIR_IOBASEL_1 0x1c
#define PCIR_IOLIMITL_1 0x1d
-#define PCIR_IOBASEH_1 0 /**/
-#define PCIR_IOLIMITH_1 0 /**/
+#define PCIR_IOBASEH_1 0x30
+#define PCIR_IOLIMITH_1 0x32
+#define PCIM_BRIO_16 0x0
+#define PCIM_BRIO_32 0x1
+#define PCIM_BRIO_MASK 0xf
#define PCIR_MEMBASE_1 0x20
#define PCIR_MEMLIMIT_1 0x22
#define PCIR_PMBASEL_1 0x24
#define PCIR_PMLIMITL_1 0x26
-#define PCIR_PMBASEH_1 0 /**/
-#define PCIR_PMLIMITH_1 0 /**/
+#define PCIR_PMBASEH_1 0x28
+#define PCIR_PMLIMITH_1 0x2c
-#define PCIR_BRIDGECTL_1 0 /**/
+#define PCIR_BRIDGECTL_1 0x3e
#define PCIR_SUBVEND_1 0x34
#define PCIR_SUBDEV_1 0x36
OpenPOWER on IntegriCloud