patch-2.4.0-test9 linux/arch/arm/mm/mm-ebsa110.c
Next file: linux/arch/arm/mm/mm-footbridge.c
Previous file: linux/arch/arm/mm/mm-clps7500.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Mon Sep 18 15:15:25 2000
- Orig file:
v2.4.0-test8/linux/arch/arm/mm/mm-ebsa110.c
- Orig date:
Tue Apr 25 16:54:39 2000
diff -u --recursive --new-file v2.4.0-test8/linux/arch/arm/mm/mm-ebsa110.c linux/arch/arm/mm/mm-ebsa110.c
@@ -1,9 +1,13 @@
/*
- * arch/arm/mm/mm-ebsa110.c
+ * linux/arch/arm/mm/mm-ebsa110.c
*
- * Extra MM routines for the EBSA-110 architecture
+ * Copyright (C) 1998-1999 Russell King
*
- * Copyright (C) 1998-1999 Russell King
+ * 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.
+ *
+ * Extra MM routines for the EBSA-110 architecture
*/
#include <linux/mm.h>
#include <linux/init.h>
@@ -12,13 +16,15 @@
#include <asm/pgtable.h>
#include <asm/page.h>
-#include "map.h"
+#include <asm/mach/map.h>
-#define SIZE(x) (sizeof(x) / sizeof(x[0]))
-
-struct map_desc io_desc[] __initdata = {
+static struct map_desc ebsa110_io_desc[] __initdata = {
{ IO_BASE - PGDIR_SIZE, 0xc0000000, PGDIR_SIZE, DOMAIN_IO, 0, 1, 0, 0 },
- { IO_BASE , IO_START , IO_SIZE , DOMAIN_IO, 0, 1, 0, 0 }
+ { IO_BASE , IO_START , IO_SIZE , DOMAIN_IO, 0, 1, 0, 0 },
+ LAST_DESC
};
-unsigned int __initdata io_desc_size = SIZE(io_desc);
+void __init ebsa110_map_io(void)
+{
+ iotable_init(ebsa110_io_desc);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)