3 * Copyright IBM Corp. 1999
4 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
6 * Derived from "include/asm-i386/io.h"
14 #define IO_SPACE_LIMIT 0xffffffff
17 * Change virtual addresses to physical addresses and vv.
18 * These are pretty trivial
20 static inline unsigned long virt_to_phys(volatile void * address)
22 unsigned long real_address;
28 : "=a" (real_address) : "a" (address) : "cc");
32 static inline void * phys_to_virt(unsigned long address)
34 return (void *) address;
37 void *xlate_dev_mem_ptr(unsigned long phys);
38 void unxlate_dev_mem_ptr(unsigned long phys, void *addr);
41 * Convert a virtual cached pointer to an uncached pointer
43 #define xlate_dev_kmem_ptr(p) p