Linux 2.6.35-rc2
[linux/fpc-iii.git] / arch / microblaze / include / asm / of_device.h
blob73cb98040982434f87c4761616186b3c004bd51d
1 /*
2 * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu>
4 * based on PowerPC of_device.h
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
11 #ifndef _ASM_MICROBLAZE_OF_DEVICE_H
12 #define _ASM_MICROBLAZE_OF_DEVICE_H
13 #ifdef __KERNEL__
15 #include <linux/device.h>
16 #include <linux/of.h>
19 * The of_device is a kind of "base class" that is a superset of
20 * struct device for use by devices attached to an OF node and
21 * probed using OF properties.
23 struct of_device {
24 struct device dev; /* Generic device interface */
25 struct pdev_archdata archdata;
28 extern ssize_t of_device_get_modalias(struct of_device *ofdev,
29 char *str, ssize_t len);
31 extern struct of_device *of_device_alloc(struct device_node *np,
32 const char *bus_id,
33 struct device *parent);
35 extern int of_device_uevent(struct device *dev,
36 struct kobj_uevent_env *env);
38 extern void of_device_make_bus_id(struct of_device *dev);
40 /* This is just here during the transition */
41 #include <linux/of_device.h>
43 #endif /* __KERNEL__ */
44 #endif /* _ASM_MICROBLAZE_OF_DEVICE_H */