Hello, I wrote:
Texas Instruments CPPI 4.1 DMA support for the MUSBMHRDC driver.
The code makes use of the accelerated "generic RNDIS" DMA mode, falling back to the transparent (packet per transfer) mode if the hardware restrictions prevent it from using the accelerated mode.
--- The patch is against the recent DaVinci tree. I used CONFIG_ARCH_DA830 option for now in the dependencies -- not sure how Mark will call it finally...
Sigh, will have to repost... :-<
Index: linux-davinci/drivers/usb/musb/cppi41_dma.c =================================================================== --- /dev/null +++ linux-davinci/drivers/usb/musb/cppi41_dma.c @@ -0,0 +1,1234 @@ +/* + * Copyright (C) 2005-2006 by Texas Instruments + * Copyright (c) 2008, MontaVista Software, Inc. <source@xxxxxxxxxx> + * + * This file implements a DMA interface using TI's CPPI 4.1 DMA. + * + * This program is free software; you can distribute it and/or modify it + * under the terms of the GNU General Public License (Version 2) as + * published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + */ + +#include <linux/errno.h> +#include <linux/dma-mapping.h> + +#include <asm/arch/cppi41.h>
This should've been <mach/cppi41.h> -- forgot to test compile the code. But it still gives the idea anyway.
WBR, Sergei -- 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