2 * linux/include/asm-arm/arch-iop80310/memory.h
5 #ifndef __ASM_ARCH_MEMORY_H
6 #define __ASM_ARCH_MEMORY_H
8 #include <linux/config.h>
9 #include <asm/arch/iop310.h>
10 #include <asm/arch/iop321.h>
13 * Physical DRAM offset.
15 #define PHYS_OFFSET (0xa0000000UL)
18 * Virtual view <-> DMA view memory address translations
19 * virt_to_bus: Used to translate the virtual address to an
20 * address suitable to be passed to set_dma_addr
21 * bus_to_virt: Used to convert an address for DMA operations
22 * to an address that the kernel can use.
24 #ifdef CONFIG_ARCH_IOP310
26 #define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP310_SIATVR)) | ((*IOP310_SIABAR) & 0xfffffff0))
27 #define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP310_SIALR)) | ( *IOP310_SIATVR)))
29 #elif defined(CONFIG_ARCH_IOP321)
31 #define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP321_IATVR2)) | ((*IOP321_IABAR2) & 0xfffffff0))
32 #define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP321_IALR2)) | ( *IOP321_IATVR2)))
36 /* boot mem allocate global pointer for MU circular queues QBAR */
37 #ifdef CONFIG_IOP3XX_MU
41 #define PFN_TO_NID(addr) (0)