blob: b38415c95fc02625c9d5ef6aefbbf337d2c44851 [file] [log] [blame]
Stepan Moskovchenko97d7b4d2012-12-03 19:19:38 -08001/*
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/**
22 * struct alias_prop - Alias property in 'aliases' node
23 * @link: List node to link the structure in aliases_lookup list
24 * @alias: Alias property name
25 * @np: Pointer to device_node that the alias stands for
26 * @id: Index value from end of alias name
27 * @stem: Alias string without the index
28 *
29 * The structure represents one alias property of 'aliases' node as
30 * an entry in aliases_lookup list.
31 */
32struct alias_prop {
33 struct list_head link;
34 const char *alias;
35 struct device_node *np;
36 int id;
37 char stem[0];
38};
39
40extern struct mutex of_aliases_mutex;
41extern struct list_head aliases_lookup;