From c4c3193cc824f923b4f1e5b8c5ec27c32bbbcd8f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 14 Dec 2006 17:36:13 +0000 Subject: 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@ --- sys/arch/mvmeppc/pci/mpcpcibr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/mvmeppc') diff --git a/sys/arch/mvmeppc/pci/mpcpcibr.c b/sys/arch/mvmeppc/pci/mpcpcibr.c index d52e042816c..4ab76a14489 100644 --- a/sys/arch/mvmeppc/pci/mpcpcibr.c +++ b/sys/arch/mvmeppc/pci/mpcpcibr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibr.c,v 1.17 2005/11/07 02:19:46 brad Exp $ */ +/* $OpenBSD: mpcpcibr.c,v 1.18 2006/12/14 17:36:12 kettenis Exp $ */ /* * Copyright (c) 2001 Steve Murphree, Jr. @@ -238,6 +238,7 @@ mpcpcibrattach(parent, self, aux) pba.pba_iot = &sc->sc_iobus_space; pba.pba_memt = &sc->sc_membus_space; pba.pba_pc = &lcp->lc_pc; + pba.pba_domain = pci_ndomains++; pba.pba_bus = 0; /* -- cgit v1.2.3