powerpc: Remove addr_needs_map in struct dma_mapping_ops
[deliverable/linux.git] / arch / powerpc / include / asm / device.h
CommitLineData
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
12d04eef
BH
9struct dma_mapping_ops;
10struct device_node;
11
12struct 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;
762afb73
FT
19#ifdef CONFIG_SWIOTLB
20 dma_addr_t max_direct_dma_addr;
21#endif
12d04eef
BH
22};
23
3f3b1632
AV
24static inline void dev_archdata_set_node(struct dev_archdata *ad,
25 struct device_node *np)
26{
27 ad->of_node = np;
28}
29
30static inline struct device_node *
31dev_archdata_get_node(const struct dev_archdata *ad)
32{
33 return ad->of_node;
34}
35
12d04eef 36#endif /* _ASM_POWERPC_DEVICE_H */
This page took 0.270766 seconds and 5 git commands to generate.