Skip to content

Commit d2ebfb3

Browse files
Russell King - ARM LinuxVinod Koul
authored andcommitted
dmaengine: add private header file
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>
1 parent 4d4e58d commit d2ebfb3

25 files changed

Lines changed: 51 additions & 2 deletions

‎drivers/dma/amba-pl08x.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
#include <linux/slab.h>
8686
#include <asm/hardware/pl080.h>
8787

88+
#include "dmaengine.h"
89+
8890
#define DRIVER_NAME "pl08xdmac"
8991

9092
static struct amba_driver pl08x_amba_driver;

‎drivers/dma/at_hdmac.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <linux/of_device.h>
2828

2929
#include "at_hdmac_regs.h"
30+
#include "dmaengine.h"
3031

3132
/*
3233
* Glossary

‎drivers/dma/coh901318.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <mach/coh901318.h>
2525

2626
#include "coh901318_lli.h"
27+
#include "dmaengine.h"
2728

2829
#define COHC_2_DEV(cohc) (&cohc->chan.dev->device)
2930

‎drivers/dma/dmaengine.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* The contents of this file are private to DMA engine drivers, and is not
3+
* part of the API to be used by DMA engine users.
4+
*/
5+
#ifndef DMAENGINE_H
6+
#define DMAENGINE_H
7+
8+
#include <linux/dmaengine.h>
9+
10+
#endif

‎drivers/dma/dw_dmac.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/slab.h>
2424

2525
#include "dw_dmac_regs.h"
26+
#include "dmaengine.h"
2627

2728
/*
2829
* This supports the Synopsys "DesignWare AHB Central DMA Controller",

‎drivers/dma/ep93xx_dma.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#include <mach/dma.h>
3030

31+
#include "dmaengine.h"
32+
3133
/* M2P registers */
3234
#define M2P_CONTROL 0x0000
3335
#define M2P_CONTROL_STALLINT BIT(0)

‎drivers/dma/fsldma.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <linux/dmapool.h>
3636
#include <linux/of_platform.h>
3737

38+
#include "dmaengine.h"
3839
#include "fsldma.h"
3940

4041
#define chan_dbg(chan, fmt, arg...) \

‎drivers/dma/imx-dma.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include <mach/dma-v1.h>
3131
#include <mach/hardware.h>
3232

33+
#include "dmaengine.h"
34+
3335
struct imxdma_channel {
3436
struct imxdma_engine *imxdma;
3537
unsigned int channel;

‎drivers/dma/imx-sdma.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#include <mach/dma.h>
4444
#include <mach/hardware.h>
4545

46+
#include "dmaengine.h"
47+
4648
/* SDMA registers */
4749
#define SDMA_H_C0PTR 0x000
4850
#define SDMA_H_INTR 0x004

‎drivers/dma/intel_mid_dma.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <linux/intel_mid_dma.h>
3030
#include <linux/module.h>
3131

32+
#include "dmaengine.h"
33+
3234
#define MAX_CHAN 4 /*max ch across controllers*/
3335
#include "intel_mid_dma_regs.h"
3436

0 commit comments

Comments
 (0)