/* PROM device tree traversal functions... */
-#ifdef PROMLIB_INTERNAL
-
-/* Internal version of prom_getchild. */
-extern int __prom_getchild(int parent_node);
-
-/* Internal version of prom_getsibling. */
-extern int __prom_getsibling(int node);
-
-#endif
-
-
/* Get the child node of the given node, or zero if no child exists. */
extern int prom_getchild(int parent_node);
/* PROM device tree traversal functions... */
-#ifdef PROMLIB_INTERNAL
-
-/* Internal version of prom_getchild. */
-extern int __prom_getchild(int parent_node);
-
-/* Internal version of prom_getsibling. */
-extern int __prom_getsibling(int node);
-
-#endif
-
/* Get the child node of the given node, or zero if no child exists. */
extern int prom_getchild(int parent_node);
return cnode;
}
-EXPORT_SYMBOL(__prom_getchild);
/* Return the child of node 'node' or zero if no this node has no
* direct descendent.
return cnode;
}
-EXPORT_SYMBOL(__prom_getsibling);
/* Return the next sibling of node 'node' or zero if no more siblings
* at this level of depth in the tree.
{
return p1275_cmd ("child", P1275_INOUT(1, 1), node);
}
-EXPORT_SYMBOL(__prom_getchild);
inline int prom_getchild(int node)
{
{
return p1275_cmd(prom_peer_name, P1275_INOUT(1, 1), node);
}
-EXPORT_SYMBOL(__prom_getsibling);
inline int prom_getsibling(int node)
{