|
@@ -122,6 +122,7 @@ static inline void *phys_to_virt(unsigned long x)
|
|
*/
|
|
*/
|
|
#define __pa(x) __virt_to_phys((unsigned long)(x))
|
|
#define __pa(x) __virt_to_phys((unsigned long)(x))
|
|
#define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
|
|
#define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
|
|
|
|
+#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
|
|
|
|
|
|
/*
|
|
/*
|
|
* Virtual <-> DMA view memory address translations
|
|
* Virtual <-> DMA view memory address translations
|