1 /* This file is part of the program psim.
3 Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
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
30 struct hw
*hw_tree_parse
33 ...) __attribute__ ((format (printf
, 2, 3)));
44 The entire device tree can be traversed using the
45 <<device_tree_traverse()>> function. The traversal can be in
46 either prefix or postfix order.
50 typedef void (hw_tree_traverse_function
)
56 hw_tree_traverse_function
*prefix
,
57 hw_tree_traverse_function
*postfix
,
63 The function <<hw_tree_find_device()>> will attempt to locate the
64 specified device within the tree. If the device is not found a
65 NULL device is returned.
69 struct hw
* hw_tree_find_device
74 const struct hw_property
*hw_tree_find_property
76 const char *path_to_property
);
78 int hw_tree_find_boolean_property
80 const char *path_to_property
);
82 signed_cell hw_tree_find_integer_property
84 const char *path_to_property
);
87 device_instance
*hw_tree_find_ihandle_property
89 const char *path_to_property
);
92 const char *hw_tree_find_string_property
94 const char *path_to_property
);
97 /* Perform a soft reset on the created tree. */