diff options
author | 2008-06-11 05:15:43 +0000 | |
---|---|---|
committer | 2008-06-11 05:15:43 +0000 | |
commit | 11de89e49068d4c01df09ba52e912c453c966b2d (patch) | |
tree | f48dc1414af89f4aa5906898c1a3d1347bb6b55a | |
parent | regen (diff) | |
download | wireguard-openbsd-11de89e49068d4c01df09ba52e912c453c966b2d.tar.xz wireguard-openbsd-11de89e49068d4c01df09ba52e912c453c966b2d.zip |
Match the Altera EBus found on the Tadpole SPARCLE.
-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) { |