summaryrefslogtreecommitdiff
path: root/drivers/dma/ste_dma40_ll.h
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-01-25 11:18:30 +0100
committerLinus WALLEIJ <linus.walleij@stericsson.com>2011-10-22 18:46:39 +0200
commit50420ffb1ad811dfa4cc2125b22f9c92e2cf2b7c (patch)
tree030aed2f77d7c01bab80be83b232ed0f9a9c8ccf /drivers/dma/ste_dma40_ll.h
parent8b9409a1034dec4f72ffc555e7c2ad14c2037b48 (diff)
dma40: use flags to reduce parameter count
ST-Ericsson ID: 362972 ST-Ericsson FOSS-OUT ID: NA ST-Ericsson Linux next: NA Change-Id: I9e7b1b347c56d320ec573e68cd40581866bf0882 Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34911 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: QATOOLS
Diffstat (limited to 'drivers/dma/ste_dma40_ll.h')
-rw-r--r--drivers/dma/ste_dma40_ll.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/dma/ste_dma40_ll.h b/drivers/dma/ste_dma40_ll.h
index 36a7773d845..681ae0db206 100644
--- a/drivers/dma/ste_dma40_ll.h
+++ b/drivers/dma/ste_dma40_ll.h
@@ -308,6 +308,11 @@ struct d40_def_lcsp {
/* Physical channels */
+enum d40_lli_flags {
+ LLI_ADDR_INC = 1 << 0,
+ LLI_TERM_INT = 1 << 1,
+};
+
void d40_phy_cfg(struct stedma40_chan_cfg *cfg,
u32 *src_cfg,
u32 *dst_cfg,
@@ -332,9 +337,8 @@ int d40_phy_fill_lli(struct d40_phy_lli *lli,
u32 data_size,
dma_addr_t next_lli,
u32 reg_cfg,
- bool term_int,
- bool is_device,
- struct stedma40_half_channel_info *info);
+ struct stedma40_half_channel_info *info,
+ unsigned int flags);
/* Logical channels */
@@ -343,7 +347,7 @@ void d40_log_fill_lli(struct d40_log_lli *lli,
u32 data_size,
u32 reg_cfg,
u32 data_width,
- bool addr_inc);
+ unsigned int flags);
int d40_log_sg_to_lli(struct scatterlist *sg,
int sg_len,