patch-2.4.22 linux-2.4.22/arch/mips/vr41xx/victor-mpc30x/init.c
Next file: linux-2.4.22/arch/mips/vr41xx/victor-mpc30x/pci_fixup.c
Previous file: linux-2.4.22/arch/mips/vr41xx/victor-mpc30x/ide-mpc30x.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/vr41xx/victor-mpc30x/init.c
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.21/arch/mips/vr41xx/victor-mpc30x/init.c linux-2.4.22/arch/mips/vr41xx/victor-mpc30x/init.c
@@ -0,0 +1,54 @@
+/*
+ * FILE NAME
+ * arch/mips/vr41xx/victor-mpc30x/init.c
+ *
+ * BRIEF MODULE DESCRIPTION
+ * Initialisation code for the Victor MP-C303/304.
+ *
+ * Copyright 2002 Yoichi Yuasa
+ * yuasa@hh.iij4u.or.jp
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+#include <linux/config.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+
+#include <asm/bootinfo.h>
+#include <asm/cpu.h>
+#include <asm/mipsregs.h>
+#include <asm/vr41xx/vr41xx.h>
+
+char arcs_cmdline[CL_SIZE];
+
+const char *get_system_type(void)
+{
+ return "Victor MP-C303/304";
+}
+
+void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec)
+{
+ int i;
+
+ /*
+ * collect args and prepare cmd_line
+ */
+ for (i = 1; i < argc; i++) {
+ strcat(arcs_cmdline, argv[i]);
+ if (i < (argc - 1))
+ strcat(arcs_cmdline, " ");
+ }
+
+ mips_machgroup = MACH_GROUP_NEC_VR41XX;
+ mips_machtype = MACH_VICTOR_MPC30X;
+
+ add_memory_region(0, 32 << 20, BOOT_MEM_RAM);
+}
+
+void __init prom_free_prom_memory (void)
+{
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)