da8fa4e37a
Import ISC-licensed ath10k driver assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. Import support to redirect fwlogs to kernel messages from https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/389075 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. Any other native driver using BUS_PROBE_DEFAULT will attach ignoring this one by default given bsd_probe_return is set to a lower priority. Add the module build framework. We only support PCI parts. The firmware is provided by port net/wifi-firmware-ath10k-kmod. Given the lack of full license texts on most files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (emaste, 2022-04-08) [1] MFC after: 2 months
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
DEVATH10KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath10k
|
|
|
|
.PATH: ${DEVATH10KDIR}
|
|
|
|
WITH_CONFIG_FWLOG= 1
|
|
|
|
KMOD= if_ath10k
|
|
|
|
SRCS+= core.c debug.c mac.c ce.c hw.c bmi.c
|
|
SRCS+= htc.c htt.c htt_rx.c htt_tx.c
|
|
SRCS+= txrx.c wmi.c wmi-tlv.c
|
|
SRCS+= p2p.c swap.c
|
|
|
|
SRCS+= pci.c
|
|
|
|
# Other
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
|
|
|
|
.if defined(WITH_CONFIG_FWLOG) && ${WITH_CONFIG_FWLOG} > 0
|
|
SRCS+= fwlog.c
|
|
CFLAGS+= -DCONFIG_FWLOG=${WITH_CONFIG_FWLOG}
|
|
.endif
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"ath10k"'
|
|
|
|
CFLAGS+= -I${DEVATH10KDIR}
|
|
CFLAGS+= -I${DEVATH10KDIR}/..
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
|
# Helpful after fresh imports.
|
|
#CFLAGS+= -ferror-limit=0
|
|
|
|
CFLAGS+= -DCONFIG_ATH10K_DEBUG
|
|
|
|
#CFLAGS+= -DCONFIG_ATH10K_AHB
|
|
#CFLAGS+= -DCONFIG_ATH10K_DEBUGFS
|
|
#CFLAGS+= -DCONFIG_ATH10K_DFS_CERTIFIED
|
|
#CFLAGS+= -DCONFIG_ATH10K_SPECTRAL
|
|
#CFLAGS+= -DCONFIG_ATH10K_TRACING
|
|
#CFLAGS+= -DCONFIG_DEV_COREDUMP
|
|
#CFLAGS+= -DCONFIG_MAC80211_DEBUGFS
|
|
#CFLAGS+= -DCONFIG_MAC80211_MESH
|
|
#CFLAGS+= -DCONFIG_NL80211_TESTMODE
|
|
#CFLAGS+= -DCONFIG_PM
|
|
#CFLAGS+= -DCONFIG_PM_SLEEP
|
|
#CFLAGS+= -DCONFIG_THERMAL
|
|
|
|
.include <bsd.kmod.mk>
|