of_platform.h 990 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _ASM_POWERPC_OF_PLATFORM_H
  2. #define _ASM_POWERPC_OF_PLATFORM_H
  3. /*
  4. * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
  5. * <benh@kernel.crashing.org>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. *
  12. */
  13. /* Platform devices and busses creation */
  14. extern struct of_device *of_platform_device_create(struct device_node *np,
  15. const char *bus_id,
  16. struct device *parent);
  17. /* pseudo "matches" value to not do deep probe */
  18. #define OF_NO_DEEP_PROBE ((struct of_device_id *)-1)
  19. extern int of_platform_bus_probe(struct device_node *root,
  20. const struct of_device_id *matches,
  21. struct device *parent);
  22. extern struct of_device *of_find_device_by_phandle(phandle ph);
  23. extern void of_instantiate_rtc(void);
  24. #endif /* _ASM_POWERPC_OF_PLATFORM_H */