Commit | Line | Data |
---|---|---|
fd531431 DM |
1 | #ifndef _ASM_SPARC_OF_DEVICE_H |
2 | #define _ASM_SPARC_OF_DEVICE_H | |
3 | #ifdef __KERNEL__ | |
4 | ||
5 | #include <linux/device.h> | |
f898f8db | 6 | #include <linux/of.h> |
fd531431 | 7 | #include <linux/mod_devicetable.h> |
cf44bbc2 | 8 | #include <asm/openprom.h> |
fd531431 | 9 | |
fd531431 DM |
10 | /* |
11 | * The of_device is a kind of "base class" that is a superset of | |
12 | * struct device for use by devices attached to an OF node and | |
13 | * probed using OF properties. | |
14 | */ | |
15 | struct of_device | |
16 | { | |
cf44bbc2 DM |
17 | struct device_node *node; |
18 | struct device dev; | |
19 | struct resource resource[PROMREG_MAX]; | |
8f96cd1a DM |
20 | unsigned int irqs[PROMINTR_MAX]; |
21 | int num_irqs; | |
cf44bbc2 DM |
22 | |
23 | void *sysdata; | |
24 | ||
25 | int slot; | |
26 | int portid; | |
27 | int clock_freq; | |
fd531431 | 28 | }; |
fd531431 | 29 | |
3ca9fab4 | 30 | extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); |
e3a411a3 | 31 | extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); |
3ca9fab4 | 32 | |
b41912ca | 33 | /* These are just here during the transition */ |
f898f8db | 34 | #include <linux/of_device.h> |
b41912ca | 35 | #include <linux/of_platform.h> |
fd531431 DM |
36 | |
37 | #endif /* __KERNEL__ */ | |
38 | #endif /* _ASM_SPARC_OF_DEVICE_H */ |