diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2011-03-04 16:39:29 +0530 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-03-14 02:58:03 -0400 |
commit | 60a230e4a62be6837335911b09101bd8aeb7c95a (patch) | |
tree | 81eaf5ffaef68320dbbdd62bec7142f603609420 /include/linux/pata_arasan_cf_data.h | |
parent | 8d7b1c70b3c1aac4b63109f5c73f732f1d63fad6 (diff) |
ata/pata_arasan_cf: fill dma chan->private from pdata->dma_priv
Some DMA controllers (eg: drivers/dma/dw_dmac*) allow platform specific
configuration for dma transfers. User drivers need to set chan->private field
of channel with pointer to configuration data. This patch takes dma_priv data
from platform data and passes it to chan->private_data, in order to pass
platform specific configuration to DMAC controller.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/pata_arasan_cf_data.h')
-rw-r--r-- | include/linux/pata_arasan_cf_data.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pata_arasan_cf_data.h b/include/linux/pata_arasan_cf_data.h index d979fe688796..a6ee9aa898bb 100644 --- a/include/linux/pata_arasan_cf_data.h +++ b/include/linux/pata_arasan_cf_data.h @@ -37,6 +37,8 @@ struct arasan_cf_pdata { #define CF_BROKEN_PIO (1) #define CF_BROKEN_MWDMA (1 << 1) #define CF_BROKEN_UDMA (1 << 2) + /* This is platform specific data for the DMA controller */ + void *dma_priv; }; static inline void |