summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2013-07-31 01:13:29 +0000
committerjhibbits <jhibbits@FreeBSD.org>2013-07-31 01:13:29 +0000
commitd40ca75d25d9597ff60073d78c1c5293d4c7be3a (patch)
treea9150636d74152d14f07175901c6221a35acc479 /sys/modules
parentb9c4e3dc5895ffc3ca5d1d9a64953bc84d5a2f2b (diff)
downloadFreeBSD-src-d40ca75d25d9597ff60073d78c1c5293d4c7be3a.zip
FreeBSD-src-d40ca75d25d9597ff60073d78c1c5293d4c7be3a.tar.gz
Add the macio attachment for wi(4). Partially obtained from NetBSD.
Reviewed by: adrian Obtained from: NetBSD (partially)
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile1
-rw-r--r--sys/modules/wi/Makefile10
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 7f3d174..71794fc 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -826,6 +826,7 @@ _sound= sound
.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
_opensolaris= opensolaris
.endif
+_wi= wi
.endif
.if ${MACHINE_ARCH} == "powerpc64"
diff --git a/sys/modules/wi/Makefile b/sys/modules/wi/Makefile
index badbd75..6971a8f 100644
--- a/sys/modules/wi/Makefile
+++ b/sys/modules/wi/Makefile
@@ -6,5 +6,15 @@ KMOD= if_wi
SRCS= if_wi.c if_wi_pccard.c if_wi_pci.c \
card_if.h device_if.h bus_if.h pci_if.h pccarddevs.h \
opt_wlan.h
+.if ${MACHINE_CPUARCH} == "powerpc"
+SRCS+= if_wi_macio.c
+SRCS+= ofw_bus_if.h
+.endif
+
+
+.if ${MACHINE_CPUARCH} == "powerpc"
+SRCS+= if_wi_macio.c
+SRCS+= ofw_bus_if.h
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud