diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-13 20:10:50 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-13 20:10:50 +0000 |
commit | 2bbf5c811672d5b0c39d5784c61dd91913e8e045 (patch) | |
tree | a1809fa7aebf56fa87ef985c841627841bad37d0 /sys/arch/sparc64/dev | |
parent | 9afec5752905399d9d215d7e3ed13f7c74e690fb (diff) |
* Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses. For busses behind a bridge, it points to
a persistent copy of the bridge's pcitag_t. This can be very useful
for machine-dependent PCI bus enumeration code.
From NetBSD
ok grange@ kettenis@
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/psycho.c | 3 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/schizo.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index 7ef8a64e5d9..b187a7e81c7 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psycho.c,v 1.41 2005/06/06 20:31:12 jason Exp $ */ +/* $OpenBSD: psycho.c,v 1.42 2006/03/13 20:10:49 brad Exp $ */ /* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */ /* @@ -358,6 +358,7 @@ psycho_attach(struct device *parent, struct device *self, void *aux) psycho_get_bus_range(sc->sc_node, psycho_br); pba.pba_bus = psycho_br[0]; + pba.pba_bridgetag = NULL; printf("bus range %u to %u", psycho_br[0], psycho_br[1]); printf("; PCI bus %d", psycho_br[0]); diff --git a/sys/arch/sparc64/dev/schizo.c b/sys/arch/sparc64/dev/schizo.c index fdffac2237b..252275b7eba 100644 --- a/sys/arch/sparc64/dev/schizo.c +++ b/sys/arch/sparc64/dev/schizo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: schizo.c,v 1.16 2003/06/24 21:54:39 henric Exp $ */ +/* $OpenBSD: schizo.c,v 1.17 2006/03/13 20:10:49 brad Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -191,6 +191,7 @@ schizo_init(struct schizo_softc *sc, int busa) pba.pba_busname = "pci"; pba.pba_bus = busranges[0]; + pba.pba_bridgetag = NULL; pba.pba_pc = pbm->sp_pc; #if 0 pba.pba_flags = pbm->sp_flags; |