Benjamin Herrenschmidt | c6dbaef | 2006-11-11 17:18:39 +1100 | [diff] [blame] | 1 | /* |
| 2 | * Arch specific extensions to struct device |
| 3 | * |
| 4 | * This file is released under the GPLv2 |
| 5 | */ |
David Daney | 48e1fd5 | 2010-10-01 13:27:32 -0700 | [diff] [blame] | 6 | #ifndef _ASM_MIPS_DEVICE_H |
| 7 | #define _ASM_MIPS_DEVICE_H |
| 8 | |
| 9 | struct dma_map_ops; |
| 10 | |
| 11 | struct dev_archdata { |
| 12 | /* DMA operations on that device */ |
| 13 | struct dma_map_ops *dma_ops; |
Paul Burton | 20d3306 | 2016-10-05 18:18:16 +0100 | [diff] [blame] | 14 | |
| 15 | #ifdef CONFIG_DMA_PERDEV_COHERENT |
| 16 | /* Non-zero if DMA is coherent with CPU caches */ |
| 17 | bool dma_coherent; |
| 18 | #endif |
David Daney | 48e1fd5 | 2010-10-01 13:27:32 -0700 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | struct pdev_archdata { |
| 22 | }; |
| 23 | |
| 24 | #endif /* _ASM_MIPS_DEVICE_H*/ |