diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 02:16:42 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 02:16:42 -0400 |
commit | d7cdc9e8ac82c43fdcd4fde6b5b53d2dcba7f707 (patch) | |
tree | 2489b1831a1b5818af0927e4d3c8933bf7d05f31 /arch/sh/boards/titan/io.c | |
parent | 26ff6c11ef38e08990c1e417c299246e6ab18ff7 (diff) |
sh: ioremap() overhaul.
ioremap() overhaul. Add support for transparent PMB mapping, get rid of
p3_ioremap(), etc. Also drop ioremap() and iounmap() routines from the
machvec, as everyone can use the generic ioremap() API instead. For PCI
memory apertures and other special cases, use the pci_iomap() API, as
boards are already required to get the mapping right there.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/titan/io.c')
-rw-r--r-- | arch/sh/boards/titan/io.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/sh/boards/titan/io.c b/arch/sh/boards/titan/io.c index d66900c99a11..b886fd233a66 100644 --- a/arch/sh/boards/titan/io.c +++ b/arch/sh/boards/titan/io.c | |||
@@ -138,19 +138,12 @@ void titan_outsl(unsigned long port, const void *src, unsigned long count) | |||
138 | maybebadio(port); | 138 | maybebadio(port); |
139 | } | 139 | } |
140 | 140 | ||
141 | void *titan_ioremap(unsigned long offset, unsigned long size) { | ||
142 | if (CHECK_SH7751_PCIIO(offset) || CHECK_SH7751_PCIMEMIO(offset)) | ||
143 | return (void *)offset; | ||
144 | } | ||
145 | |||
146 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) | 141 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) |
147 | { | 142 | { |
148 | if (PXSEG(port)) | 143 | if (PXSEG(port) || CHECK_SH7751_PCIMEMIO(port)) |
149 | return (void __iomem *)port; | 144 | return (void __iomem *)port; |
150 | else if (CHECK_SH7751_PCIIO(port)) | 145 | else if (CHECK_SH7751_PCIIO(port)) |
151 | return (void __iomem *)PCI_IOMAP(port); | 146 | return (void __iomem *)PCI_IOMAP(port); |
152 | 147 | ||
153 | return (void __iomem *)port2adr(port); | 148 | return (void __iomem *)port2adr(port); |
154 | } | 149 | } |
155 | |||
156 | EXPORT_SYMBOL(titan_ioremap); | ||