Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-arm / memory.h
blob837ea199a023bdfc8fe6b54fb6267c4792be2644
1 /*
2 * linux/include/asm-arm/memory.h
4 * Copyright (C) 2000 Russell King
6 * Note: this file should not be included by non-asm/.h files
8 * Modifications:
9 */
10 #ifndef __ASM_ARM_MEMORY_H
11 #define __ASM_ARM_MEMORY_H
13 #include <asm/arch/memory.h>
15 extern __inline__ unsigned long virt_to_phys(volatile void *x)
17 return __virt_to_phys((unsigned long)(x));
20 extern __inline__ void *phys_to_virt(unsigned long x)
22 return (void *)(__phys_to_virt((unsigned long)(x)));
26 * Virtual <-> DMA view memory address translations
28 #define virt_to_bus(x) (__virt_to_bus((unsigned long)(x)))
29 #define bus_to_virt(x) ((void *)(__bus_to_virt((unsigned long)(x))))
31 #endif