On Thu, 09 Feb 2012 09:36:47 +0100, Pratyush Anand <pratyush.anand@xxxxxxxxx> wrote:
I have a scenario where my usb device can access only a particular area of DDR.
[...]
Normally we allocate memory for buffer using kmalloc. Is it possible to allocate memory using some other API, which can provide memory from desired location. One way could be to associate custom memory with the struct device and then use dma_alloc_coherent to allocate it.
This might be a cannon, but have you looked at Contiguous Memory Allocator, which was recently posted to linux-mm? From drivers point of view you'll use DMA APIs though, so no change there. -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo-- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html