diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-06-22 10:05:36 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-28 12:59:48 -0400 |
commit | 5924486dc0f205ebc2bbf4c262eec902ff38e802 (patch) | |
tree | acde32ec730762ed2d0a742990cfe2dc7f6e5cf0 /arch/arm/mm/nommu.c | |
parent | f9c21a6ee7e040be0f623a6b8dcfb5ec4f7532f5 (diff) |
[ARM] nommu: add stubs for ioremap and friends
nommu doesn't have any form of remapping support, so ioremap, etc
become stubs which just return the casted address, doing nothing
else.
Move ioport_map(), ioport_unmap(), pci_iomap(), pci_iounmap()
into a separate file which is always built.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/nommu.c')
-rw-r--r-- | arch/arm/mm/nommu.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c new file mode 100644 index 000000000000..934c551d93da --- /dev/null +++ b/arch/arm/mm/nommu.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mm/nommu.c | ||
3 | * | ||
4 | * ARM uCLinux supporting functions. | ||
5 | */ | ||
6 | #include <linux/module.h> | ||
7 | |||
8 | #include <asm/io.h> | ||
9 | #include <asm/page.h> | ||
10 | |||
11 | void __iomem *__ioremap_pfn(unsigned long pfn, unsigned long offset, | ||
12 | size_t size, unsigned long flags) | ||
13 | { | ||
14 | if (pfn >= (0x100000000ULL >> PAGE_SHIFT)) | ||
15 | return NULL; | ||
16 | return (void __iomem *) (offset + (pfn << PAGE_SHIFT)); | ||
17 | } | ||
18 | EXPORT_SYMBOL(__ioremap_pfn); | ||
19 | |||
20 | void __iomem *__ioremap(unsigned long phys_addr, size_t size, | ||
21 | unsigned long flags) | ||
22 | { | ||
23 | return (void __iomem *)phys_addr; | ||
24 | } | ||
25 | EXPORT_SYMBOL(__ioremap); | ||
26 | |||
27 | void __iounmap(void __iomem *addr) | ||
28 | { | ||
29 | } | ||
30 | EXPORT_SYMBOL(__iounmap); | ||