MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / arch / nios2nommu / mm / ioremap.c
blob1c8b172af3a81b17c1d2bc9619ccff0587e75e38
1 /* linux/arch/nios2nommu/mm/ioremap.c, based on:
3 * linux/arch/m68knommu/mm/kmap.c
5 * Copyright (C) 2004 Microtronix Datacom Ltd.
6 * Copyright (C) 2000 Lineo, <davidm@lineo.com>
8 * All rights reserved.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
18 * NON INFRINGEMENT. See the GNU General Public License for more
19 * details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <linux/mm.h>
28 #include <linux/kernel.h>
29 #include <linux/string.h>
30 #include <linux/types.h>
31 #include <linux/slab.h>
32 #include <linux/vmalloc.h>
34 #include <asm/setup.h>
35 #include <asm/segment.h>
36 #include <asm/page.h>
37 #include <asm/pgalloc.h>
38 #include <asm/io.h>
39 #include <asm/system.h>
42 * Map some physical address range into the kernel address space.
45 void *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag)
47 return (void *)physaddr;
51 * Unmap a ioremap()ed region again
53 void iounmap(void *addr)
58 * __iounmap unmaps nearly everything, so be careful
59 * it doesn't free currently pointer/page tables anymore but it
60 * wans't used anyway and might be added later.
62 void __iounmap(void *addr, unsigned long size)