diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-22 15:08:57 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-22 15:08:57 +0400 |
commit | 0b88641f1bafdbd087d5e63987a30cc0eadd63b9 (patch) | |
tree | 81dcf756db373444140bb2623584710c628e3048 /arch/sparc/include/asm/of_device.h | |
parent | fbdbf709938d155c719c76b9894d28342632c797 (diff) | |
parent | 72d31053f62c4bc464c2783974926969614a8649 (diff) | |
download | linux-0b88641f1bafdbd087d5e63987a30cc0eadd63b9.tar.xz |
Merge commit 'v2.6.27-rc7' into x86/debug
Diffstat (limited to 'arch/sparc/include/asm/of_device.h')
-rw-r--r-- | arch/sparc/include/asm/of_device.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/of_device.h b/arch/sparc/include/asm/of_device.h new file mode 100644 index 000000000000..bba777a416d3 --- /dev/null +++ b/arch/sparc/include/asm/of_device.h @@ -0,0 +1,37 @@ +#ifndef _ASM_SPARC_OF_DEVICE_H +#define _ASM_SPARC_OF_DEVICE_H +#ifdef __KERNEL__ + +#include <linux/device.h> +#include <linux/of.h> +#include <linux/mod_devicetable.h> +#include <asm/openprom.h> + +/* + * The of_device is a kind of "base class" that is a superset of + * struct device for use by devices attached to an OF node and + * probed using OF properties. + */ +struct of_device +{ + struct device_node *node; + struct device dev; + struct resource resource[PROMREG_MAX]; + unsigned int irqs[PROMINTR_MAX]; + int num_irqs; + + void *sysdata; + + int slot; + int portid; + int clock_freq; +}; + +extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); +extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); + +/* This is just here during the transition */ +#include <linux/of_platform.h> + +#endif /* __KERNEL__ */ +#endif /* _ASM_SPARC_OF_DEVICE_H */ |