Loading...
1// SPDX-License-Identifier: GPL-2.0
2/***************************************************************************/
3
4/*
5 * dma.c -- Freescale ColdFire DMA support
6 *
7 * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com)
8 */
9
10/***************************************************************************/
11
12#include <linux/kernel.h>
13#include <linux/module.h>
14#include <asm/dma.h>
15#include <asm/coldfire.h>
16#include <asm/mcfsim.h>
17#include <asm/mcfdma.h>
18
19/***************************************************************************/
20
21/*
22 * DMA channel base address table.
23 */
24unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
25#ifdef MCFDMA_BASE0
26 MCFDMA_BASE0,
27#endif
28#ifdef MCFDMA_BASE1
29 MCFDMA_BASE1,
30#endif
31#ifdef MCFDMA_BASE2
32 MCFDMA_BASE2,
33#endif
34#ifdef MCFDMA_BASE3
35 MCFDMA_BASE3,
36#endif
37};
38EXPORT_SYMBOL(dma_base_addr);
39
40unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
41EXPORT_SYMBOL(dma_device_address);
42
43/***************************************************************************/
1/***************************************************************************/
2
3/*
4 * dma.c -- Freescale ColdFire DMA support
5 *
6 * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com)
7 */
8
9/***************************************************************************/
10
11#include <linux/kernel.h>
12#include <linux/module.h>
13#include <asm/dma.h>
14#include <asm/coldfire.h>
15#include <asm/mcfsim.h>
16#include <asm/mcfdma.h>
17
18/***************************************************************************/
19
20/*
21 * DMA channel base address table.
22 */
23unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
24#ifdef MCFDMA_BASE0
25 MCFDMA_BASE0,
26#endif
27#ifdef MCFDMA_BASE1
28 MCFDMA_BASE1,
29#endif
30#ifdef MCFDMA_BASE2
31 MCFDMA_BASE2,
32#endif
33#ifdef MCFDMA_BASE3
34 MCFDMA_BASE3,
35#endif
36};
37EXPORT_SYMBOL(dma_base_addr);
38
39unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
40EXPORT_SYMBOL(dma_device_address);
41
42/***************************************************************************/