Lines Matching +full:stdout +full:- +full:path
5 * Copyright (C) 1996-2005 Paul Mackerras.
68 * As an example, the boot device on my workstation has a full path:
82 regs = rprop->value; in sun4v_path_component()
83 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
85 dp->name, in sun4v_path_component()
86 (unsigned int) (regs->phys_addr >> 32UL), in sun4v_path_component()
87 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4v_path_component()
91 type = regs->phys_addr >> 60UL; in sun4v_path_component()
92 high_bits = (regs->phys_addr >> 32UL) & 0x0fffffffUL; in sun4v_path_component()
93 low_bits = (regs->phys_addr & 0xffffffffUL); in sun4v_path_component()
100 dp->name, prefix, in sun4v_path_component()
104 dp->name, in sun4v_path_component()
109 dp->name, high_bits); in sun4v_path_component()
122 regs = prop->value; in sun4u_path_component()
123 if (!of_node_is_root(dp->parent)) { in sun4u_path_component()
125 dp->name, in sun4u_path_component()
126 (unsigned int) (regs->phys_addr >> 32UL), in sun4u_path_component()
127 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4u_path_component()
131 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
141 dp->name, in sun4u_path_component()
142 *(u32 *)prop->value, in sun4u_path_component()
143 (unsigned int) (regs->phys_addr & mask)); in sun4u_path_component()
157 regs = prop->value; in sbus_path_component()
159 dp->name, in sbus_path_component()
160 regs->which_io, in sbus_path_component()
161 regs->phys_addr); in sbus_path_component()
175 regs = prop->value; in pci_path_component()
176 devfn = (regs->phys_hi >> 8) & 0xff; in pci_path_component()
179 dp->name, in pci_path_component()
184 dp->name, in pci_path_component()
199 regs = prop->value; in upa_path_component()
201 prop = of_find_property(dp, "upa-portid", NULL); in upa_path_component()
206 dp->name, in upa_path_component()
207 *(u32 *) prop->value, in upa_path_component()
208 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in upa_path_component()
221 regs = prop->value; in vdev_path_component()
223 sprintf(tmp_buf, "%s@%x", dp->name, *regs); in vdev_path_component()
236 regs = prop->value; in ebus_path_component()
239 dp->name, in ebus_path_component()
240 (unsigned int) (regs->phys_addr >> 32UL), in ebus_path_component()
241 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in ebus_path_component()
254 regs = prop->value; in i2c_path_component()
256 /* This actually isn't right... should look at the #address-cells in i2c_path_component()
260 dp->name, regs[0], regs[1]); in i2c_path_component()
273 regs = prop->value; in usb_path_component()
275 if (prop->length == sizeof(u32) || regs[1] == 1) { in usb_path_component()
277 dp->name, regs[0]); in usb_path_component()
280 dp->name, regs[0], regs[1]); in usb_path_component()
294 regs = prop->value; in ieee1394_path_component()
298 dp->name, regs[0], regs[1], regs[2], regs[3]); in ieee1394_path_component()
301 dp->name, regs[0], regs[1]); in ieee1394_path_component()
307 struct device_node *parent = dp->parent; in __build_path_component()
310 if (!strcmp(parent->type, "pci") || in __build_path_component()
311 !strcmp(parent->type, "pciex")) { in __build_path_component()
315 if (!strcmp(parent->type, "sbus")) { in __build_path_component()
319 if (!strcmp(parent->type, "upa")) { in __build_path_component()
323 if (!strcmp(parent->type, "ebus")) { in __build_path_component()
327 if (!strcmp(parent->name, "usb") || in __build_path_component()
328 !strcmp(parent->name, "hub")) { in __build_path_component()
332 if (!strcmp(parent->type, "i2c")) { in __build_path_component()
336 if (!strcmp(parent->type, "firewire")) { in __build_path_component()
340 if (!strcmp(parent->type, "virtual-devices")) { in __build_path_component()
363 strcpy(tmp_buf, dp->name); in build_path_component()
373 return (tlb_type == spitfire ? "upa-portid" : "portid"); in get_mid_prop()
383 int cpuid = of_getintprop_default(dp, mid_prop, -1); in of_iterate_over_cpus()
389 cpuid = of_getintprop_default(dp, this_mid_prop, -1); in of_iterate_over_cpus()
445 int portid = -1; in fill_in_one_cpu()
451 while (limit--) { in fill_in_one_cpu()
452 portid_parent = portid_parent->parent; in fill_in_one_cpu()
456 "portid", -1); in fill_in_one_cpu()
473 of_getintprop_default(dp, "clock-frequency", 0); in fill_in_one_cpu()
477 of_getintprop_default(dp, "l1-dcache-size", in fill_in_one_cpu()
480 of_getintprop_default(dp, "l1-dcache-line-size", in fill_in_one_cpu()
483 of_getintprop_default(dp, "l1-icache-size", in fill_in_one_cpu()
486 of_getintprop_default(dp, "l1-icache-line-size", in fill_in_one_cpu()
489 of_getintprop_default(dp, "l2-cache-size", 0); in fill_in_one_cpu()
491 of_getintprop_default(dp, "l2-cache-line-size", 0); in fill_in_one_cpu()
496 "l2-cache-size", in fill_in_one_cpu()
500 "l2-cache-line-size", 64); in fill_in_one_cpu()
510 of_getintprop_default(dp, "dcache-size", 16 * 1024); in fill_in_one_cpu()
512 of_getintprop_default(dp, "dcache-line-size", 32); in fill_in_one_cpu()
515 of_getintprop_default(dp, "icache-size", 16 * 1024); in fill_in_one_cpu()
517 of_getintprop_default(dp, "icache-line-size", 32); in fill_in_one_cpu()
520 of_getintprop_default(dp, "ecache-size", in fill_in_one_cpu()
523 of_getintprop_default(dp, "ecache-line-size", 64); in fill_in_one_cpu()
526 cpu_data(cpuid).proc_id = -1; in fill_in_one_cpu()
544 char *msg = "OF stdout device is: %s\n"; in of_console_init()
551 prom_printf("Cannot obtain path of stdout.\n"); in of_console_init()
563 prom_printf("Cannot resolve stdout node from " in of_console_init()
571 prom_printf("Console stdout lacks device_type property.\n"); in of_console_init()