Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property
1 /* SPDX-License-Identifier: GPL-2.0 */
29 /* Root node of the prom device tree, this stays constant after
35 * and usage utility functions. Only prom-lib should use these,
53 * virtual address you pass is a request and the prom may put your mappings
65 * of the string is different on V0 vs. V2->higher proms. The caller must
70 /* Close a previously opened device described by the passed integer
75 /* Do a seek operation on the device described by the passed integer
83 /* This function returns a V0 format memory descriptor table, it has three
86 * areas which are allocated by the prom. So, in a sense the physical
87 * available is a calculation of the total physical minus the physical mapped
90 * These lists are returned pre-sorted, this should make your life easier
108 /* Enter the prom, with no chance of continuation for the stand-alone
117 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX
122 /* Acquire the IDPROM of the root node in the prom device tree. This
123 * gets passed a buffer where you would like it stuffed. The return value
139 /* Non-blocking get character from console. */
142 /* Non-blocking put character to console. */
178 /* Start the CPU with the given device tree node, context table, and context
184 /* Stop the CPU with the passed device tree node. */
187 /* Idle the CPU with the passed device tree node. */
190 /* Re-Start the CPU with the passed device tree node. */
195 /* Allocated at possibly the given virtual address a chunk of the
200 /* Free a previously allocated chunk. */
203 /* Sun4/sun4c specific memory-management startup hook. */
213 /* Get the child node of the given node, or zero if no child exists. */
216 /* Get the next sibling node of the given node, or zero if no further
219 extern int prom_getsibling(int node);
221 /* Get the length, at the passed node, of the given property type.
222 * Returns -1 on error (ie. no such property at this node).
224 extern int prom_getproplen(int thisnode, char *property);
226 /* Fetch the requested property using the given buffer. Returns
227 * the number of bytes the prom put into your buffer or -1 on error.
229 extern int prom_getproperty(int thisnode, char *property,
232 /* Acquire an integer property. */
233 extern int prom_getint(int node, char *property);
235 /* Acquire an integer property, with a default value. */
236 extern int prom_getintdefault(int node, char *property, int defval);
238 /* Acquire a boolean property, 0=FALSE 1=TRUE. */
239 extern int prom_getbool(int node, char *prop);
241 /* Acquire a string property, null string on error. */
242 extern void prom_getstring(int node, char *prop, char *buf, int bufsize);
244 /* Does the passed node have the given "name"? YES=1 NO=0 */
247 /* Search all siblings starting at the passed node for "name" matching
248 * the given string. Returns the node on success, zero on failure.
252 /* Return the first property type, as a string, for the given node.
253 * Returns a null string on error.
255 extern char *prom_firstprop(int node);
257 /* Returns the next property after the passed property for the given
258 * node. Returns null string on failure.
260 extern char *prom_nextprop(int node, char *prev_property);
262 /* Returns 1 if the specified node has given property. */
263 extern int prom_node_has_property(int node, char *property);
265 /* Set the indicated property at the given node with the passed value.
268 extern int prom_setprop(int node, char *prop_name, char *prop_value,
280 /* Adjust child ranges with the passed parent ranges. */
287 /* Apply ranges of any prom node (and optionally parent node as well) to registers. */
288 extern void prom_apply_generic_ranges(int node, int parent,