summaryrefslogtreecommitdiff
path: root/sys/modules/ath11k
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-05-11 22:23:00 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-05-12 11:21:16 +0000
commitdd4f32ae62426a10a84b4322756d82c06c202c4e (patch)
tree325d2936ec72e99c997ff11a84fc7fffb08cdd9d /sys/modules/ath11k
parentd544b53cb0b6bc25f2ba078bd9c07e611095bf29 (diff)
Diffstat (limited to 'sys/modules/ath11k')
-rw-r--r--sys/modules/ath11k/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/modules/ath11k/Makefile b/sys/modules/ath11k/Makefile
new file mode 100644
index 000000000000..f610fa35a817
--- /dev/null
+++ b/sys/modules/ath11k/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+DEVATH11KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath11k
+
+.PATH: ${DEVATH11KDIR}
+
+WITH_DEBUGFS= 0 # Does not yet compile
+
+KMOD= if_ath11k
+
+SRCS+= core.c hal.c hal_tx.c hal_rx.c
+SRCS+= wmi.c mac.c reg.c htc.c qmi.c
+SRCS+= dp.c dp_tx.c dp_rx.c debug.c
+SRCS+= ce.c peer.c dbring.c hw.c wow.c
+
+SRCS+= mhi.c pci.c
+
+# Other
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
+
+CFLAGS+= -DKBUILD_MODNAME='"ath11k"'
+
+CFLAGS+= -I${DEVATH11KDIR}
+CFLAGS+= -I${DEVATH11KDIR}/..
+CFLAGS+= ${LINUXKPI_INCLUDES}
+# Helpful after fresh imports.
+#CFLAGS+= -ferror-limit=0
+
+CFLAGS+= -DCONFIG_ATH11K_DEBUG
+
+.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
+SRCS+= debugfs.c debugfs_htt_stats.c debugfs_sta.c
+CFLAGS+= -DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS}
+CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
+.endif
+
+#CFLAGS+= -DCONFIG_ATH11K_SPECTRAL
+#CFLAGS+= -DCONFIG_ATH11K_TRACING
+#CFLAGS+= -DCONFIG_NL80211_TESTMODE
+#CFLAGS+= -DCONFIG_PM
+#CFLAGS+= -DCONFIG_THERMAL
+
+.include <bsd.kmod.mk>