2 * linux/include/asm-arm/memory.h
4 * Copyright (C) 2000 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Note: this file should not be included by non-asm/.h files
14 #ifndef __ASM_ARM_MEMORY_H
15 #define __ASM_ARM_MEMORY_H
17 #include <asm/arch/memory.h>
19 static inline unsigned long virt_to_phys(volatile void *x)
21 return __virt_to_phys((unsigned long)(x));
24 static inline void *phys_to_virt(unsigned long x)
26 return (void *)(__phys_to_virt((unsigned long)(x)));
30 * Virtual <-> DMA view memory address translations
32 #define virt_to_bus(x) (__virt_to_bus((unsigned long)(x)))
33 #define bus_to_virt(x) ((void *)(__bus_to_virt((unsigned long)(x))))