aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-11-28 18:35:53 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-11-28 19:17:04 +0000
commitbfcc09ddd422c95a1a2e4e794b63ee54c4902398 (patch)
tree9374882fd1230ce27a4f607f4884190f89adb39f /sys/modules
parentf4c129f5fb1669b284d76a838b1e509f97c2d299 (diff)
downloadsrc-bfcc09ddd422c95a1a2e4e794b63ee54c4902398.tar.gz
src-bfcc09ddd422c95a1a2e4e794b63ee54c4902398.zip
iwlwifi: import Intel's iwlwifi/mvm driver.
Over the past few months we published multiple snapshots for this Linux derived driver and it has become fairly stable in terms of minimal local changes needed for new updates. The current version is based on iwlwifi-next update at cbaa6aeedee5f92dafa5982eceea2a1f98ce4f7d with the addition of a hand full of files replaced for FreeBSD. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Do not yet hook this to the build until the remaining compat code is all in. Along with the firmware import this will make publishing the last bits and final testing a lot easier. Sponsored by: The FreeBSD Foundation Approved by: core (imp) [1] MFC after: 10 days
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/iwlwifi/Makefile90
1 files changed, 90 insertions, 0 deletions
diff --git a/sys/modules/iwlwifi/Makefile b/sys/modules/iwlwifi/Makefile
new file mode 100644
index 000000000000..c616e560f517
--- /dev/null
+++ b/sys/modules/iwlwifi/Makefile
@@ -0,0 +1,90 @@
+#-
+# SPDX-License-Identifier: BSD-2-Clause
+#
+# Copyright (c) 2020-2021 The FreeBSD Foundation
+#
+# This software was developed by Björn Zeeb under sponsorship from
+# the FreeBSD Foundation.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# $FreeBSD$
+#
+
+DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi
+
+.PATH: ${DEVIWLWIFIDIR}
+
+KMOD= if_iwlwifi
+
+SRCS= iwl-drv.c
+SRCS+= iwl-dbg-tlv.c iwl-debug.c
+SRCS+= iwl-eeprom-parse.c iwl-eeprom-read.c
+SRCS+= iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c
+SRCS+= cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c
+SRCS+= fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c
+SRCS+= fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c
+#SRCS+= fw/uefi.c
+SRCS+= mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c
+SRCS+= mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c
+SRCS+= mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c
+SRCS+= mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c
+SRCS+= mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c
+SRCS+= mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c
+#SRCS+= mvm/led.c
+SRCS+= pcie/ctxt-info-gen3.c pcie/ctxt-info.c
+SRCS+= pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c
+SRCS+= pcie/tx-gen2.c pcie/tx.c
+SRCS+= queue/tx.c
+
+SRCS+= iwl-devtrace.c
+
+# Other
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
+
+CFLAGS+= -DKBUILD_MODNAME='"iwlwifi"'
+
+CFLAGS+= -I${DEVIWLWIFIDIR}
+CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
+CFLAGS+= -DCONFIG_IWLDVM=0
+CFLAGS+= -DCONFIG_IWLMVM=1
+# Helpful after fresh imports.
+#CFLAGS+= -ferror-limit=0
+
+#CFLAGS+= -DCONFIG_ACPI=1
+#CFLAGS+= -DCONFIG_INET=1 # Need LKPI TSO implementation.
+#CFLAGS+= -DCONFIG_IPV6=1
+CFLAGS+= -DCONFIG_IWLWIFI_BCAST_FILTERING=1
+CFLAGS+= -DCONFIG_IWLWIFI_DEBUG=1
+#CFLAGS+= -DCONFIG_IWLWIFI_LEDS=1
+CFLAGS+= -DCONFIG_IWLWIFI_OPMODE_MODULAR=1
+CFLAGS+= -DCONFIG_IWLWIFI_DEVICE_TRACING=1
+#CFLAGS+= -DCONFIG_LOCKDEP=1
+#CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=1
+#CFLAGS+= -DCONFIG_NL80211_TESTMODE=1
+#CFLAGS+= -DCONFIG_PM=1
+#CFLAGS+= -DCONFIG_PM_SLEEP=1
+#CFLAGS+= -DCONFIG_THERMAL=1
+#CFLAGS+= -DCONFIG_EFI=1
+
+.include <bsd.kmod.mk>