36 }
while (*(table - 1) || *table !=
'\n');
46 if (!
strncmp(table, key, keylen) && table[keylen] ==
'=')
47 return table + keylen + 1;
49 table +=
strlen(table) + 1;
50 }
while (
strlen(table) != 0);
75 static u64 mac_table[4] = {
92 for (i = 0; i < 4; i++) {
93 u64 this_dev_addr = (int_addr & ~0x000000c00000) |
96 for (j = 5; j >= 0; j--) {
97 addr[
i][
j] = this_dev_addr & 0xff;
117 node = find_node_by_prop_value_str(
NULL,
"linux,planetcore-label",
126 chosen = finddevice(
"/chosen");
128 chosen = create_node(
NULL,
"chosen");
132 setprop_str(chosen,
"linux,stdout-path", path);
137 void *chosen, *stdout;
142 chosen = finddevice(
"/chosen");
146 len = getprop(chosen,
"linux,stdout-path", prop_buf,
MAX_PROP_LEN);
150 stdout = finddevice(prop_buf);
152 printf(
"planetcore_set_serial_speed: "
153 "Bad /chosen/linux,stdout-path.\r\n");
160 printf(
"planetcore_set_serial_speed: No SB tag.\r\n");
165 setprop(stdout,
"current-speed", &baud32, 4);