diff options
author | sam <sam@FreeBSD.org> | 2007-06-29 22:47:18 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-06-29 22:47:18 +0000 |
commit | 6698e7dea2102dc38ec391c1e3a13cdf853699af (patch) | |
tree | 0de44f561153f2e88c7ca00be99c20dcb9f2dbcc /sys/modules | |
parent | e513d4fafe87e70a369660930e133040cd2bb31b (diff) | |
download | FreeBSD-src-6698e7dea2102dc38ec391c1e3a13cdf853699af.zip FreeBSD-src-6698e7dea2102dc38ec391c1e3a13cdf853699af.tar.gz |
Neterion Xframe 10GbE Server/Storage adapter driver.
The nxge driver provides support for Neterion Xframe-I and Xframe-II
adapters. The driver supports TCP Segmentation Offload (TSO/LSO),
Jumbo frames (5 buffer mode), Header separation (2 and 3 Receive
buffer modes), VLAN, and Promiscuous mode.
Submitted by: Neterion
Reviewed by: rwatson
Approved by: re (kensmith)
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/nxge/Makefile | 44 |
2 files changed, 47 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index e707e93..4fba22e 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -184,6 +184,7 @@ SUBDIR= ${_3dfx} \ ${_nsp} \ ntfs \ ntfs_iconv \ + ${_nxge} \ nullfs \ ${_nve} \ ${_nwfs} \ @@ -447,6 +448,7 @@ _mly= mly _mxge= mxge _nfe= nfe _nve= nve +_nxge= nxge .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) .if exists(${.CURDIR}/../crypto/via) _padlock= padlock @@ -504,6 +506,7 @@ _mxge= mxge _ndis= ndis _nfe= nfe _nve= nve +_nxge= nxge _pccard= pccard _rr232x= rr232x _safe= safe diff --git a/sys/modules/nxge/Makefile b/sys/modules/nxge/Makefile new file mode 100644 index 0000000..0eea721 --- /dev/null +++ b/sys/modules/nxge/Makefile @@ -0,0 +1,44 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/nxge +VPATH = ${.CURDIR}/../../dev/nxge/xgehal + +CFLAGS_NXGE = + +# Debugging/Tracing: +# XGE_COMPONENT_HAL_CONFIG 0x1 +# XGE_COMPONENT_HAL_FIFO 0x2 +# XGE_COMPONENT_HAL_RING 0x4 +# XGE_COMPONENT_HAL_CHANNEL 0x8 +# XGE_COMPONENT_HAL_DEVICE 0x10 +# XGE_COMPONENT_HAL_MM 0x20 +# XGE_COMPONENT_HAL_QUEUE 0x40 +# XGE_COMPONENT_HAL_STATS 0x100 +# XGE_COMPONENT_OSDEP 0x10000000 +# XGE_COMPONENT_LL 0x20000000 +# XGE_COMPONENT_ALL 0xffffffff + +CFLAGS_NXGE += -DXGE_DEBUG_MODULE_MASK=XGE_COMPONENT_LL +CFLAGS_NXGE += -DXGE_DEBUG_ERR_MASK=XGE_COMPONENT_LL +#CFLAGS_NXGE += -DXGE_DEBUG_TRACE_MASK=XGE_COMPONENT_LL + +# 2-Buffer Mode +#CFLAGS_NXGE += -DXGE_BUFFER_MODE_2 + +# 3-Buffer Mode +#CFLAGS_NXGE += -DXGE_BUFFER_MODE_3 + +# TSO (TCP Segmentation Offload) +CFLAGS_NXGE += -DXGE_FEATURE_TSO + +CFLAGS += $(CFLAGS_NXGE) + +KMOD= if_nxge +SRCS= if_nxge.c +SRCS+= xgehal-device.c xgehal-mm.c xge-queue.c +SRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c +SRCS+= xgehal-fifo.c xgehal-stats.c xgehal-config.c +SRCS+= xgehal-mgmt.c +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> |