of_device.h 678 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_POWERPC_OF_DEVICE_H
  2. #define _ASM_POWERPC_OF_DEVICE_H
  3. #ifdef __KERNEL__
  4. #include <linux/device.h>
  5. #include <linux/of.h>
  6. /*
  7. * The of_device is a kind of "base class" that is a superset of
  8. * struct device for use by devices attached to an OF node and
  9. * probed using OF properties.
  10. */
  11. struct of_device
  12. {
  13. struct device dev; /* Generic device interface */
  14. struct pdev_archdata archdata;
  15. };
  16. extern struct of_device *of_device_alloc(struct device_node *np,
  17. const char *bus_id,
  18. struct device *parent);
  19. extern int of_device_uevent(struct device *dev,
  20. struct kobj_uevent_env *env);
  21. #endif /* __KERNEL__ */
  22. #endif /* _ASM_POWERPC_OF_DEVICE_H */