diff options
author | np <np@FreeBSD.org> | 2013-10-21 01:10:37 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2013-10-21 01:10:37 +0000 |
commit | 01cd6364a8ed9e44d43face023115015f242e98b (patch) | |
tree | 8a4312b3d53bc3be34c713abe57bde9ae5131957 /sys/modules | |
parent | 514a2c2eaae634f1b2dfb3644838d92fa2916acb (diff) | |
download | FreeBSD-src-01cd6364a8ed9e44d43face023115015f242e98b.zip FreeBSD-src-01cd6364a8ed9e44d43face023115015f242e98b.tar.gz |
MFC r256694, r256713, r256714.
r256694:
iw_cxgbe: iWARP driver for Chelsio T4/T5 chips. This is a straight port
of the iw_cxgb4 found in OFED distributions.
r256713:
iw_cxgbe should have a dependency on t4nex.
r256714:
Fix typo in previous commit.
Approved by: re (hrs)
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/cxgbe/Makefile | 9 | ||||
-rw-r--r-- | sys/modules/cxgbe/iw_cxgbe/Makefile | 27 |
2 files changed, 35 insertions, 1 deletions
diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile index fb75485..d7ce647 100644 --- a/sys/modules/cxgbe/Makefile +++ b/sys/modules/cxgbe/Makefile @@ -6,9 +6,16 @@ SUBDIR = if_cxgbe SUBDIR+= t4_firmware SUBDIR+= t5_firmware SUBDIR+= ${_tom} +SUBDIR+= ${_iw_cxgbe} -.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +.if ${MACHINE_CPUARCH} == "amd64" _tom= tom +_iw_cxgbe= iw_cxgbe .endif +.if ${MACHINE_CPUARCH} == "i386" +_tom= tom +.endif + + .include <bsd.subdir.mk> diff --git a/sys/modules/cxgbe/iw_cxgbe/Makefile b/sys/modules/cxgbe/iw_cxgbe/Makefile new file mode 100644 index 0000000..7704650 --- /dev/null +++ b/sys/modules/cxgbe/iw_cxgbe/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +CXGBE = ${.CURDIR}/../../../dev/cxgbe +.PATH: ${CXGBE}/iw_cxgbe + +KMOD= iw_cxgbe +SRCS= device.c cm.c provider.c mem.c cq.c qp.c resource.c ev.c id_table.c +SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h +SRCS+= opt_inet.h opt_ofed.h vnode_if.h +CFLAGS+= -I${CXGBE} -I${.CURDIR}/../../../ofed/include -DLINUX_TYPES_DEFINED + +.if !defined(KERNBUILDDIR) +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + @echo "#define INET 1" > ${.TARGET} + @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} +.endif + +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + @echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> |