Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/loongson call gdium_cnattach()



details:   https://anonhg.NetBSD.org/src/rev/fbd815a02c1a
branches:  trunk
changeset: 769718:fbd815a02c1a
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Sep 20 05:51:34 2011 +0000

description:
call gdium_cnattach()
Now this actually boots on Gdium.

diffstat:

 sys/arch/evbmips/loongson/autoconf.h |  3 +++
 sys/arch/evbmips/loongson/machdep.c  |  7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r fbd128e1f4c2 -r fbd815a02c1a sys/arch/evbmips/loongson/autoconf.h
--- a/sys/arch/evbmips/loongson/autoconf.h      Tue Sep 20 05:50:17 2011 +0000
+++ b/sys/arch/evbmips/loongson/autoconf.h      Tue Sep 20 05:51:34 2011 +0000
@@ -104,4 +104,7 @@
 extern phys_ram_seg_t mem_clusters[];
 extern int mem_cluster_cnt;
 
+int gdium_cnattach(bus_space_tag_t, bus_space_tag_t,
+    pci_chipset_tag_t, pcitag_t, pcireg_t);
+
 #endif /* _MACHINE_AUTOCONF_H_ */
diff -r fbd128e1f4c2 -r fbd815a02c1a sys/arch/evbmips/loongson/machdep.c
--- a/sys/arch/evbmips/loongson/machdep.c       Tue Sep 20 05:50:17 2011 +0000
+++ b/sys/arch/evbmips/loongson/machdep.c       Tue Sep 20 05:51:34 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.2 2011/09/20 05:50:17 macallan Exp $     */
+/*     $NetBSD: machdep.c,v 1.3 2011/09/20 05:51:34 macallan Exp $     */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2011/09/20 05:50:17 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2011/09/20 05:51:34 macallan Exp $");
 
 #include "opt_ddb.h"
 #include "opt_execfmt.h"
@@ -513,6 +513,9 @@
                        sisfb_cnattach(&bonito_memt, &bonito_iot, &bonito_pc, 
                            pcitag, reg);
 #endif
+               if (cn_tab == &pmoncons)
+                       gdium_cnattach(&bonito_memt, &bonito_iot, &bonito_pc, 
+                           pcitag, reg);
        }
        DPRINTF(("\n"));
 



Home | Main Index | Thread Index | Old Index