of_platform.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
  3. * <benh@kernel.crashing.org>
  4. * and Arnd Bergmann, IBM Corp.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. *
  11. */
  12. #undef DEBUG
  13. #include <linux/string.h>
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/module.h>
  17. #include <linux/mod_devicetable.h>
  18. #include <linux/pci.h>
  19. #include <linux/of.h>
  20. #include <linux/of_device.h>
  21. #include <linux/of_platform.h>
  22. #include <linux/errno.h>
  23. #include <linux/topology.h>
  24. #include <asm/atomic.h>
  25. /*
  26. * The list of OF IDs below is used for matching bus types in the
  27. * system whose devices are to be exposed as of_platform_devices.
  28. *
  29. * This is the default list valid for most platforms. This file provides
  30. * functions who can take an explicit list if necessary though
  31. *
  32. * The search is always performed recursively looking for children of
  33. * the provided device_node and recursively if such a children matches
  34. * a bus type in the list
  35. */
  36. const struct of_device_id of_default_bus_ids[] = {
  37. { .type = "soc", },
  38. { .compatible = "soc", },
  39. { .type = "plb5", },
  40. { .type = "plb4", },
  41. { .type = "opb", },
  42. { .type = "simple", },
  43. {},
  44. };