1171095Ssam# $FreeBSD: releng/10.3/sys/modules/nxge/Makefile 242731 2012-11-08 01:35:02Z kevlo $ 2171095Ssam 3171095Ssam.PATH: ${.CURDIR}/../../dev/nxge 4242731Skevlo.PATH: ${.CURDIR}/../../dev/nxge/xgehal 5171095Ssam 6171095SsamCFLAGS_NXGE = 7171095Ssam 8171095Ssam# Debugging/Tracing: 9171095Ssam# XGE_COMPONENT_HAL_CONFIG 0x1 10171095Ssam# XGE_COMPONENT_HAL_FIFO 0x2 11171095Ssam# XGE_COMPONENT_HAL_RING 0x4 12171095Ssam# XGE_COMPONENT_HAL_CHANNEL 0x8 13171095Ssam# XGE_COMPONENT_HAL_DEVICE 0x10 14171095Ssam# XGE_COMPONENT_HAL_MM 0x20 15171095Ssam# XGE_COMPONENT_HAL_QUEUE 0x40 16171095Ssam# XGE_COMPONENT_HAL_STATS 0x100 17171095Ssam# XGE_COMPONENT_OSDEP 0x10000000 18171095Ssam# XGE_COMPONENT_LL 0x20000000 19171095Ssam# XGE_COMPONENT_ALL 0xffffffff 20171095Ssam 21171095SsamCFLAGS_NXGE += -DXGE_DEBUG_MODULE_MASK=XGE_COMPONENT_LL 22171095SsamCFLAGS_NXGE += -DXGE_DEBUG_ERR_MASK=XGE_COMPONENT_LL 23171095Ssam#CFLAGS_NXGE += -DXGE_DEBUG_TRACE_MASK=XGE_COMPONENT_LL 24171095Ssam 25173139Srwatson# Check Memory 26173139Srwatson#CFLAGS_NXGE += -DXGE_OS_MEMORY_CHECK 27173139Srwatson 28171095Ssam# 2-Buffer Mode 29173139Srwatson#CFLAGS_NXGE += -DXGE_FEATURE_BUFFER_MODE_2 30171095Ssam 31171095SsamCFLAGS += $(CFLAGS_NXGE) 32171095Ssam 33171095SsamKMOD= if_nxge 34171095SsamSRCS= if_nxge.c 35171095SsamSRCS+= xgehal-device.c xgehal-mm.c xge-queue.c 36171095SsamSRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c 37171095SsamSRCS+= xgehal-fifo.c xgehal-stats.c xgehal-config.c 38171095SsamSRCS+= xgehal-mgmt.c 39171095SsamSRCS+= device_if.h bus_if.h pci_if.h 40171095Ssam 41171095Ssam.include <bsd.kmod.mk> 42228994Sdim 43228994SdimCWARNFLAGS.if_nxge.c= ${NO_WSELF_ASSIGN} 44228994SdimCWARNFLAGS.xgehal-device.c= ${NO_WSELF_ASSIGN} 45228994SdimCWARNFLAGS.xgehal-driver.c= ${NO_WSELF_ASSIGN} 46228994SdimCWARNFLAGS.xgehal-ring.c= ${NO_WSELF_ASSIGN} 47228994SdimCWARNFLAGS.xgehal-channel.c= ${NO_WSELF_ASSIGN} 48228994SdimCWARNFLAGS.xgehal-fifo.c= ${NO_WSELF_ASSIGN} 49228994SdimCWARNFLAGS.xgehal-stats.c= ${NO_WSELF_ASSIGN} 50228994SdimCWARNFLAGS.xgehal-mgmt.c= ${NO_WSELF_ASSIGN} 51228994SdimCWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 52