Import BSD-3-Clause-Clear ath11k driver assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. Add the module build framework but keep disconnected from the build for now. The current driver (or rather LinuxKPI) lacks support for some "qcom" bits needed in order to get things working. There was interest by various people to enhance support further. We initially only plan to support PCI parts but it would be great to further enhance qcom SoC support to run on several (cheap) APs. The firmware is provided by port net/wifi-firmware-ath11k-kmod. Given the lack of full license texts on most files this is imported under the draft policy for handling SPDX files (D29226) and with approval for BSD-3-Clause-Clear. [1] Approved by: core (jhb, 2023-05-11) [1] MFC after: 2 months
45 lines
1009 B
Makefile
45 lines
1009 B
Makefile
# $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>
|