From c8e1d4dfddaf87539c238ef39c8feb9d976deddc Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 25 Nov 2007 00:38:50 +0000 Subject: Give the CarBus side of CardBus-PCI bridges a bus number, since OpenFirmware doesn't do it for us. --- sys/arch/sparc64/dev/pci_machdep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index 5704dd1447a..6808c3ae637 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.31 2007/10/25 20:00:06 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.32 2007/11/25 00:38:49 kettenis Exp $ */ /* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */ /* @@ -112,6 +112,9 @@ pci_make_tag(pc, b, d, f) bzero(name, sizeof(name)); #endif + if (pc->busnode[b]) + return PCITAG_CREATE(0, b, d, f); + /* * Hunt for the node that corresponds to this device * -- cgit v1.2.3