[PATCH 4/4] dmaengine: Add Freescale i.MX1/21/27 DMA driver

javier Martin javier.martin at vista-silicon.com
Tue Oct 5 03:45:10 EDT 2010


Hi Sascha,


+
> +struct imxdma_channel {
> +       struct imxdma_engine            *imxdma;
> +       unsigned int                    channel;
> +       unsigned int                    imxdma_channel;
> +
> +       enum dma_data_direction         direction;
> +       enum dma_slave_buswidth         word_size;
> +       dma_addr_t                      bd_phys;
> +       unsigned long                   flags;
> +       dma_addr_t                      per_address;
> +       u32                             watermark_level;
> +       struct dma_chan                 chan;
> +       spinlock_t                      lock;
> +       struct dma_async_tx_descriptor  desc;
> +       dma_cookie_t                    last_completed;
> +       enum dma_status                 status;
> +       int                             dma_request;
> +       struct scatterlist              *sg_list;
> +};
> +
> +#define MAX_DMA_CHANNELS 8
>

 i.MX27 has 16 DMA channels. Maybe an #ifdef would solve the issue.


-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101005/646920ac/attachment-0001.html>


More information about the linux-arm-kernel mailing list