diff options
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/ebus.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c index b479de0b6c7..c0b6245264e 100644 --- a/sys/arch/sparc64/dev/ebus.c +++ b/sys/arch/sparc64/dev/ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ebus.c,v 1.21 2008/03/08 16:33:41 kettenis Exp $ */ +/* $OpenBSD: ebus.c,v 1.22 2008/06/11 05:15:43 kettenis Exp $ */ /* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */ /* @@ -131,6 +131,13 @@ ebus_match(struct device *parent, void *match, void *aux) strcmp(name, "ebus") == 0) return (1); + /* Or a fake ebus */ + if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE && + PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ALTERA && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ALTERA_EBUS && + strcmp(name, "ebus") == 0) + return (1); + /* Or a PCI-ISA bridge XXX I hope this is on-board. */ if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE && PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA) { |