]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
dmaengine: add private header file
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Tue, 6 Mar 2012 22:34:26 +0000 (22:34 +0000)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 13 Mar 2012 06:06:44 +0000 (11:36 +0530)
Add a local private header file to contain definitions and declarations
which should only be used by DMA engine drivers.

We also fix linux/dmaengine.h to use LINUX_DMAENGINE_H to guard against
multiple inclusion.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
25 files changed:
drivers/dma/amba-pl08x.c
drivers/dma/at_hdmac.c
drivers/dma/coh901318.c
drivers/dma/dmaengine.h [new file with mode: 0644]
drivers/dma/dw_dmac.c
drivers/dma/ep93xx_dma.c
drivers/dma/fsldma.c
drivers/dma/imx-dma.c
drivers/dma/imx-sdma.c
drivers/dma/intel_mid_dma.c
drivers/dma/ioat/dma.c
drivers/dma/ioat/dma_v2.c
drivers/dma/iop-adma.c
drivers/dma/ipu/ipu_idmac.c
drivers/dma/mpc512x_dma.c
drivers/dma/mv_xor.c
drivers/dma/mxs-dma.c
drivers/dma/pch_dma.c
drivers/dma/pl330.c
drivers/dma/ppc4xx/adma.c
drivers/dma/shdma.c
drivers/dma/ste_dma40.c
drivers/dma/timb_dma.c
drivers/dma/txx9dmac.c
include/linux/dmaengine.h

index e510447a685a756dfd427a94ae59de0e2eceef38..45f5e66e1c844f0bba649d1730caea2a6a06b260 100644 (file)
@@ -85,6 +85,8 @@
 #include <linux/slab.h>
 #include <asm/hardware/pl080.h>
 
+#include "dmaengine.h"
+
 #define DRIVER_NAME    "pl08xdmac"
 
 static struct amba_driver pl08x_amba_driver;
index 6baf5d717262ff5346fd73b740fc8bb7ad0c7659..ce26ba3811443b4f1390d05ff0f8c69af8175ee0 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/of_device.h>
 
 #include "at_hdmac_regs.h"
+#include "dmaengine.h"
 
 /*
  * Glossary
index 521434bc313088a5e28a65db40e843dbc8949231..fb0d1245ade510f3b0f741743fcad7a69f8d3733 100644 (file)
@@ -24,6 +24,7 @@
 #include <mach/coh901318.h>
 
 #include "coh901318_lli.h"
+#include "dmaengine.h"
 
 #define COHC_2_DEV(cohc) (&cohc->chan.dev->device)
 
diff --git a/drivers/dma/dmaengine.h b/drivers/dma/dmaengine.h
new file mode 100644 (file)
index 0000000..968570d
--- /dev/null
@@ -0,0 +1,10 @@
+/*
+ * The contents of this file are private to DMA engine drivers, and is not
+ * part of the API to be used by DMA engine users.
+ */
+#ifndef DMAENGINE_H
+#define DMAENGINE_H
+
+#include <linux/dmaengine.h>
+
+#endif
index 5bd23006ff4ace9f21ef2d708b81638906e6a5c9..b279e1920725f4315292a2611b21a90704de84bc 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 
 #include "dw_dmac_regs.h"
+#include "dmaengine.h"
 
 /*
  * This supports the Synopsys "DesignWare AHB Central DMA Controller",
index bc457878cffd18cb6d028dd5ff93b2ecceba7b94..326019832a1339c8a647ff0a2b574c429b4452c2 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <mach/dma.h>
 
+#include "dmaengine.h"
+
 /* M2P registers */
 #define M2P_CONTROL                    0x0000
 #define M2P_CONTROL_STALLINT           BIT(0)
index 9b5cb8a43cfaae2af82ba52c02e3dddcc344d0ec..2ebbe572f9e0bce792b8e1380c6aa6e60e3d8ed6 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/dmapool.h>
 #include <linux/of_platform.h>
 
+#include "dmaengine.h"
 #include "fsldma.h"
 
 #define chan_dbg(chan, fmt, arg...)                                    \
index d3ddcba87f81b9d333afbe3082985029baa0d2cf..cead5e4bd38c92da0828cc3f603875e4da4892ff 100644 (file)
@@ -30,6 +30,8 @@
 #include <mach/dma-v1.h>
 #include <mach/hardware.h>
 
+#include "dmaengine.h"
+
 struct imxdma_channel {
        struct imxdma_engine            *imxdma;
        unsigned int                    channel;
index 49aa4e876645f622e62a41ad9ab0b835b20e08bf..48a791f93adcb32366e0d711d1677e2dd52809d0 100644 (file)
@@ -43,6 +43,8 @@
 #include <mach/dma.h>
 #include <mach/hardware.h>
 
+#include "dmaengine.h"
+
 /* SDMA registers */
 #define SDMA_H_C0PTR           0x000
 #define SDMA_H_INTR            0x004
index 40e47e6c7ed8d94d902ddd154b41b757a7c05a7c..55d0451670b048fd24c28545fd513ddbfb528225 100644 (file)
@@ -29,6 +29,8 @@
 #include <linux/intel_mid_dma.h>
 #include <linux/module.h>
 
+#include "dmaengine.h"
+
 #define MAX_CHAN       4 /*max ch across controllers*/
 #include "intel_mid_dma_regs.h"
 
index fab440af1f9abb5227e327e1936e0c06c1898ef6..dfe411b2014fa4a63f986ca87c76738bdce41395 100644 (file)
@@ -40,6 +40,8 @@
 #include "registers.h"
 #include "hw.h"
 
+#include "../dmaengine.h"
+
 int ioat_pending_level = 4;
 module_param(ioat_pending_level, int, 0644);
 MODULE_PARM_DESC(ioat_pending_level,
index d3f0aff2c02a91ac4e068a2fbc7886deb4630e97..6c1e6754d9bdb1ef6c9e15843b1047cf965c5d78 100644 (file)
@@ -41,6 +41,8 @@
 #include "registers.h"
 #include "hw.h"
 
+#include "../dmaengine.h"
+
 int ioat_ring_alloc_order = 8;
 module_param(ioat_ring_alloc_order, int, 0644);
 MODULE_PARM_DESC(ioat_ring_alloc_order,
index d8027c2b42c053bd7853646c1fbbe2bf18bd9789..650bf1e185e802a1eb3f3665d518c0dd2a8f1650 100644 (file)
@@ -36,6 +36,8 @@
 
 #include <mach/adma.h>
 
+#include "dmaengine.h"
+
 #define to_iop_adma_chan(chan) container_of(chan, struct iop_adma_chan, common)
 #define to_iop_adma_device(dev) \
        container_of(dev, struct iop_adma_device, common)
index 9149ade6a5d9ee0602df632174d988d309931e63..0fcff6508fb1c2b14079242400291982574881bc 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <mach/ipu.h>
 
+#include "../dmaengine.h"
 #include "ipu_intern.h"
 
 #define FS_VF_IN_VALID 0x00000002
index 39a5cde9f42824af5d0c0fc47351d7de2dcb5cfa..c56b3fe5d3fabdb433db6850f2dd8baa0ce078ce 100644 (file)
@@ -44,6 +44,8 @@
 
 #include <linux/random.h>
 
+#include "dmaengine.h"
+
 /* Number of DMA Transfer descriptors allocated per channel */
 #define MPC_DMA_DESCRIPTORS    64
 
index c6a84dac112c8201133e9471745294e7d4751c2f..ee61778ba8a275f81cbda47e22be9bdc50780600 100644 (file)
@@ -26,6 +26,8 @@
 #include <linux/platform_device.h>
 #include <linux/memory.h>
 #include <plat/mv_xor.h>
+
+#include "dmaengine.h"
 #include "mv_xor.h"
 
 static void mv_xor_issue_pending(struct dma_chan *chan);
index 3696e6e4143aac041bb2c140fbae0a1352e4fd27..daa84ee2a187626d37180be863f1bf323c75e24c 100644 (file)
@@ -28,6 +28,8 @@
 #include <mach/dma.h>
 #include <mach/common.h>
 
+#include "dmaengine.h"
+
 /*
  * NOTE: The term "PIO" throughout the mxs-dma implementation means
  * PIO mode of mxs apbh-dma and apbx-dma.  With this working mode,
index 79a71858497ca22c17d0ab70e83351b5629592ca..2b3479d850c95fe034a105b4eaeaba5972b317a4 100644 (file)
@@ -25,6 +25,8 @@
 #include <linux/module.h>
 #include <linux/pch_dma.h>
 
+#include "dmaengine.h"
+
 #define DRV_NAME "pch-dma"
 
 #define DMA_CTL0_DISABLE               0x0
index 99c31a76e74efa086747ed5d9bf72fab499d1f59..2db70748403fbfcb32520e1c1005635008ca3c00 100644 (file)
@@ -21,6 +21,8 @@
 #include <linux/scatterlist.h>
 #include <linux/of.h>
 
+#include "dmaengine.h"
+
 #define NR_DEFAULT_DESC        16
 
 enum desc_status {
index f878322ecbcbe870746cf6fd7c52fd1c90bed069..40082ec8326ca47178f5331a2856e940114d6e3b 100644 (file)
@@ -46,6 +46,7 @@
 #include <asm/dcr.h>
 #include <asm/dcr-regs.h>
 #include "adma.h"
+#include "../dmaengine.h"
 
 enum ppc_adma_init_code {
        PPC_ADMA_INIT_OK = 0,
index ae84c12e3865fa5b3537026215d570950ccb68bb..c2914330b8fc002a60b13bc8773c93d2b853f918 100644 (file)
@@ -30,6 +30,8 @@
 #include <linux/kdebug.h>
 #include <linux/spinlock.h>
 #include <linux/rculist.h>
+
+#include "dmaengine.h"
 #include "shdma.h"
 
 /* DMA descriptor control */
index cfca2a06d1af986b307c463f97fa95de1d29ccb3..156b98f661a39c74de8b8a9bdd628a9598d7222b 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <plat/ste_dma40.h>
 
+#include "dmaengine.h"
 #include "ste_dma40_ll.h"
 
 #define D40_NAME "dma40"
index a1d15598cf7edff1a311f9e8fd55469e7e979979..4b61879284d1d266031bdfee3ac96a0752b5c99e 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <linux/timb_dma.h>
 
+#include "dmaengine.h"
+
 #define DRIVER_NAME "timb-dma"
 
 /* Global DMA registers */
index a917b6723bad1ae2abb4f6d559021f2c641f1ba8..db6d809d4d04b77b03f8c7056be1e58cb24c5524 100644 (file)
@@ -15,6 +15,8 @@
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/scatterlist.h>
+
+#include "dmaengine.h"
 #include "txx9dmac.h"
 
 static struct txx9dmac_chan *to_txx9dmac_chan(struct dma_chan *chan)
index c59c4f0c2cc99619f6b290acb54a322cb79e8ee1..715babf4bffec2188b9a6ada3916a6a9c0fcff39 100644 (file)
@@ -18,8 +18,8 @@
  * The full GNU General Public License is included in this distribution in the
  * file called COPYING.
  */
-#ifndef DMAENGINE_H
-#define DMAENGINE_H
+#ifndef LINUX_DMAENGINE_H
+#define LINUX_DMAENGINE_H
 
 #include <linux/device.h>
 #include <linux/uio.h>