aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2007-06-29 22:47:18 +0000
committerSam Leffler <sam@FreeBSD.org>2007-06-29 22:47:18 +0000
commitfd3ddbd038d32d505b93886664d024152cbcdd3f (patch)
tree0de44f561153f2e88c7ca00be99c20dcb9f2dbcc /sys/modules
parent3995a80fd6cf4996fb1f7317d614bad9306129cc (diff)
Notes
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/nxge/Makefile44
2 files changed, 47 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index e707e9363ca0..4fba22e42386 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 000000000000..0eea7214ae4b
--- /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>