blob: 3702e087df2c4cbcdab561f7720a2d8f23ebc543 [file] [log] [blame]
Benjamin Herrenschmidtc6dbaef2006-11-11 17:18:39 +11001/*
2 * Arch specific extensions to struct device
3 *
4 * This file is released under the GPLv2
5 */
David S. Millere865f3e2007-07-18 20:59:54 -07006#ifndef _ASM_SPARC_DEVICE_H
7#define _ASM_SPARC_DEVICE_H
8
9struct device_node;
10struct of_device;
11
12struct dev_archdata {
David S. Millerad7ad572007-07-27 22:39:14 -070013 void *iommu;
14 void *stc;
15 void *host_controller;
16
David S. Millere865f3e2007-07-18 20:59:54 -070017 struct device_node *prom_node;
18 struct of_device *op;
David S. Millerc1b1a5f2008-03-19 04:52:48 -070019
20 int numa_node;
David S. Millere865f3e2007-07-18 20:59:54 -070021};
22
Anton Vorontsov3f3b1632008-11-28 09:13:23 +000023static inline void dev_archdata_set_node(struct dev_archdata *ad,
24 struct device_node *np)
25{
26 ad->prom_node = np;
27}
28
29static inline struct device_node *
30dev_archdata_get_node(const struct dev_archdata *ad)
31{
32 return ad->prom_node;
33}
34
David S. Millere865f3e2007-07-18 20:59:54 -070035#endif /* _ASM_SPARC_DEVICE_H */