findroot
sc->sc_clk = getpropint(findroot(), "clock-frequency", 0);
i = OF_getproplen(findroot(), "model");
if (OF_getprop(findroot(), "model", model, sizeof(model)) != i)
int clk = getpropint(findroot(), "clock-frequency", 0);
opl = OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0 &&
if (OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0 &&
stick_rate = getpropint(findroot(), "stick-frequency", 0);
if (OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0 &&
if (OF_getprop(findroot(), "name", name, sizeof(name)) <= 0)
int findroot(void);
node = findroot(); /* re-init root node */
stack[0] = findroot();
if (OF_getprop(findroot(), "compatible", buf, sizeof(buf)) > 0) {
if (OF_getprop(findroot(), "banner-name", buf, sizeof(buf)) > 0 ||
OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0)
if ((len = OF_getprop(findroot(), "name", buf, sizeof(buf))) > 0) {
if (OF_getprop(findroot(), "model", buf, sizeof(buf)) > 0 &&
node = findroot();
node = findroot();
node = findroot();
sys_tick_rate = getpropint(findroot(), "stick-frequency", 0);
clk = getpropint(findroot(), "clock-frequency", 0);
if (OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0 &&
if (OF_getprop(findroot(), "name", buf, sizeof(buf)) > 0 &&
ok = openpromcheckid(findroot(), node);