Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property
1 /* SPDX-License-Identifier: GPL-2.0 */
31 /* Root node of the prom device tree, this stays constant after
37 * and usage utility functions. Only prom-lib should use these,
55 * virtual address you pass is a request and the prom may put your mappings
67 * of the string is different on V0 vs. V2->higher proms. The caller must
72 /* Close a previously opened device described by the passed integer
77 /* Do a seek operation on the device described by the passed integer
85 /* This function returns a V0 format memory descriptor table, it has three
88 * areas which are allocated by the prom. So, in a sense the physical
89 * available is a calculation of the total physical minus the physical mapped
92 * These lists are returned pre-sorted, this should make your life easier
110 /* Enter the prom, with no chance of continuation for the stand-alone
119 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX
124 /* Acquire the IDPROM of the root node in the prom device tree. This
125 * gets passed a buffer where you would like it stuffed. The return value
141 /* Non-blocking get character from console. */
144 /* Non-blocking put character to console. */
180 /* Start the CPU with the given device tree node, context table, and context
186 /* Stop the CPU with the passed device tree node. */
189 /* Idle the CPU with the passed device tree node. */
192 /* Re-Start the CPU with the passed device tree node. */
197 /* Allocated at possibly the given virtual address a chunk of the
202 /* Free a previously allocated chunk. */
205 /* Sun4/sun4c specific memory-management startup hook. */
215 /* Get the child node of the given node, or zero if no child exists. */
218 /* Get the next sibling node of the given node, or zero if no further
221 extern int prom_getsibling(int node);
223 /* Get the length, at the passed node, of the given property type.
224 * Returns -1 on error (ie. no such property at this node).
226 extern int prom_getproplen(int thisnode, char *property);
228 /* Fetch the requested property using the given buffer. Returns
229 * the number of bytes the prom put into your buffer or -1 on error.
231 extern int prom_getproperty(int thisnode, char *property,
234 /* Acquire an integer property. */
235 extern int prom_getint(int node, char *property);
237 /* Acquire an integer property, with a default value. */
238 extern int prom_getintdefault(int node, char *property, int defval);
240 /* Acquire a boolean property, 0=FALSE 1=TRUE. */
241 extern int prom_getbool(int node, char *prop);
243 /* Acquire a string property, null string on error. */
244 extern void prom_getstring(int node, char *prop, char *buf, int bufsize);
246 /* Does the passed node have the given "name"? YES=1 NO=0 */
249 /* Search all siblings starting at the passed node for "name" matching
250 * the given string. Returns the node on success, zero on failure.
254 /* Return the first property type, as a string, for the given node.
255 * Returns a null string on error.
257 extern char *prom_firstprop(int node);
259 /* Returns the next property after the passed property for the given
260 * node. Returns null string on failure.
262 extern char *prom_nextprop(int node, char *prev_property);
264 /* Returns 1 if the specified node has given property. */
265 extern int prom_node_has_property(int node, char *property);
267 /* Set the indicated property at the given node with the passed value.
270 extern int prom_setprop(int node, char *prop_name, char *prop_value,
282 /* Adjust child ranges with the passed parent ranges. */
289 /* Apply ranges of any prom node (and optionally parent node as well) to registers. */
290 extern void prom_apply_generic_ranges(int node, int parent,