freebsd-dev/sys/dev/ofw
Kornel Duleba 9428765626 ofw_pci: fix probing for non-DT cases
phandle_t is a uint32_t type, <= 0 comparison doesn't work with it as intended.
This caused the ofw_pci code to attach to PCI bus on ACPI based systems.
Since 3eae4e106a ("Fix error value returned by ofw_bus_gen_get_node().")
ofw subsystem can only return -1 for invalid nodes. Use that.

MFC after: 4 weeks
Reviewed by: mw
Differential revision: https://reviews.freebsd.org/D30953
2021-07-01 20:35:23 +02:00
..
ofw_bus_if.m
ofw_bus_subr.c Fix error value returned by ofw_bus_gen_get_node(). 2021-06-24 12:01:05 +02:00
ofw_bus_subr.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
ofw_bus.h
ofw_console.c
ofw_cpu.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
ofw_cpu.h
ofw_disk.c
ofw_fdt.c
ofw_graph.c ofw: support for a single 'port' DTS property. 2021-05-08 15:41:57 +01:00
ofw_graph.h
ofw_if.m
ofw_pci.c ofw_pci: fix probing for non-DT cases 2021-07-01 20:35:23 +02:00
ofw_pci.h
ofw_pcib.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofw_standard.c
ofw_subr.c
ofw_subr.h
ofwbus.c
ofwpci.h Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofwvar.h
openfirm.c
openfirm.h
openfirmio.c Suppress D_NEEDGIANT warnings for some drivers 2021-06-06 16:44:46 -04:00
openfirmio.h