Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 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> |
Greg Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 12 | #include <linux/module.h> |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 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 | */ |
| 23 | unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = { |
| 24 | #ifdef MCFDMA_BASE0 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 25 | MCFDMA_BASE0, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 26 | #endif |
| 27 | #ifdef MCFDMA_BASE1 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 28 | MCFDMA_BASE1, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 29 | #endif |
| 30 | #ifdef MCFDMA_BASE2 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 31 | MCFDMA_BASE2, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 32 | #endif |
| 33 | #ifdef MCFDMA_BASE3 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 34 | MCFDMA_BASE3, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 35 | #endif |
| 36 | }; |
Greg Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 37 | EXPORT_SYMBOL(dma_base_addr); |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 38 | |
| 39 | unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; |
Greg Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 40 | EXPORT_SYMBOL(dma_device_address); |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 41 | |
| 42 | /***************************************************************************/ |