summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-14 17:36:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-14 17:36:13 +0000
commitc4c3193cc824f923b4f1e5b8c5ec27c32bbbcd8f (patch)
treeb468fde9421bc79f715486e8c79db8efe9bb2abd /sys/arch/arm
parent95476d7a5b0c0ad0d5c49ec2f74336bdafa725a3 (diff)
Make pci subsystem aware of domains. Each host bridge gets assigned a unique
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/footbridge/footbridge.c3
-rw-r--r--sys/arch/arm/xscale/i80321.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/arm/footbridge/footbridge.c b/sys/arch/arm/footbridge/footbridge.c
index cba0426c0c7..0bf0fd385fa 100644
--- a/sys/arch/arm/footbridge/footbridge.c
+++ b/sys/arch/arm/footbridge/footbridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: footbridge.c,v 1.5 2006/03/13 20:10:49 brad Exp $ */
+/* $OpenBSD: footbridge.c,v 1.6 2006/12/14 17:36:12 kettenis Exp $ */
/* $NetBSD: footbridge.c,v 1.7 2002/05/16 01:01:33 thorpej Exp $ */
/*
@@ -221,6 +221,7 @@ footbridge_attach(parent, self, aux)
/*
fba.fba_pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
*/
+ fba.fba_pba.pba_domain = pci_ndomains++;
fba.fba_pba.pba_bus = 0;
fba.fba_pba.pba_bridgetag = NULL;
config_found(self, &fba.fba_pba, footbridge_print);
diff --git a/sys/arch/arm/xscale/i80321.c b/sys/arch/arm/xscale/i80321.c
index de4ff5a34e3..da242d45af2 100644
--- a/sys/arch/arm/xscale/i80321.c
+++ b/sys/arch/arm/xscale/i80321.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i80321.c,v 1.4 2006/06/02 01:33:55 drahn Exp $ */
+/* $OpenBSD: i80321.c,v 1.5 2006/12/14 17:36:12 kettenis Exp $ */
/* $NetBSD: i80321.c,v 1.18 2006/02/25 02:28:56 wiz Exp $ */
/*
@@ -221,6 +221,7 @@ i80321_attach(struct i80321_softc *sc)
pba.pba_memt = &sc->sc_pci_memt;
pba.pba_dmat = &sc->sc_pci_dmat;
pba.pba_pc = &sc->sc_pci_chipset;
+ pba.pba_domain = pci_ndomains++;
pba.pba_bus = preg;
pba.pba_bridgetag = NULL;
pba.pba_intrswiz = 0; /* XXX what if busno != 0? */