freebsd-src/sys/dev/ofw
Mark Johnston 1fb99e97e9 bus: Make BUS_TRANSLATE_RESOURCE behave more like other bus methods
- Return an errno value upon failure, instead of 1.
- Provide a bus_translate_resource() wrapper.
- Implement the generic version, which traverses the hierarchy until a
  bus driver with a non-trivial implementation is found, in subr_bus.c
  like other similar default implementations.
- Make ofw_pcib_translate_resource() return an error if a matching PCI
  address range is not found.
- Make generic_pcie_translate_resource_common() return an int instead of
  a bool.  Fix up callers.

No functional change intended.

Reviewed by:	imp, jhb
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32855
2021-11-15 13:01:30 -05:00
..
ofw_bus.h
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_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 Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
ofw_disk.c
ofw_fdt.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
ofw_graph.c
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 bus: Make BUS_TRANSLATE_RESOURCE behave more like other bus methods 2021-11-15 13:01:30 -05: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