2007-06-29 22:47:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../dev/nxge
|
2012-11-08 01:35:02 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/nxge/xgehal
|
2007-06-29 22:47:18 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2007-10-29 14:19:32 +00:00
|
|
|
# Check Memory
|
|
|
|
#CFLAGS_NXGE += -DXGE_OS_MEMORY_CHECK
|
2007-06-29 22:47:18 +00:00
|
|
|
|
2007-10-29 14:19:32 +00:00
|
|
|
# 2-Buffer Mode
|
|
|
|
#CFLAGS_NXGE += -DXGE_FEATURE_BUFFER_MODE_2
|
2007-06-29 22:47:18 +00:00
|
|
|
|
|
|
|
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>
|
2011-12-30 13:16:59 +00:00
|
|
|
|
|
|
|
CWARNFLAGS.if_nxge.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-device.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-driver.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-ring.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-channel.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-fifo.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-stats.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS.xgehal-mgmt.c= ${NO_WSELF_ASSIGN}
|
|
|
|
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
|