aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Lupori <luporl@FreeBSD.org>2020-03-12 12:47:10 +0000
committerLeandro Lupori <luporl@FreeBSD.org>2020-03-12 12:47:10 +0000
commitc5568ba087413b483a8ca93c545af9ca497b8f0e (patch)
treee8702768c0744e86e4beae835e17082b9ec0bf35
parent0efe25f9a5c659a2de43c0c5322dc3537a87beb8 (diff)
Enable ixl device on PowerPC64
The ixl driver now works on PowerPC64 and may be compiled in-kernel and as a module. Reviewed by: alfredo, erj Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D23974
Notes
Notes: svn path=/head/; revision=358908
-rw-r--r--sys/conf/files.powerpc37
-rw-r--r--sys/conf/options.powerpc2
-rw-r--r--sys/modules/Makefile1
-rw-r--r--sys/powerpc/conf/GENERIC641
4 files changed, 41 insertions, 0 deletions
diff --git a/sys/conf/files.powerpc b/sys/conf/files.powerpc
index 4013eae2836f..59e146d5aa36 100644
--- a/sys/conf/files.powerpc
+++ b/sys/conf/files.powerpc
@@ -38,6 +38,43 @@ dev/iicbus/max6690.c optional max6690 powermac
dev/iicbus/ofw_iicbus.c optional iicbus aim
dev/ipmi/ipmi.c optional ipmi
dev/ipmi/ipmi_opal.c optional powernv ipmi
+dev/ixl/if_ixl.c optional ixl pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/ixl_pf_main.c optional ixl pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/ixl_pf_qmgr.c optional ixl pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/ixl_pf_iov.c optional ixl pci pci_iov powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/ixl_pf_i2c.c optional ixl pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/if_iavf.c optional iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/iavf_vc.c optional iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/ixl_txrx.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_osdep.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_lan_hmc.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_hmc.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_common.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_nvm.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_adminq.c optional ixl pci powerpc64 | \
+ iavf pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
+dev/ixl/i40e_dcb.c optional ixl pci powerpc64 \
+ compile-with "${NORMAL_C} -I$S/dev/ixl"
# Most ofw stuff below is brought in by conf/files for options FDT, but
# we always want it, even on non-FDT platforms.
dev/fdt/simplebus.c standard
diff --git a/sys/conf/options.powerpc b/sys/conf/options.powerpc
index 85b6b101fd95..1e24eb58a0e2 100644
--- a/sys/conf/options.powerpc
+++ b/sys/conf/options.powerpc
@@ -37,3 +37,5 @@ OFWCONS_POLL_HZ opt_ofw.h
# AGP debugging support
AGP_DEBUG opt_agp.h
+# iWARP client interface support in ixl
+IXL_IW opt_ixl.h
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index af8b0d2b471e..e6b56f4cf325 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -766,6 +766,7 @@ _virtio= virtio
.if ${MACHINE_ARCH} == "powerpc64"
_ipmi= ipmi
+_ixl= ixl
_nvram= opal_nvram
.endif
.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"
diff --git a/sys/powerpc/conf/GENERIC64 b/sys/powerpc/conf/GENERIC64
index 0c2d96afe88a..f0e81929d0fa 100644
--- a/sys/powerpc/conf/GENERIC64
+++ b/sys/powerpc/conf/GENERIC64
@@ -168,6 +168,7 @@ device iflib
# Ethernet hardware
device em # Intel PRO/1000 Gigabit Ethernet Family
device ix # Intel PRO/10GbE PCIE PF Ethernet Family
+device ixl # Intel 700 Series Physical Function
device ixv # Intel PRO/10GbE PCIE VF Ethernet Family
device glc # Sony Playstation 3 Ethernet
device llan # IBM pSeries Virtual Ethernet