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 | */ |
Benjamin Herrenschmidt | 12d04ee | 2006-11-11 17:25:02 +1100 | [diff] [blame] | 6 | #ifndef _ASM_POWERPC_DEVICE_H |
| 7 | #define _ASM_POWERPC_DEVICE_H |
Benjamin Herrenschmidt | c6dbaef | 2006-11-11 17:18:39 +1100 | [diff] [blame] | 8 | |
Benjamin Herrenschmidt | 12d04ee | 2006-11-11 17:25:02 +1100 | [diff] [blame] | 9 | struct dma_mapping_ops; |
| 10 | struct device_node; |
| 11 | |
| 12 | struct dev_archdata { |
| 13 | /* Optional pointer to an OF device node */ |
| 14 | struct device_node *of_node; |
| 15 | |
| 16 | /* DMA operations on that device */ |
| 17 | struct dma_mapping_ops *dma_ops; |
| 18 | void *dma_data; |
| 19 | |
| 20 | /* NUMA node if applicable */ |
| 21 | int numa_node; |
| 22 | }; |
| 23 | |
| 24 | #endif /* _ASM_POWERPC_DEVICE_H */ |