summaryrefslogtreecommitdiffstats
path: root/drivers/dma/idma64.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-11-17 12:37:08 +0100
committerVinod Koul <vinod.koul@intel.com>2015-12-05 09:24:28 +0100
commite3fdb1894cfac6dd4a5bb24d3232fd97ddf74c93 (patch)
tree8916c7ada04d6831f6a75dde70aa98885ed35c7a /drivers/dma/idma64.h
parentdmaengine: idma64: drop IRQ enable / disable in handler (diff)
downloadlinux-e3fdb1894cfac6dd4a5bb24d3232fd97ddf74c93.tar.xz
linux-e3fdb1894cfac6dd4a5bb24d3232fd97ddf74c93.zip
dmaengine: idma64: set maximum allowed segment size for DMA
This tells, for example, IOMMU what the maximum size of a segment the DMA controller can send. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/idma64.h')
-rw-r--r--drivers/dma/idma64.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/idma64.h b/drivers/dma/idma64.h
index f6aeff0af8a5..8423f13ed0da 100644
--- a/drivers/dma/idma64.h
+++ b/drivers/dma/idma64.h
@@ -54,7 +54,8 @@
#define IDMA64C_CTLL_LLP_S_EN (1 << 28) /* src block chain */
/* Bitfields in CTL_HI */
-#define IDMA64C_CTLH_BLOCK_TS(x) ((x) & ((1 << 17) - 1))
+#define IDMA64C_CTLH_BLOCK_TS_MASK ((1 << 17) - 1)
+#define IDMA64C_CTLH_BLOCK_TS(x) ((x) & IDMA64C_CTLH_BLOCK_TS_MASK)
#define IDMA64C_CTLH_DONE (1 << 17)
/* Bitfields in CFG_LO */