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
21 * Change virtual addresses to physical addresses and vv.
22 * These are pretty trivial
24 static inline unsigned long virt_to_phys(volatile void * address)
26 unsigned long real_address;
32 : "=a" (real_address) : "a" (address) : "cc");
36 static inline void * phys_to_virt(unsigned long address)
38 return (void *) address;
42 * Convert a physical pointer to a virtual kernel pointer for /dev/mem
45 #define xlate_dev_mem_ptr(p) __va(p)
48 * Convert a virtual cached pointer to an uncached pointer
50 #define xlate_dev_kmem_ptr(p) p
52 #endif /* __KERNEL__ */