Import BSD-3-Clause-Clear ath12k driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1) with further updates based on (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4), (wt-2023-08-13) 81e147b1317ee7cde8b624ee8c0501b470d7e91c (after v6.5-rc5). Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). 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 (as does ath11k). There was interest by various people to enhance support further for ath11k which will equally benefit ath12k. Given the lack of full license texts on the 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: 20 days
38 lines
801 B
Makefile
38 lines
801 B
Makefile
# $FreeBSD$
|
|
|
|
DEVATH12KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath12k
|
|
|
|
.PATH: ${DEVATH12KDIR}
|
|
|
|
WITH_CONFIG_ATH12K_TRACING= 0
|
|
|
|
KMOD= if_ath12k
|
|
|
|
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 dp_mon.c debug.c
|
|
SRCS+= ce.c peer.c dbring.c hw.c
|
|
|
|
SRCS+= mhi.c pci.c
|
|
|
|
.if defined(WITH_CONFIG_ATH12K_TRACING) && ${WITH_CONFIG_ATH12K_TRACING} > 0
|
|
CFLAGS+= -DCONFIG_ATH12K_TRACING=${WITH_CONFIG_ATH12K_TRACING}
|
|
SRCS+= trace.c
|
|
.endif
|
|
|
|
# Other
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"ath12k"'
|
|
|
|
CFLAGS+= -I${DEVATH12KDIR}
|
|
CFLAGS+= -I${DEVATH12KDIR}/..
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
|
# Helpful after fresh imports.
|
|
#CFLAGS+= -ferror-limit=0
|
|
|
|
CFLAGS+= -DCONFIG_ATH12K_DEBUG
|
|
|
|
.include <bsd.kmod.mk>
|