1 /* This file is part of the program psim.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 struct hw *hw_tree_create
33 struct hw *hw_tree_parse
36 ...) __attribute__ ((format (printf, 2, 3)));
38 struct hw *hw_tree_vparse
47 typedef void (hw_tree_print_callback)
54 hw_tree_print_callback *print,
60 The entire device tree can be traversed using the
61 <<device_tree_traverse()>> function. The traversal can be in
62 either prefix or postfix order.
66 typedef void (hw_tree_traverse_function)
72 hw_tree_traverse_function *prefix,
73 hw_tree_traverse_function *postfix,
79 The function <<hw_tree_find_device()>> will attempt to locate the
80 specified device within the tree. If the device is not found a
81 NULL device is returned.
85 struct hw * hw_tree_find_device
90 const struct hw_property *hw_tree_find_property
92 const char *path_to_property);
94 int hw_tree_find_boolean_property
96 const char *path_to_property);
98 signed_cell hw_tree_find_integer_property
100 const char *path_to_property);
103 device_instance *hw_tree_find_ihandle_property
105 const char *path_to_property);
108 const char *hw_tree_find_string_property
110 const char *path_to_property);
113 /* Perform a soft reset on the created tree. */