summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgb
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-12-15 22:03:19 +0000
committerkmacy <kmacy@FreeBSD.org>2007-12-15 22:03:19 +0000
commitebf6b543da13756dd2bbd06a6af348ed3313042e (patch)
treed40aa1e3aacb8f7b32c1efce417c6eaa6689c1f9 /sys/modules/cxgb
parent62acf9d0374f04c8a2e757c1c0105057d0c51fa5 (diff)
downloadFreeBSD-src-ebf6b543da13756dd2bbd06a6af348ed3313042e.zip
FreeBSD-src-ebf6b543da13756dd2bbd06a6af348ed3313042e.tar.gz
Move NIC driver (cxgb) into its own directory. Add toecore to support
registering different TOMs.
Diffstat (limited to 'sys/modules/cxgb')
-rw-r--r--sys/modules/cxgb/Makefile48
-rw-r--r--sys/modules/cxgb/cxgb/Makefile48
-rw-r--r--sys/modules/cxgb/toecore/Makefile8
3 files changed, 61 insertions, 43 deletions
diff --git a/sys/modules/cxgb/Makefile b/sys/modules/cxgb/Makefile
index 99a6a3e..120cc9b 100644
--- a/sys/modules/cxgb/Makefile
+++ b/sys/modules/cxgb/Makefile
@@ -1,45 +1,7 @@
# $FreeBSD$
+SUBDIR= cxgb
+SUBDIR+= toecore
+#SUBDIR+= tom
+#SUBDIR+= iw_cxgb
-CXGB = ${.CURDIR}/../../dev/cxgb
-.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
-
-KMOD= if_cxgb
-SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
-SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c
-SRCS+= cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c
-SRCS+= device_if.h bus_if.h pci_if.h opt_zero.h
-SRCS+= uipc_mvec.c
-
-CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB}
-#CFLAGS+= -DDEBUG -DDEBUG_PRINT
-#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS -DWITNESS
-
-
-.if ${MACHINE_ARCH} != "ia64"
-# ld is broken on ia64
-t3fw-4.7.0.bin: ${CXGB}/t3fw-4.7.0.bin.gz.uu
- uudecode -p < ${CXGB}/t3fw-4.7.0.bin.gz.uu \
- | gzip -dc > ${.TARGET}
-
-FIRMWS= t3fw-4.7.0.bin:t3fw470
-CLEANFILES+= t3fw-4.7.0.bin
-
-t3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu
- uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \
- | gzip -dc > ${.TARGET}
-
-FIRMWS+= t3b_protocol_sram-1.1.0.bin:t3bps110
-CLEANFILES+= t3b_protocol_sram-1.1.0.bin
-
-t3b_tp_eeprom-1.1.0.bin: ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu
- uudecode -p < ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu \
- | gzip -dc > ${.TARGET}
-
-FIRMWS+= t3b_tp_eeprom-1.1.0.bin:t3btpe110
-CLEANFILES+= t3b_tp_eeprom-1.1.0.bin
-
-
-.endif
-
-
-.include <bsd.kmod.mk>
+.include <bsd.subdir.mk>
diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile
new file mode 100644
index 0000000..8c0185b
--- /dev/null
+++ b/sys/modules/cxgb/cxgb/Makefile
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
+
+KMOD= if_cxgb
+SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
+SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c
+SRCS+= cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h
+SRCS+= uipc_mvec.c
+#SRCS+= cxgb_multiq.c cxgb_support.c
+
+CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP
+#CFLAGS+= -DIFNET_MULTIQUEUE
+#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS
+#CFLAGS+= -DWITNESS
+#CFLAGS+= -DDEBUG -DDEBUG_PRINT
+
+
+.if ${MACHINE_ARCH} != "ia64"
+# ld is broken on ia64
+t3fw-4.7.0.bin: ${CXGB}/t3fw-4.7.0.bin.gz.uu
+ uudecode -p < ${CXGB}/t3fw-4.7.0.bin.gz.uu \
+ | gzip -dc > ${.TARGET}
+
+FIRMWS= t3fw-4.7.0.bin:t3fw470
+CLEANFILES+= t3fw-4.7.0.bin
+
+t3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu
+ uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \
+ | gzip -dc > ${.TARGET}
+
+FIRMWS+= t3b_protocol_sram-1.1.0.bin:t3bps110
+CLEANFILES+= t3b_protocol_sram-1.1.0.bin
+
+t3b_tp_eeprom-1.1.0.bin: ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu
+ uudecode -p < ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu \
+ | gzip -dc > ${.TARGET}
+
+FIRMWS+= t3b_tp_eeprom-1.1.0.bin:t3btpe110
+CLEANFILES+= t3b_tp_eeprom-1.1.0.bin
+
+
+.endif
+
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/toecore/Makefile b/sys/modules/cxgb/toecore/Makefile
new file mode 100644
index 0000000..1c05d79
--- /dev/null
+++ b/sys/modules/cxgb/toecore/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+TOECORE = ${.CURDIR}/../../../dev/cxgb/ulp/toecore
+.PATH: ${TOECORE}
+
+KMOD= toecore
+SRCS= toedev.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_sched.h
+.include <bsd.kmod.mk> \ No newline at end of file
OpenPOWER on IntegriCloud