/* * prom.c routine for finding a node by path is a bit brain dead * and requires exact @xxx unit numbers. This is a bit ugly but * will work for these machines
*/
sprintf(nodename, "/u3@0,f8000000/i2c@f8001000/cpuid@a%d", cpu ? 2 : 0);
np = of_find_node_by_path(nodename); if (!np) return NULL;
data = of_get_property(np, "cpuid", &len);
of_node_put(np); if (!data) return NULL;
/* * We are naughty, we have dropped the reference to the device * node and still return a pointer to the content. We know we * can do that though as this is only ever called on PowerMac * which cannot remove those nodes
*/ return data;
}
#endif/* __WINDFARM_MPU_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.