[RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag
Greg KH
greg at kroah.com
Thu Feb 4 06:00:19 EST 2010
On Wed, Feb 03, 2010 at 07:30:39PM +0100, Albert Herranz wrote:
> +/**
> + * hcd_memcpy32_to_coherent - copy data to a bounce buffer
> + * @dst: destination dma bounce buffer
> + * @src: source buffer
> + * @len: number of bytes to copy
> + *
> + * This function copies @len bytes from @src to @dst in 32 bit chunks.
> + * The caller must guarantee that @dst length is 4 byte aligned and
> + * that @dst length is greater than or equal to @src length.
> + */
> +static void *hcd_memcpy32_to_coherent(void *dst, const void *src, size_t len)
Why isn't there platform-specific functions for this already? It seems
a bit odd to bury them in the USB hcd core, when I'm sure that other
people need these, if they haven't already created them.
thanks,
greg k-h
More information about the Linuxppc-dev
mailing list