summaryrefslogtreecommitdiffstats
path: root/drivers/dma/hsu/hsu.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-03-18 14:26:36 +0200
committerVinod Koul <vinod.koul@intel.com>2016-04-04 09:42:00 -0700
commit17b3cf4233d77698df0e5ff39303c145ac355d6a (patch)
tree4bb92300c5afd6b07eb9213caae2e9e307fe1858 /drivers/dma/hsu/hsu.h
parentc36a0176ba678fd1a4bf985fd62f43dd4f4d4a03 (diff)
downloadlinux-17b3cf4233d77698df0e5ff39303c145ac355d6a.tar.bz2
dmaengine: hsu: 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/hsu/hsu.h')
-rw-r--r--drivers/dma/hsu/hsu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/hsu/hsu.h b/drivers/dma/hsu/hsu.h
index 578a8ee8cd05..50a9d1bda253 100644
--- a/drivers/dma/hsu/hsu.h
+++ b/drivers/dma/hsu/hsu.h
@@ -55,6 +55,10 @@
#define HSU_CH_DCR_CHEI BIT(23)
#define HSU_CH_DCR_CHTOI(x) BIT(24 + (x))
+/* Bits in HSU_CH_DxTSR */
+#define HSU_CH_DxTSR_MASK GENMASK(15, 0)
+#define HSU_CH_DxTSR_TSR(x) ((x) & HSU_CH_DxTSR_MASK)
+
struct hsu_dma_sg {
dma_addr_t addr;
unsigned int len;