1 /* The common simulator framework for GDB, the GNU Debugger.
3 Copyright 2002-2024 Free Software Foundation, Inc.
5 Contributed by Andrew Cagney and Red Hat.
7 This file is part of GDB.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
30 struct hw
*hw_tree_create
37 struct hw
*hw_tree_parse
40 ...) ATTRIBUTE_PRINTF (2, 3);
42 struct hw
*hw_tree_vparse
45 va_list ap
) ATTRIBUTE_PRINTF (2, 0);
51 typedef void (hw_tree_print_callback
)
58 hw_tree_print_callback
*print
,
64 The entire device tree can be traversed using the
65 <<device_tree_traverse()>> function. The traversal can be in
66 either prefix or postfix order.
70 typedef void (hw_tree_traverse_function
)
76 hw_tree_traverse_function
*prefix
,
77 hw_tree_traverse_function
*postfix
,
83 The function <<hw_tree_find_device()>> will attempt to locate the
84 specified device within the tree. If the device is not found a
85 NULL device is returned.
89 struct hw
* hw_tree_find_device
94 const struct hw_property
*hw_tree_find_property
96 const char *path_to_property
);
98 int hw_tree_find_boolean_property
100 const char *path_to_property
);
102 signed_cell hw_tree_find_integer_property
104 const char *path_to_property
);
107 device_instance
*hw_tree_find_ihandle_property
109 const char *path_to_property
);
112 const char *hw_tree_find_string_property
114 const char *path_to_property
);
117 /* Perform a soft reset on the created tree. */