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