diff options
Diffstat (limited to 'arch/microblaze/include/asm/of_device.h')
| -rw-r--r-- | arch/microblaze/include/asm/of_device.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/of_device.h b/arch/microblaze/include/asm/of_device.h new file mode 100644 index 000000000000..ba917cfaefe6 --- /dev/null +++ b/arch/microblaze/include/asm/of_device.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu> | ||
| 3 | * | ||
| 4 | * based on PowerPC of_device.h | ||
| 5 | * | ||
| 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 | */ | ||
| 10 | |||
| 11 | #ifndef _ASM_MICROBLAZE_OF_DEVICE_H | ||
| 12 | #define _ASM_MICROBLAZE_OF_DEVICE_H | ||
| 13 | #ifdef __KERNEL__ | ||
| 14 | |||
| 15 | #include <linux/device.h> | ||
| 16 | #include <linux/of.h> | ||
| 17 | |||
| 18 | /* | ||
| 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. | ||
| 22 | */ | ||
| 23 | struct of_device { | ||
| 24 | struct device_node *node; /* to be obsoleted */ | ||
| 25 | u64 dma_mask; /* DMA mask */ | ||
| 26 | struct device dev; /* Generic device interface */ | ||
| 27 | }; | ||
| 28 | |||
| 29 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, | ||
| 30 | char *str, ssize_t len); | ||
| 31 | |||
| 32 | extern struct of_device *of_device_alloc(struct device_node *np, | ||
| 33 | const char *bus_id, | ||
| 34 | struct device *parent); | ||
| 35 | |||
| 36 | extern int of_device_uevent(struct device *dev, | ||
| 37 | struct kobj_uevent_env *env); | ||
| 38 | |||
| 39 | extern void of_device_make_bus_id(struct of_device *dev); | ||
| 40 | |||
| 41 | /* This is just here during the transition */ | ||
| 42 | #include <linux/of_device.h> | ||
| 43 | |||
| 44 | #endif /* __KERNEL__ */ | ||
| 45 | #endif /* _ASM_MICROBLAZE_OF_DEVICE_H */ | ||
