summaryrefslogtreecommitdiff
path: root/sys/arch/sh
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/sh
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/sh')
-rw-r--r--sys/arch/sh/dev/shpcic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sh/dev/shpcic.c b/sys/arch/sh/dev/shpcic.c
index 8085d85ea4d..13883468e97 100644
--- a/sys/arch/sh/dev/shpcic.c
+++ b/sys/arch/sh/dev/shpcic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shpcic.c,v 1.5 2006/10/23 20:15:50 miod Exp $ */
+/* $OpenBSD: shpcic.c,v 1.6 2006/12/14 17:36:12 kettenis Exp $ */
/* $NetBSD: shpcic.c,v 1.10 2005/12/24 20:07:32 perry Exp $ */
/*
@@ -261,6 +261,7 @@ shpcic_attach(struct device *parent, struct device *self, void *aux)
pba.pba_memt = shpcic_get_bus_mem_tag();
pba.pba_dmat = shpcic_get_bus_dma_tag();
pba.pba_pc = NULL;
+ pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
pba.pba_bridgetag = NULL;
config_found(self, &pba, NULL);