Module Name: src
Committed By: jdc
Date: Wed Sep 19 06:55:25 UTC 2012
Modified Files:
src/sys/arch/sparc64/dev: ebus.c
Log Message:
Match the Altera ebus bridge, as found on the Tadpole SPARCle.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sparc64/dev/ebus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/ebus.c
diff -u src/sys/arch/sparc64/dev/ebus.c:1.60 src/sys/arch/sparc64/dev/ebus.c:1.61
--- src/sys/arch/sparc64/dev/ebus.c:1.60 Mon Jan 30 04:25:15 2012
+++ src/sys/arch/sparc64/dev/ebus.c Wed Sep 19 06:55:25 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ebus.c,v 1.60 2012/01/30 04:25:15 mrg Exp $ */
+/* $NetBSD: ebus.c,v 1.61 2012/09/19 06:55:25 jdc Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.60 2012/01/30 04:25:15 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.61 2012/09/19 06:55:25 jdc Exp $");
#include "opt_ddb.h"
@@ -123,6 +123,12 @@ ebus_match(device_t parent, cfdata_t mat
return (1);
}
+ /* Or the Altera bridge on SPARCle */
+ if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ALTERA &&
+ PCI_PRODUCT(pa->pa_id) == 0 &&
+ strcmp(name, "ebus") == 0)
+ return (1);
+
return (0);
}