Browse Source

kernel: modules: add HiNIC support

Add support for the Huawei Intelligent PCIE Network Interface Card (HiNIC)

Signed-off-by: Coia Prant <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18534
(cherry picked from commit 5fcc57cca6497712e53c5b8366155dd92359469e)
Link: https://github.com/openwrt/openwrt/pull/18571
Signed-off-by: Hauke Mehrtens <[email protected]>
Coia Prant 10 months ago
parent
commit
4a55d894fd
1 changed files with 17 additions and 0 deletions
  1. 17 0
      package/kernel/linux/modules/netdevices.mk

+ 17 - 0
package/kernel/linux/modules/netdevices.mk

@@ -1821,6 +1821,23 @@ endef
 
 
 $(eval $(call KernelPackage,igc))
 $(eval $(call KernelPackage,igc))
 
 
+
+define KernelPackage/hinic
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Huawei Intelligent PCIE Network Interface Card support
+  DEPENDS:=@PCI_SUPPORT @TARGET_x86||TARGET_armsr_armv8
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/huawei/hinic/hinic.ko
+  KCONFIG:=CONFIG_HINIC
+  AUTOLOAD:=$(call AutoProbe,hinic)
+endef
+
+define KernelPackage/hinic/description
+  Kernel module for HiNIC PCIE Ethernet cards
+endef
+
+$(eval $(call KernelPackage,hinic))
+
+
 define KernelPackage/sfc
 define KernelPackage/sfc
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Solarflare SFC9000/SFC9100/EF100-family support
   TITLE:=Solarflare SFC9000/SFC9100/EF100-family support