]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/modules/nxge/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / sys / modules / nxge / Makefile
1 # $FreeBSD$
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>