of_device.h 833 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef _ASM_MICROBLAZE_OF_DEVICE_H
  11. #define _ASM_MICROBLAZE_OF_DEVICE_H
  12. #ifdef __KERNEL__
  13. #include <linux/device.h>
  14. #include <linux/of.h>
  15. extern ssize_t of_device_get_modalias(struct of_device *ofdev,
  16. char *str, ssize_t len);
  17. extern struct of_device *of_device_alloc(struct device_node *np,
  18. const char *bus_id,
  19. struct device *parent);
  20. extern void of_device_make_bus_id(struct of_device *dev);
  21. /* This is just here during the transition */
  22. #include <linux/of_device.h>
  23. #endif /* __KERNEL__ */
  24. #endif /* _ASM_MICROBLAZE_OF_DEVICE_H */