This source file includes following definitions.
- __ioport_map
- ioport_map
- ioport_unmap
1
2
3
4
5
6
7
8 #include <linux/module.h>
9 #include <linux/io.h>
10
11 unsigned long sh_io_port_base __read_mostly = -1;
12 EXPORT_SYMBOL(sh_io_port_base);
13
14 void __iomem *__ioport_map(unsigned long addr, unsigned int size)
15 {
16 if (sh_mv.mv_ioport_map)
17 return sh_mv.mv_ioport_map(addr, size);
18
19 return (void __iomem *)(addr + sh_io_port_base);
20 }
21 EXPORT_SYMBOL(__ioport_map);
22
23 void __iomem *ioport_map(unsigned long port, unsigned int nr)
24 {
25 void __iomem *ret;
26
27 ret = __ioport_map_trapped(port, nr);
28 if (ret)
29 return ret;
30
31 return __ioport_map(port, nr);
32 }
33 EXPORT_SYMBOL(ioport_map);
34
35 void ioport_unmap(void __iomem *addr)
36 {
37 if (sh_mv.mv_ioport_unmap)
38 sh_mv.mv_ioport_unmap(addr);
39 }
40 EXPORT_SYMBOL(ioport_unmap);