1 # $FreeBSD: releng/8.2/sys/modules/nxge/Makefile 173139 2007-10-29 14:19:32Z rwatson $
2
3 .PATH: ${.CURDIR}/../../dev/nxge
4 VPATH = ${.CURDIR}/../../dev/nxge/xgehal
5
6 CFLAGS_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
21 CFLAGS_NXGE += -DXGE_DEBUG_MODULE_MASK=XGE_COMPONENT_LL
22 CFLAGS_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
31 CFLAGS += $(CFLAGS_NXGE)
32
33 KMOD= if_nxge
34 SRCS= if_nxge.c
35 SRCS+= xgehal-device.c xgehal-mm.c xge-queue.c
36 SRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c
37 SRCS+= xgehal-fifo.c xgehal-stats.c xgehal-config.c
38 SRCS+= xgehal-mgmt.c
39 SRCS+= device_if.h bus_if.h pci_if.h
40
41 .include <bsd.kmod.mk>
Cache object: fb363aa7f1846a90f2f5ecb42bb5a612
|