Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ofppc/pci My pegasos2 doesn't have an ethernet node...



details:   https://anonhg.NetBSD.org/src/rev/ecd7d13f3a70
branches:  trunk
changeset: 755782:ecd7d13f3a70
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jun 20 00:25:41 2010 +0000

description:
My pegasos2 doesn't have an ethernet node at the top level.
Deal with it.

diffstat:

 sys/arch/ofppc/pci/gt_mainbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 36cf7d150a38 -r ecd7d13f3a70 sys/arch/ofppc/pci/gt_mainbus.c
--- a/sys/arch/ofppc/pci/gt_mainbus.c   Sat Jun 19 23:11:10 2010 +0000
+++ b/sys/arch/ofppc/pci/gt_mainbus.c   Sun Jun 20 00:25:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gt_mainbus.c,v 1.1 2010/06/09 04:41:42 kiyohara Exp $  */
+/*     $NetBSD: gt_mainbus.c,v 1.2 2010/06/20 00:25:41 matt Exp $      */
 /*
  * Copyright (c) 2010 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gt_mainbus.c,v 1.1 2010/06/09 04:41:42 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gt_mainbus.c,v 1.2 2010/06/20 00:25:41 matt Exp $");
 
 #include "opt_pci.h"
 #include "opt_marvell.h"
@@ -142,7 +142,7 @@
                        ethernet++;
 
        }
-       if (pci == 2 && ethernet == 1)
+       if (pci == 2 && (ethernet == 1 || ethernet == 0))
                return 1;
        return 0;
 }



Home | Main Index | Thread Index | Old Index