of_private.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Procedures for creating, accessing and interpreting the device tree.
  3. *
  4. * Paul Mackerras August 1996.
  5. * Copyright (C) 1996-2005 Paul Mackerras.
  6. *
  7. * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner.
  8. * {engebret|bergner}@us.ibm.com
  9. *
  10. * Adapted for sparc and sparc64 by David S. Miller davem@davemloft.net
  11. *
  12. * Reconsolidated from arch/x/kernel/prom.c by Stephen Rothwell and
  13. * Grant Likely.
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License
  17. * as published by the Free Software Foundation; either version
  18. * 2 of the License, or (at your option) any later version.
  19. */
  20. /**
  21. * struct alias_prop - Alias property in 'aliases' node
  22. * @link: List node to link the structure in aliases_lookup list
  23. * @alias: Alias property name
  24. * @np: Pointer to device_node that the alias stands for
  25. * @id: Index value from end of alias name
  26. * @stem: Alias string without the index
  27. *
  28. * The structure represents one alias property of 'aliases' node as
  29. * an entry in aliases_lookup list.
  30. */
  31. struct alias_prop {
  32. struct list_head link;
  33. const char *alias;
  34. struct device_node *np;
  35. int id;
  36. char stem[0];
  37. };
  38. extern struct mutex of_aliases_mutex;
  39. extern struct list_head aliases_lookup;