Commit | Line | Data |
---|---|---|
c6dbaef2 BH |
1 | /* |
2 | * Arch specific extensions to struct device | |
3 | * | |
4 | * This file is released under the GPLv2 | |
5 | */ | |
12d04eef BH |
6 | #ifndef _ASM_POWERPC_DEVICE_H |
7 | #define _ASM_POWERPC_DEVICE_H | |
c6dbaef2 | 8 | |
45223c54 | 9 | struct dma_map_ops; |
12d04eef BH |
10 | struct device_node; |
11 | ||
12 | struct dev_archdata { | |
12d04eef | 13 | /* DMA operations on that device */ |
45223c54 | 14 | struct dma_map_ops *dma_ops; |
738ef42e BB |
15 | |
16 | /* | |
17 | * When an iommu is in use, dma_data is used as a ptr to the base of the | |
18 | * iommu_table. Otherwise, it is a simple numerical offset. | |
19 | */ | |
20 | union { | |
21 | dma_addr_t dma_offset; | |
22 | void *iommu_table_base; | |
23 | } dma_data; | |
24 | ||
762afb73 FT |
25 | #ifdef CONFIG_SWIOTLB |
26 | dma_addr_t max_direct_dma_addr; | |
27 | #endif | |
12d04eef BH |
28 | }; |
29 | ||
d7aacadd MD |
30 | struct pdev_archdata { |
31 | }; | |
32 | ||
12d04eef | 33 | #endif /* _ASM_POWERPC_DEVICE_H */ |