--- zzzz-none-000/linux-2.6.32.61/arch/mips/include/asm/mach-generic/dma-coherence.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/arch/mips/include/asm/mach-generic/dma-coherence.h 2011-07-20 07:23:51.000000000 +0000 @@ -68,4 +68,12 @@ #endif } +static inline int plat_addr_is_coherent(unsigned long addr) +{ + if((addr & 0xE0000000) == 0xA0000000) { + return 1; + } + return 0; +} + #endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */