1176667Sjfv#$FreeBSD$
2253303Sjfv
3253303Sjfv.include <bsd.own.mk>
4253303Sjfv
5181030Sjfv.PATH:  ${.CURDIR}/../../dev/e1000
6176667SjfvKMOD    = if_igb
7253303SjfvSRCS    = device_if.h bus_if.h pci_if.h opt_inet.h opt_inet6.h
8176667SjfvSRCS    += if_igb.c $(SHARED_SRCS)
9176667SjfvSHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
10181030SjfvSHARED_SRCS += e1000_80003es2lan.c e1000_82542.c e1000_82541.c e1000_82543.c
11181030SjfvSHARED_SRCS += e1000_82540.c e1000_ich8lan.c e1000_82571.c e1000_osdep.c
12238148SjfvSHARED_SRCS += e1000_82575.c e1000_vf.c e1000_mbx.c e1000_i210.c
13176667Sjfv
14194865SjfvCFLAGS += -I${.CURDIR}/../../dev/e1000 -DSMP
15176667Sjfv
16176667Sjfv# DEVICE_POLLING gives you non-interrupt handling
17176667Sjfv# not advisable since MSIX gives better results
18176667Sjfv#CFLAGS  += -DDEVICE_POLLING
19176667Sjfv
20248906Sjfv# IGB_LEGACY_TX will override the stack if_transmit path and
21248906Sjfv# instead use the older if_start non-multiqueue capable interface.
22248906Sjfv# This might be desireable for testing, or to enable the use of
23248906Sjfv# ALTQ. 
24248906Sjfv#CFLAGS  += -DIGB_LEGACY_TX
25248906Sjfv
26253303Sjfv.if !defined(KERNBUILDDIR)
27253303Sjfv.if ${MK_INET_SUPPORT} != "no"
28253303Sjfvopt_inet.h:
29253303Sjfv	@echo "#define INET 1" > ${.TARGET}
30253303Sjfv.endif
31253303Sjfv
32253303Sjfv.if ${MK_INET6_SUPPORT} != "no"
33253303Sjfvopt_inet6.h:
34253303Sjfv	@echo "#define INET6 1" > ${.TARGET}
35253303Sjfv.endif
36253303Sjfv.endif
37253303Sjfv
38176667Sjfv.include <bsd.kmod.mk>
39