1
2
3
4
5
6
7
8
9#ifndef _S390_IO_H
10#define _S390_IO_H
11
12#include <linux/kernel.h>
13#include <asm/page.h>
14#include <asm/pci_io.h>
15
16#define xlate_dev_mem_ptr xlate_dev_mem_ptr
17void *xlate_dev_mem_ptr(phys_addr_t phys);
18#define unxlate_dev_mem_ptr unxlate_dev_mem_ptr
19void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);
20
21
22
23
24#define xlate_dev_kmem_ptr(p) p
25
26#define IO_SPACE_LIMIT 0
27
28#ifdef CONFIG_PCI
29
30#define ioremap_nocache(addr, size) ioremap(addr, size)
31#define ioremap_wc ioremap_nocache
32
33static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
34{
35 return (void __iomem *) offset;
36}
37
38static inline void iounmap(volatile void __iomem *addr)
39{
40}
41
42static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
43{
44 return NULL;
45}
46
47static inline void ioport_unmap(void __iomem *p)
48{
49}
50
51
52
53
54
55
56
57#define pci_iomap pci_iomap
58#define pci_iounmap pci_iounmap
59
60#define memcpy_fromio(dst, src, count) zpci_memcpy_fromio(dst, src, count)
61#define memcpy_toio(dst, src, count) zpci_memcpy_toio(dst, src, count)
62#define memset_io(dst, val, count) zpci_memset_io(dst, val, count)
63
64#define __raw_readb zpci_read_u8
65#define __raw_readw zpci_read_u16
66#define __raw_readl zpci_read_u32
67#define __raw_readq zpci_read_u64
68#define __raw_writeb zpci_write_u8
69#define __raw_writew zpci_write_u16
70#define __raw_writel zpci_write_u32
71#define __raw_writeq zpci_write_u64
72
73#endif
74
75#include <asm-generic/io.h>
76
77#endif
78