Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev Match the Altera ebus bridge, as found ...



details:   https://anonhg.NetBSD.org/src/rev/73ca2744bc44
branches:  trunk
changeset: 781633:73ca2744bc44
user:      jdc <jdc%NetBSD.org@localhost>
date:      Wed Sep 19 06:55:25 2012 +0000

description:
Match the Altera ebus bridge, as found on the Tadpole SPARCle.

diffstat:

 sys/arch/sparc64/dev/ebus.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 1ac7fa1f3280 -r 73ca2744bc44 sys/arch/sparc64/dev/ebus.c
--- a/sys/arch/sparc64/dev/ebus.c       Wed Sep 19 06:54:04 2012 +0000
+++ b/sys/arch/sparc64/dev/ebus.c       Wed Sep 19 06:55:25 2012 +0000
@@ -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 @@
                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);
 }
 



Home | Main Index | Thread Index | Old Index