aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/cxgbe
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/cxgbe')
-rw-r--r--sys/modules/cxgbe/Makefile33
-rw-r--r--sys/modules/cxgbe/ccr/Makefile18
-rw-r--r--sys/modules/cxgbe/cxgbei/Makefile22
-rw-r--r--sys/modules/cxgbe/if_cc/Makefile10
-rw-r--r--sys/modules/cxgbe/if_ccv/Makefile10
-rw-r--r--sys/modules/cxgbe/if_cxgbe/Makefile46
-rw-r--r--sys/modules/cxgbe/if_cxgbev/Makefile20
-rw-r--r--sys/modules/cxgbe/if_cxl/Makefile10
-rw-r--r--sys/modules/cxgbe/if_cxlv/Makefile10
-rw-r--r--sys/modules/cxgbe/iw_cxgbe/Makefile24
-rw-r--r--sys/modules/cxgbe/t4_firmware/Makefile22
-rw-r--r--sys/modules/cxgbe/t5_firmware/Makefile22
-rw-r--r--sys/modules/cxgbe/t6_firmware/Makefile22
-rw-r--r--sys/modules/cxgbe/tom/Makefile25
14 files changed, 294 insertions, 0 deletions
diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile
new file mode 100644
index 000000000000..f94d3ae07f66
--- /dev/null
+++ b/sys/modules/cxgbe/Makefile
@@ -0,0 +1,33 @@
+#
+#
+
+SYSDIR?=${SRCTOP}/sys
+.include "${SYSDIR}/conf/kern.opts.mk"
+
+SUBDIR= if_cxgbe
+SUBDIR+= if_cxl
+SUBDIR+= if_cc
+SUBDIR+= if_cxgbev
+SUBDIR+= if_cxlv
+SUBDIR+= if_ccv
+SUBDIR+= t4_firmware
+SUBDIR+= t5_firmware
+SUBDIR+= t6_firmware
+SUBDIR+= ${_tom}
+SUBDIR+= ${_iw_cxgbe}
+SUBDIR+= ${_cxgbei}
+SUBDIR+= ccr
+
+.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64"
+_tom= tom
+_cxgbei= cxgbei
+.if ${MK_OFED} != "no" || defined(ALL_MODULES)
+_iw_cxgbe= iw_cxgbe
+.endif
+.endif
+
+.if ${MACHINE_CPUARCH} == "i386"
+_tom= tom
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/cxgbe/ccr/Makefile b/sys/modules/cxgbe/ccr/Makefile
new file mode 100644
index 000000000000..eb2171f6ea80
--- /dev/null
+++ b/sys/modules/cxgbe/ccr/Makefile
@@ -0,0 +1,18 @@
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}/crypto
+
+KMOD= ccr
+
+SRCS= t4_crypto.c
+SRCS+= bus_if.h
+SRCS+= device_if.h
+SRCS+= cryptodev_if.h
+SRCS+= pci_if.h
+
+CFLAGS+= -I${CXGBE}
+
+MFILES= kern/bus_if.m kern/device_if.m opencrypto/cryptodev_if.m \
+ dev/pci/pci_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/cxgbei/Makefile b/sys/modules/cxgbe/cxgbei/Makefile
new file mode 100644
index 000000000000..6e87566b07e8
--- /dev/null
+++ b/sys/modules/cxgbe/cxgbei/Makefile
@@ -0,0 +1,22 @@
+
+CXGBE = ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}/cxgbei
+
+KMOD= cxgbei
+
+SRCS= cxgbei.c
+SRCS+= icl_cxgbei.c
+SRCS+= bus_if.h
+SRCS+= device_if.h
+SRCS+= opt_inet.h
+SRCS+= opt_inet6.h
+SRCS+= opt_kern_tls.h
+SRCS+= pci_if.h
+SRCS+= opt_cam.h
+SRCS+= icl_conn_if.h
+
+CFLAGS+= -I${CXGBE}
+
+MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m dev/pci/pci_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cc/Makefile b/sys/modules/cxgbe/if_cc/Makefile
new file mode 100644
index 000000000000..76a482a98b30
--- /dev/null
+++ b/sys/modules/cxgbe/if_cc/Makefile
@@ -0,0 +1,10 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}
+
+KMOD= if_cc
+SRCS= if_cc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_ccv/Makefile b/sys/modules/cxgbe/if_ccv/Makefile
new file mode 100644
index 000000000000..fc71092dd70e
--- /dev/null
+++ b/sys/modules/cxgbe/if_ccv/Makefile
@@ -0,0 +1,10 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}
+
+KMOD= if_ccv
+SRCS= if_ccv.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile
new file mode 100644
index 000000000000..981c3466c452
--- /dev/null
+++ b/sys/modules/cxgbe/if_cxgbe/Makefile
@@ -0,0 +1,46 @@
+#
+#
+
+.include <kmod.opts.mk>
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE} ${CXGBE}/common ${CXGBE}/crypto ${CXGBE}/cudbg
+
+KMOD= if_cxgbe
+SRCS= bus_if.h
+SRCS+= device_if.h
+SRCS+= opt_ddb.h
+SRCS+= opt_inet.h
+SRCS+= opt_inet6.h
+SRCS+= opt_kern_tls.h
+SRCS+= opt_ofed.h
+SRCS+= opt_ratelimit.h
+SRCS+= opt_rss.h
+SRCS+= pci_if.h pci_iov_if.h
+SRCS+= t4_clip.c
+SRCS+= t4_filter.c
+SRCS+= t4_hw.c
+SRCS+= t4_if.c t4_if.h
+SRCS+= t4_iov.c
+SRCS.KERN_TLS+= t6_kern_tls.c
+SRCS+= t4_keyctx.c
+SRCS+= t4_l2t.c
+SRCS+= t4_main.c
+SRCS+= t4_mp_ring.c
+SRCS+= t4_netmap.c
+SRCS+= t4_sched.c
+SRCS+= t4_sge.c
+SRCS+= t4_smt.c
+SRCS+= t4_tracer.c
+SRCS+= cudbg_common.c
+SRCS+= cudbg_flash_utils.c
+SRCS+= cudbg_lib.c
+SRCS+= cudbg_wtp.c
+SRCS+= fastlz_api.c
+SRCS+= fastlz.c
+
+CFLAGS+= -I${CXGBE}
+
+EXPORT_SYMS= YES
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cxgbev/Makefile b/sys/modules/cxgbe/if_cxgbev/Makefile
new file mode 100644
index 000000000000..122733276535
--- /dev/null
+++ b/sys/modules/cxgbe/if_cxgbev/Makefile
@@ -0,0 +1,20 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE} ${CXGBE}/common
+
+KMOD= if_cxgbev
+SRCS= bus_if.h
+SRCS+= device_if.h
+SRCS+= opt_inet.h
+SRCS+= opt_inet6.h
+SRCS+= opt_ofed.h
+SRCS+= opt_rss.h
+SRCS+= pci_if.h pci_iov_if.h
+SRCS+= t4_vf.c
+SRCS+= t4vf_hw.c
+
+CFLAGS+= -I${CXGBE}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cxl/Makefile b/sys/modules/cxgbe/if_cxl/Makefile
new file mode 100644
index 000000000000..f387de89eb33
--- /dev/null
+++ b/sys/modules/cxgbe/if_cxl/Makefile
@@ -0,0 +1,10 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}
+
+KMOD= if_cxl
+SRCS= if_cxl.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cxlv/Makefile b/sys/modules/cxgbe/if_cxlv/Makefile
new file mode 100644
index 000000000000..b289f673bf15
--- /dev/null
+++ b/sys/modules/cxgbe/if_cxlv/Makefile
@@ -0,0 +1,10 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}
+
+KMOD= if_cxlv
+SRCS= if_cxlv.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/iw_cxgbe/Makefile b/sys/modules/cxgbe/iw_cxgbe/Makefile
new file mode 100644
index 000000000000..9416cdec5ce3
--- /dev/null
+++ b/sys/modules/cxgbe/iw_cxgbe/Makefile
@@ -0,0 +1,24 @@
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}/iw_cxgbe
+
+KMOD= iw_cxgbe
+SRCS+= cm.c
+SRCS+= cq.c
+SRCS+= device.c
+SRCS+= ev.c
+SRCS+= id_table.c
+SRCS+= mem.c
+SRCS+= provider.c
+SRCS+= qp.c
+SRCS+= resource.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_kern_tls.h opt_ktr.h opt_ofed.h
+
+CFLAGS+= -I${CXGBE} -I${SRCTOP}/sys/ofed/include -DLINUX_TYPES_DEFINED
+CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
+CFLAGS+= ${LINUXKPI_INCLUDES}
+CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
+CFLAGS+= -DINET6 -DINET
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/t4_firmware/Makefile b/sys/modules/cxgbe/t4_firmware/Makefile
new file mode 100644
index 000000000000..fb8eeb0d6c8e
--- /dev/null
+++ b/sys/modules/cxgbe/t4_firmware/Makefile
@@ -0,0 +1,22 @@
+#
+#
+
+T4FW= ${SRCTOP}/sys/dev/cxgbe/firmware
+.PATH: ${T4FW}
+
+KMOD= t4fw_cfg
+FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
+
+# You can have additional configuration files in the ${T4FW} directory.
+# t4fw_cfg_<name>.txt
+CFG_FILES != cd ${T4FW} && echo ${KMOD}_*.txt
+.for F in ${CFG_FILES}
+.if exists(${F})
+FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
+.endif
+.endfor
+
+T4FW_VER= 1.27.4.0
+FIRMWS+= t4fw-${T4FW_VER}.bin:t4fw:${T4FW_VER}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/t5_firmware/Makefile b/sys/modules/cxgbe/t5_firmware/Makefile
new file mode 100644
index 000000000000..2876d1a6b041
--- /dev/null
+++ b/sys/modules/cxgbe/t5_firmware/Makefile
@@ -0,0 +1,22 @@
+#
+#
+
+T5FW= ${SRCTOP}/sys/dev/cxgbe/firmware
+.PATH: ${T5FW}
+
+KMOD= t5fw_cfg
+FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
+
+# You can have additional configuration files in the ${T5FW} directory.
+# t5fw_cfg_<name>.txt
+CFG_FILES != cd ${T5FW} && echo ${KMOD}_*.txt
+.for F in ${CFG_FILES}
+.if exists(${F})
+FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
+.endif
+.endfor
+
+T5FW_VER= 1.27.4.0
+FIRMWS+= t5fw-${T5FW_VER}.bin:t5fw:${T5FW_VER}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/t6_firmware/Makefile b/sys/modules/cxgbe/t6_firmware/Makefile
new file mode 100644
index 000000000000..7ac481c4bdb9
--- /dev/null
+++ b/sys/modules/cxgbe/t6_firmware/Makefile
@@ -0,0 +1,22 @@
+#
+#
+
+T6FW= ${SRCTOP}/sys/dev/cxgbe/firmware
+.PATH: ${T6FW}
+
+KMOD= t6fw_cfg
+FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
+
+# You can have additional configuration files in the ${T6FW} directory.
+# t6fw_cfg_<name>.txt
+CFG_FILES != cd ${T6FW} && echo ${KMOD}_*.txt
+.for F in ${CFG_FILES}
+.if exists(${F})
+FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
+.endif
+.endfor
+
+T6FW_VER= 1.27.4.0
+FIRMWS+= t6fw-${T6FW_VER}.bin:t6fw:${T6FW_VER}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/tom/Makefile b/sys/modules/cxgbe/tom/Makefile
new file mode 100644
index 000000000000..301958ac5844
--- /dev/null
+++ b/sys/modules/cxgbe/tom/Makefile
@@ -0,0 +1,25 @@
+#
+#
+
+CXGBE= ${SRCTOP}/sys/dev/cxgbe
+.PATH: ${CXGBE}/tom
+
+KMOD= t4_tom
+SRCS= bus_if.h
+SRCS+= device_if.h
+SRCS+= opt_inet.h
+SRCS+= opt_inet6.h
+SRCS+= opt_kern_tls.h
+SRCS+= opt_ratelimit.h
+SRCS+= pci_if.h
+SRCS+= t4_connect.c
+SRCS+= t4_cpl_io.c
+SRCS+= t4_ddp.c
+SRCS+= t4_listen.c
+SRCS+= t4_tls.c
+SRCS+= t4_tom.c
+SRCS+= t4_tom_l2t.c
+
+CFLAGS+= -I${CXGBE}
+
+.include <bsd.kmod.mk>