import of ftp.dlink.com/GPL/DSMG-600_reB/ppclinux.tar.gz
[linux-2.4.21-pre4.git] / include / asm-arm / memory.h
1 /*
2  *  linux/include/asm-arm/memory.h
3  *
4  *  Copyright (C) 2000 Russell King
5  *
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.
9  *
10  *  Note: this file should not be included by non-asm/.h files
11  *
12  *  Modifications:
13  */
14 #ifndef __ASM_ARM_MEMORY_H
15 #define __ASM_ARM_MEMORY_H
16
17 #include <asm/arch/memory.h>
18
19 static inline unsigned long virt_to_phys(volatile void *x)
20 {
21         return __virt_to_phys((unsigned long)(x));
22 }
23
24 static inline void *phys_to_virt(unsigned long x)
25 {
26         return (void *)(__phys_to_virt((unsigned long)(x)));
27 }
28
29 /*
30  * Virtual <-> DMA view memory address translations
31  */
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))))
34
35 #endif