patch-2.4.0-test9 linux/arch/arm/mach-shark/mm.c
Next file: linux/arch/arm/mach-shark/pci.c
Previous file: linux/arch/arm/mach-shark/dma.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Sep 18 15:15:25 2000
- Orig file:
v2.4.0-test8/linux/arch/arm/mach-shark/mm.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.0-test8/linux/arch/arm/mach-shark/mm.c linux/arch/arm/mach-shark/mm.c
@@ -0,0 +1,30 @@
+/*
+ * linux/arch/arm/mach-shark/mm.c
+ *
+ * by Alexander.Schulz@stud.uni-karlsruhe.de
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <linux/sched.h>
+#include <linux/mm.h>
+#include <linux/init.h>
+
+#include <asm/pgtable.h>
+#include <asm/page.h>
+#include <asm/io.h>
+
+#include <asm/mach/map.h>
+
+static struct map_desc shark_io_desc[] __initdata = {
+ { IO_BASE , IO_START , IO_SIZE , DOMAIN_IO, 0, 1, 0, 0 },
+ { FB_BASE , FB_START , FB_SIZE , DOMAIN_IO, 0, 1, 0, 0 },
+ { FBREG_BASE , FBREG_START , FBREG_SIZE , DOMAIN_IO, 0, 1, 0, 0 },
+ LAST_DESC
+};
+
+void __init shark_map_io(void)
+{
+ iotable_init(shark_io_desc);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)