File: /usr/src/linux/arch/arm/mach-ebsa110/mm.c
1 /*
2 * linux/arch/arm/mach-ebsa110/mm.c
3 *
4 * Copyright (C) 1998-1999 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Extra MM routines for the EBSA-110 architecture
11 */
12 #include <linux/mm.h>
13 #include <linux/init.h>
14
15 #include <asm/hardware.h>
16 #include <asm/pgtable.h>
17 #include <asm/page.h>
18
19 #include <asm/mach/map.h>
20
21 #include "hardware.h"
22
23 static struct map_desc ebsa110_io_desc[] __initdata = {
24 /*
25 * sparse external-decode ISAIO space
26 */
27 { IRQ_STAT, TRICK4_PHYS, PGDIR_SIZE, DOMAIN_IO, 0, 1, 0, 0 }, /* IRQ_STAT/IRQ_MCLR */
28 { IRQ_MASK, TRICK3_PHYS, PGDIR_SIZE, DOMAIN_IO, 0, 1, 0, 0 }, /* IRQ_MASK/IRQ_MSET */
29 { SOFT_BASE, TRICK1_PHYS, PGDIR_SIZE, DOMAIN_IO, 0, 1, 0, 0 }, /* SOFT_BASE */
30 { PIT_BASE, TRICK0_PHYS, PGDIR_SIZE, DOMAIN_IO, 0, 1, 0, 0 }, /* PIT_BASE */
31
32 /*
33 * self-decode ISAIO space
34 */
35 { ISAIO_BASE, ISAIO_PHYS, ISAIO_SIZE, DOMAIN_IO, 0, 1, 0, 0 },
36 { ISAMEM_BASE, ISAMEM_PHYS, ISAMEM_SIZE, DOMAIN_IO, 0, 1, 0, 0 },
37 LAST_DESC
38 };
39
40 void __init ebsa110_map_io(void)
41 {
42 iotable_init(ebsa110_io_desc);
43 }
44