1# $FreeBSD: releng/10.3/sys/modules/nxge/Makefile 242731 2012-11-08 01:35:02Z kevlo $ 2 3.PATH: ${.CURDIR}/../../dev/nxge 4.PATH: ${.CURDIR}/../../dev/nxge/xgehal 5 6CFLAGS_NXGE = 7 8# Debugging/Tracing: 9# XGE_COMPONENT_HAL_CONFIG 0x1 10# XGE_COMPONENT_HAL_FIFO 0x2 11# XGE_COMPONENT_HAL_RING 0x4 12# XGE_COMPONENT_HAL_CHANNEL 0x8 13# XGE_COMPONENT_HAL_DEVICE 0x10 14# XGE_COMPONENT_HAL_MM 0x20 15# XGE_COMPONENT_HAL_QUEUE 0x40 16# XGE_COMPONENT_HAL_STATS 0x100 17# XGE_COMPONENT_OSDEP 0x10000000 18# XGE_COMPONENT_LL 0x20000000 19# XGE_COMPONENT_ALL 0xffffffff 20 21CFLAGS_NXGE += -DXGE_DEBUG_MODULE_MASK=XGE_COMPONENT_LL 22CFLAGS_NXGE += -DXGE_DEBUG_ERR_MASK=XGE_COMPONENT_LL 23#CFLAGS_NXGE += -DXGE_DEBUG_TRACE_MASK=XGE_COMPONENT_LL 24 25# Check Memory 26#CFLAGS_NXGE += -DXGE_OS_MEMORY_CHECK 27 28# 2-Buffer Mode 29#CFLAGS_NXGE += -DXGE_FEATURE_BUFFER_MODE_2 30 31CFLAGS += $(CFLAGS_NXGE) 32 33KMOD= if_nxge 34SRCS= if_nxge.c 35SRCS+= xgehal-device.c xgehal-mm.c xge-queue.c 36SRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c 37SRCS+= xgehal-fifo.c xgehal-stats.c xgehal-config.c 38SRCS+= xgehal-mgmt.c 39SRCS+= device_if.h bus_if.h pci_if.h 40 41.include <bsd.kmod.mk> 42 43CWARNFLAGS.if_nxge.c= ${NO_WSELF_ASSIGN} 44CWARNFLAGS.xgehal-device.c= ${NO_WSELF_ASSIGN} 45CWARNFLAGS.xgehal-driver.c= ${NO_WSELF_ASSIGN} 46CWARNFLAGS.xgehal-ring.c= ${NO_WSELF_ASSIGN} 47CWARNFLAGS.xgehal-channel.c= ${NO_WSELF_ASSIGN} 48CWARNFLAGS.xgehal-fifo.c= ${NO_WSELF_ASSIGN} 49CWARNFLAGS.xgehal-stats.c= ${NO_WSELF_ASSIGN} 50CWARNFLAGS.xgehal-mgmt.c= ${NO_WSELF_ASSIGN} 51CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 52