of_device.h 728 B

12345678910111213141516171819202122232425262728
  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_node *node; /* to be obsoleted */
  14. u64 dma_mask; /* DMA mask */
  15. struct device dev; /* Generic device interface */
  16. };
  17. extern struct of_device *of_device_alloc(struct device_node *np,
  18. const char *bus_id,
  19. struct device *parent);
  20. extern int of_device_uevent(struct device *dev,
  21. struct kobj_uevent_env *env);
  22. #endif /* __KERNEL__ */
  23. #endif /* _ASM_POWERPC_OF_DEVICE_H */