OMAP3: PM: Ensure MUSB block can idle when driver not loaded
[linux-ginger.git] / arch / powerpc / include / asm / device.h
blob7d2277cef09a8502b22bdea95185f132a479f7db
1 /*
2 * Arch specific extensions to struct device
4 * This file is released under the GPLv2
5 */
6 #ifndef _ASM_POWERPC_DEVICE_H
7 #define _ASM_POWERPC_DEVICE_H
9 struct dma_mapping_ops;
10 struct device_node;
12 struct dev_archdata {
13 /* Optional pointer to an OF device node */
14 struct device_node *of_node;
16 /* DMA operations on that device */
17 struct dma_mapping_ops *dma_ops;
18 void *dma_data;
21 static inline void dev_archdata_set_node(struct dev_archdata *ad,
22 struct device_node *np)
24 ad->of_node = np;
27 static inline struct device_node *
28 dev_archdata_get_node(const struct dev_archdata *ad)
30 return ad->of_node;
33 #endif /* _ASM_POWERPC_DEVICE_H */