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
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))))