summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/hw.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2016-02-10 23:00:32 +0100
committerVinod Koul <vinod.koul@intel.com>2016-02-15 18:36:53 +0100
commitdd4645ebb7d100bb04ba38ec58b499cbe95322fa (patch)
tree3d1a8fff4a89b359952d77249dcccc5a9cc9276c /drivers/dma/ioat/hw.h
parentdmaengine: IOATDMA: Removing descriptor ring reshape (diff)
downloadlinux-dd4645ebb7d100bb04ba38ec58b499cbe95322fa.tar.xz
linux-dd4645ebb7d100bb04ba38ec58b499cbe95322fa.zip
dmaengine: IOATDMA: Allocate DMA descriptor ring in contig DMA memory
Future IOATDMA hardware will take advantage of descriptors residing in contiguous memory. Setting the descriptor ring in max config DMA memory of 2MB. Each channel will need 2 of these chunks. This should provide 64k of 64B descriptors. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ioat/hw.h')
-rw-r--r--drivers/dma/ioat/hw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/ioat/hw.h b/drivers/dma/ioat/hw.h
index 690e3b4f8202..8e67895bcca3 100644
--- a/drivers/dma/ioat/hw.h
+++ b/drivers/dma/ioat/hw.h
@@ -73,6 +73,8 @@
int system_has_dca_enabled(struct pci_dev *pdev);
+#define IOAT_DESC_SZ 64
+
struct ioat_dma_descriptor {
uint32_t size;
union {