Source-Changes-HG archive

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

[src/nathanw_sa]: src/sys/arch/arc/arc incomplete platfrom description for SN...



details:   https://anonhg.NetBSD.org/src/rev/bbff9d61c97c
branches:  nathanw_sa
changeset: 504762:bbff9d61c97c
user:      soda <soda%NetBSD.org@localhost>
date:      Wed Jun 13 15:36:45 2001 +0000

description:
incomplete platfrom description for SNI RM200.

diffstat:

 sys/arch/arc/arc/p_sni_rm200pci.c |  129 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 129 insertions(+), 0 deletions(-)

diffs (133 lines):

diff -r ddeb55e3c642 -r bbff9d61c97c sys/arch/arc/arc/p_sni_rm200pci.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/arc/p_sni_rm200pci.c Wed Jun 13 15:36:45 2001 +0000
@@ -0,0 +1,129 @@
+/*     $NetBSD: p_sni_rm200pci.c,v 1.1.10.2 2001/06/13 15:36:45 soda Exp $     */
+/*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
+
+/*
+ * Copyright (c) 1988 University of Utah.
+ * Copyright (c) 1992, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department, The Mach Operating System project at
+ * Carnegie-Mellon University and Ralph Campbell.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     from: @(#)machdep.c     8.3 (Berkeley) 1/12/94
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/device.h>
+#include <uvm/uvm_extern.h>
+
+#include <machine/autoconf.h>
+#include <machine/bus.h>
+#include <machine/pio.h>
+#include <machine/platform.h>
+#include <mips/pte.h>
+
+void p_sni_rm200pci_init __P((void));
+void p_sni_rm200pci_cons_init __P((void));
+
+#include "com.h"
+#if NCOM > 0
+#include <sys/termios.h>
+#include <dev/ic/comreg.h>
+#include <dev/ic/comvar.h>
+#endif
+
+struct platform platform_sni_rm200pci = {
+       "RM200PCI",
+       NULL, /* unknown */
+       "",
+       "RM200",
+       "Siemens Nixdorf",
+       150, /* MHz ?? */
+       NULL, /* XXX */
+       platform_generic_match,
+       p_sni_rm200pci_init,
+       p_sni_rm200pci_cons_init,
+       platform_nop, /* reset */
+       arc_set_intr, /* ??? */
+};
+
+/*
+ * critial i/o space, interrupt, and other chipset related initialization.
+ */
+void
+p_sni_rm200pci_init()
+{
+       /*
+        * XXX - should be enabled, if tested.
+        *
+        * We use safe default for now, because this platform is untested.
+        * In other words, the following may not be needed at all.
+        */
+       vm_page_zero_enable = FALSE;
+
+       /*
+        * Initialize I/O address offset
+        */
+#if 0
+       arc_bus_space_init(&arc_bus_io, "rm200isaio",
+           RM200_P_ISA_IO, RM200_V_ISA_IO, 0, RM200_S_ISA_IO);
+       arc_bus_space_init(&arc_bus_mem, "rm200isamem",
+           RM200_P_ISA_MEM, RM200_V_ISA_MEM, 0, RM200_S_ISA_MEM);
+#endif
+
+       /*
+        * Initialize wired TLB for I/O space which is used on early stage
+        */
+
+       /*
+        * Initialize interrupt priority
+        */
+}
+
+void
+p_sni_rm200pci_cons_init()
+{
+       if (!com_console) {
+               /* XXX For now... */
+       }
+       if (com_console_address == 0) {
+#if 0          /* XXX */
+               com_console_address = xxx;
+#else
+               panic("console address unknown");
+#endif
+       }
+       comcnattach(&arc_bus_io /* XXX? */, com_console_address,
+           com_console_speed, com_freq, com_console_mode);
+}



Home | Main Index | Thread Index | Old Index