freebsd-dev/sys/dev/ofw
Justin Hibbits 937a05ba81 Add necessary bits for Linux KPI to work correctly on powerpc
PowerPC, and possibly other architectures, use different address ranges for
PCI space vs physical address space, which is only mapped at resource
activation time, when the BAR gets written.  The DRM kernel modules do not
activate the rman resources, soas not to waste KVA, instead only mapping
parts of the PCI memory at a time.  This introduces a
BUS_TRANSLATE_RESOURCE() method, implemented in the Open Firmware/FDT PCI
driver, to perform this necessary translation without activating the
resource.

In addition to system KPI changes, LinuxKPI is updated to handle a
big-endian host, by adding proper endian swaps to the I/O functions.

Submitted by:	mmacy
Reported by:	hselasky
Differential Revision:	https://reviews.freebsd.org/D21096
2019-08-04 19:28:10 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c simplebus pnp: Do not generate pnp info is the bus status is not okay 2018-06-12 20:03:00 +00:00
ofw_bus_subr.h Define macros making it easier to define bus-specific pnpinfo for FDT systems. 2019-05-23 15:47:30 +00:00
ofw_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_console.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_cpu.c ofw_cpu: Add support for getting cpu clock via clock property 2018-07-31 20:50:50 +00:00
ofw_cpu.h
ofw_disk.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_fdt.c dev/ofw: Fix ofw_fdt_getprop() return values to match documentation 2018-06-07 15:59:08 +00:00
ofw_graph.c ofw_graph: Add functions for graph bindings 2019-04-17 20:09:01 +00:00
ofw_graph.h ofw_graph: Add functions for graph bindings 2019-04-17 20:09:01 +00:00
ofw_if.m
ofw_pci.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_standard.c Set internal error returns for OF_peer(), OF_child(), and OF_parent() to 2018-02-19 15:49:14 +00:00
ofw_subr.c Add missing include of sys/boot.h 2018-07-13 18:00:13 +00:00
ofw_subr.h
ofwbus.c
ofwpci.c Add necessary bits for Linux KPI to work correctly on powerpc 2019-08-04 19:28:10 +00:00
ofwpci.h
ofwvar.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openfirm.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
openfirm.h Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
openfirmio.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
openfirmio.h
openpromio.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openpromio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00