Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-sparc / of_device.h
CommitLineData
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 */
15struct 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 30extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
e3a411a3 31extern 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 */