aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofw_subr.c
diff options
context:
space:
mode:
authorZbigniew Bodek <zbb@FreeBSD.org>2016-02-20 12:28:20 +0000
committerZbigniew Bodek <zbb@FreeBSD.org>2016-02-20 12:28:20 +0000
commit36e9c2cef0d59d4f4e466b558eaaab0b76ad3603 (patch)
treeb685f4faf94a7b21d8c2fb3b751b8923b30b1a9b /sys/dev/ofw/ofw_subr.c
parent6fe2e1762eb33d9386b9072e7897911cc3cc844b (diff)
downloadsrc-36e9c2cef0d59d4f4e466b558eaaab0b76ad3603.tar.gz
src-36e9c2cef0d59d4f4e466b558eaaab0b76ad3603.zip
Revert r295756:
Extract common code from PowerPC's ofw_pci Import portions of the PowerPC OF PCI implementation into new file "ofw_pci.c", common for other platforms. The files ofw_pci.c and ofw_pci.h from sys/powerpc/ofw no longer exist. All required declarations are moved to sys/dev/ofw/ofw_pci.h. This creates a new ofw_pci_write_ivar() function and modifies ofw_pci_nranges(), ofw_pci_read_ivar(), ofw_pci_route_interrupt() methods. Most functions contain existing ppc implementations in the majority unchanged. Now there is no need to have multiple identical copies of methods for various architectures. Submitted by: Marcin Mazurek <mma@semihalf.com> Obtained from: Semihalf Sponsored by: Annapurna Labs Reviewed by: jhibbits, mmel Differential Revision: https://reviews.freebsd.org/D4879 This needs to return to the drawing board as it breaks both PowerPC and Sparc64 build. Pointed out by: jhibbits
Notes
Notes: svn path=/head/; revision=295837
Diffstat (limited to 'sys/dev/ofw/ofw_subr.c')
-rw-r--r--sys/dev/ofw/ofw_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_subr.c b/sys/dev/ofw/ofw_subr.c
index e9b66c284bca..4d14db798f38 100644
--- a/sys/dev/ofw/ofw_subr.c
+++ b/sys/dev/ofw/ofw_subr.c
@@ -39,9 +39,8 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <dev/ofw/openfirm.h>
-#include <dev/ofw/ofw_subr.h>
-#include <dev/ofw/ofw_bus_subr.h>
#include <dev/ofw/ofw_pci.h>
+#include <dev/ofw/ofw_subr.h>
static void
get_addr_props(phandle_t node, uint32_t *addrp, uint32_t *sizep, int *pcip)