diff options
author | Michal Simek <monstr@monstr.eu> | 2010-01-14 05:21:02 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-03-11 07:56:29 -0500 |
commit | ccfe27d7000668b02d10fc3e06aa49e3e3603162 (patch) | |
tree | d8d624f6bd9aebf6a848f9762b0d8ed62ee2c5a6 /arch/microblaze/include/asm/device.h | |
parent | 522dba7134d6b2e5821d3457f7941ec34f668e6d (diff) |
microblaze: Support DMA
Add DMA support for Microblaze. There are some part of this new feature:
1. Basic DMA support
2. Enable DMA debug option
3. Setup notifier
Ad 1. dma-mapping come from powerpc and x86 version and it is based on
generic dma-mapping-common.h
Ad 2. DMA support debug features which is used in generic file.
For more information please look at Documentation/DMA-API.txt
Ad 3. notifier is very important to setup dma_ops. Without this part
for example ll_temac driver failed because there are no setup dma operations.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/device.h')
-rw-r--r-- | arch/microblaze/include/asm/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h index 78a038452c0f..402b46e630f6 100644 --- a/arch/microblaze/include/asm/device.h +++ b/arch/microblaze/include/asm/device.h | |||
@@ -14,6 +14,10 @@ struct device_node; | |||
14 | struct dev_archdata { | 14 | struct dev_archdata { |
15 | /* Optional pointer to an OF device node */ | 15 | /* Optional pointer to an OF device node */ |
16 | struct device_node *of_node; | 16 | struct device_node *of_node; |
17 | |||
18 | /* DMA operations on that device */ | ||
19 | struct dma_map_ops *dma_ops; | ||
20 | void *dma_data; | ||
17 | }; | 21 | }; |
18 | 22 | ||
19 | struct pdev_archdata { | 23 | struct pdev_archdata { |