Home
last modified time | relevance | path

Searched refs:OF_finddevice (Results 1 – 25 of 97) sorted by relevance

1234

/netbsd-src/sys/arch/macppc/macppc/
H A Dinterrupts.c72 macio = OF_finddevice("/pci/mac-io"); in init_openpic()
74 macio = OF_finddevice("mac-io"); in init_openpic()
76 macio = OF_finddevice("/ht/pci/mac-io"); in init_openpic()
160 if (OF_finddevice("/hammerhead") != -1) in init_interrupt()
H A Dcpu.c110 node = OF_finddevice("/cpus"); in cpumatch()
124 if (OF_finddevice("/hammerhead") != -1) in cpumatch()
140 node = OF_finddevice("/cpus"); in cpu_OFgetspeed()
191 if (OF_finddevice("/bandit/ohare") != -1) { in cpuattach()
254 node = OF_finddevice(cpupath); in md_setup_trampoline()
H A Dmainbus.c78 cpus = OF_finddevice("/cpus"); in mainbus_attach()
115 for (node = OF_child(OF_finddevice("/")); node; node = OF_peer(node)) { in mainbus_attach()
H A Dpic_ohare.c79 ohare = OF_finddevice("/bandit/ohare"); in init_ohare()
81 ohare = OF_finddevice("/bandit/gc"); in init_ohare()
95 ohare2 = OF_finddevice("/bandit/pci106b,7"); in init_ohare()
/netbsd-src/sys/arch/macppc/stand/ofwboot/
H A DLocore.c278 OF_finddevice(const char *name) in OF_finddevice() function
703 if ((ofw_chosen = OF_finddevice("/chosen")) == -1) in setup()
731 ofw_root = OF_finddevice("/"); in setup()
732 ofw_options = OF_finddevice("/options"); in setup()
733 ofw_openprom = OF_finddevice("/openprom"); in setup()
734 ofw_chosen = OF_finddevice("/chosen"); in setup()
/netbsd-src/sys/arch/macppc/stand/bootxx/
H A Dbootxx.c157 OF_finddevice(char *name) in OF_finddevice() function
326 chosen = OF_finddevice("/chosen"); in startup()
331 options = OF_finddevice("/options"); in startup()
/netbsd-src/sys/arch/ofppc/ofppc/
H A Dmainbus.c80 pcinode = OF_finddevice("/pci"); in init_prepivr()
239 rtnode = OF_finddevice("/rtas"); in mainbus_attach()
280 for (node = OF_child(OF_finddevice("/")); node; node = OF_peer(node)) { in mainbus_attach()
312 node = OF_finddevice("/"); in init_ofppc_interrupt()
H A Dcpu.c96 node = OF_finddevice("/cpus"); in cpu_match()
116 node = OF_finddevice("/cpus"); in cpu_OFgetspeed()
176 node = OF_finddevice("/cpus"); in cpu_OFgetcache()
H A Dmachdep.c133 node = OF_finddevice("/"); in initppc()
144 node = OF_finddevice("/"); in initppc()
171 node = OF_finddevice(cpupath); in initppc()
/netbsd-src/sys/arch/arm/nvidia/
H A Dtegra124_cpu.c132 if (OF_finddevice("/cpus/cpu@0") != faa->faa_phandle) in tegra124_cpu_match()
135 return of_compatible_match(OF_finddevice("/"), compat_data); in tegra124_cpu_match()
157 int cpu_node = OF_finddevice("/cpus/cpu@0"); in tegra124_cpu_init_cpufreq()
/netbsd-src/sys/arch/powerpc/powerpc/
H A Dofw_machdep.c215 if ((hmem = OF_finddevice("/memory")) == -1) in ofw_bootstrap_get_memory()
475 ofw_root = OF_finddevice("/"); in ofw_bootstrap()
476 ofw_chosen = OF_finddevice("/chosen"); in ofw_bootstrap()
482 handle = OF_finddevice("/options"); in ofw_bootstrap()
/netbsd-src/sys/arch/sparc/stand/ofwboot/
H A Dpromlib.c63 if ( (phandle = OF_finddevice("/chosen")) == -1) { in openfirmware_chosen()
176 promops.po_finddevice = OF_finddevice; in prom_init()
/netbsd-src/sys/arch/shark/ofw/
H A Dofw.c436 if ((chosen = OF_finddevice("/chosen")) == -1) in get_fw_dhcp_data()
478 if ((options = OF_finddevice("/options")) == -1) in get_fw_dhcp_data()
527 if ((chosen = OF_finddevice("/chosen")) == -1) in ofw_getbootinfo()
561 if ((cpu = OF_finddevice("/cpu")) == -1) in ofw_getcleaninfo()
584 if ((vl = OF_finddevice("/vlbus")) == -1) /* old style OFW dev info tree */ in ofw_configisa()
599 if ((isa = OF_finddevice("/isa")) == -1) in ofw_configisaonly()
637 if ((isa = OF_finddevice("/vlbus/isa")) == -1) in ofw_configvl()
691 if ((root = OF_finddevice("/")) == -1 || in ofw_configisadma()
1461 if ((phandle = OF_finddevice("/memory")) == -1 || in ofw_getphysmeminfo()
1663 if ((chosen = OF_finddevice("/chosen")) == -1 || in ofw_mem_ihandle()
[all …]
H A Dvga_ofbus.c112 vga_handle = OF_finddevice("/vlbus/display"); in vga_ofbus_attach()
143 if ((chosen_phandle = OF_finddevice("/chosen")) == -1 || in vga_ofbus_cnattach()
H A Digsfb_ofbus.c103 igs_node = OF_finddevice("/vlbus/display"); in igsfb_ofbus_cnattach()
131 if ((chosen_phandle = OF_finddevice("/chosen")) == -1 || in igsfb_ofbus_cnattach()
H A Dchipsfb_ofbus.c99 ct_node = OF_finddevice("/vlbus/display"); in chipsfb_ofbus_cnattach()
126 if ((chosen_phandle = OF_finddevice("/chosen")) == -1 || in chipsfb_ofbus_cnattach()
/netbsd-src/sys/arch/arm/samsung/
H A Dexynos_platform.c111 const int cpus = OF_finddevice("/cpus"); in exynos5800_mpstart()
211 of_compatible_lookup(OF_finddevice("/"), mp_compat_data); in exynos_platform_mpstart()
342 of_compatible_lookup(OF_finddevice("/"), mp_compat_data); in exynos5_platform_bootstrap()
/netbsd-src/sys/arch/riscv/fdt/
H A Dcpu_fdt.c70 const int cpus = OF_finddevice("/cpus"); in riscv_fdt_cpu_bootstrap()
125 const int cpus = OF_finddevice("/cpus"); in riscv_fdt_cpu_mpstart()
/netbsd-src/sys/arch/shark/stand/ofwboot/
H A DLocore.c74 if ((cpu = OF_finddevice("/cpu")) == -1) in ofw_getcleaninfo()
139 OF_finddevice(const char *name) in OF_finddevice() function
513 if ((chosen = OF_finddevice("/chosen")) == -1) in setup()
/netbsd-src/sys/arch/macppc/dev/
H A Duni-n.c126 cpuid = OF_finddevice("/u3/i2c/cpuid@a0"); in uni_n_attach()
131 cpuid = OF_finddevice("/u3/i2c/cpuid@a2"); in uni_n_attach()
H A Dobio.c158 node = OF_finddevice("mac-io"); in obio_attach()
160 node = OF_finddevice("/pci/mac-io"); in obio_attach()
164 node = OF_finddevice("mac-io"); in obio_attach()
428 cpunode = OF_finddevice("/cpus/@0"); in obio_setup_gpios()
/netbsd-src/sys/dev/fdt/
H A Dfdt_boot.c120 chosen = OF_finddevice("/chosen"); in fdt_probe_range()
196 const int chosen = OF_finddevice("/chosen"); in fdt_get_bootargs()
404 const int chosen = OF_finddevice("/chosen"); in fdt_detect_root_device()
H A Dfdtbus.c113 if (OF_finddevice("/clocks") == phandle) in fdt_match()
115 if (OF_finddevice("/chosen") == phandle) in fdt_match()
120 return OF_finddevice("/") == phandle; in fdt_match()
147 if (OF_finddevice("/") != faa->faa_phandle) in fdt_attach()
/netbsd-src/sys/arch/arm/apple/
H A Dapple_platform.c137 phandle = OF_finddevice("/cpus/cpu@1"); in apple_platform_devmap()
167 const int pcie = of_find_bycompat(OF_finddevice("/"), "apple,pcie"); in apple_platform_get_mac_address()
/netbsd-src/sys/arch/ofppc/stand/ofwboot/
H A Dboot.c203 chosen = OF_finddevice("/"); in main()
209 if ((chosen = OF_finddevice("/chosen")) == -1 || in main()

1234