2 * include/asm-s390/io.h
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
8 * Derived from "include/asm-i386/io.h"
18 #define IO_SPACE_LIMIT 0xffffffff
20 #define __io_virt(x) ((void *)(PAGE_OFFSET | (unsigned long)(x)))
23 * Change virtual addresses to physical addresses and vv.
24 * These are pretty trivial
26 static inline unsigned long virt_to_phys(volatile void * address)
28 unsigned long real_address;
34 : "=a" (real_address) : "a" (address) : "cc");
38 static inline void * phys_to_virt(unsigned long address)
40 return __io_virt(address);
43 #define mmiowb() do { } while (0)
46 * Convert a physical pointer to a virtual kernel pointer for /dev/mem
49 #define xlate_dev_mem_ptr(p) __va(p)
52 * Convert a virtual cached pointer to an uncached pointer
54 #define xlate_dev_kmem_ptr(p) p
56 #endif /* __KERNEL__ */