Unverified Commit e220ebed authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2491 udma: add udma support to hns3

Merge Pull Request from: @zhaoweibo3 
 
drivers inclusion
category: feature
bugzilla: https://gitee.com/open_euler/dashboard?issue_id=I85R2F


CVE: NA

[Content]
1.Add a new driver named hns3_udma which support feature of
udma for hns3 device.
2.Add the corresponding Kconfig, and add the config configuration
item /arch/arm64/configs/openeuler_defconfig.
3.hns3_udma driver rely on unic, ubcore and uburma.

Signed-off-by: default avatarWeibo Zhao <zhaoweibo3@huawei.com>
Signed-off-by: default avatarYu Zhang <zhangyu709@huawei.com>
Signed-off-by: default avatarXincheng Zhu <zhuxincheng2@huawei.com>
 
Link:https://gitee.com/openeuler/kernel/pulls/2491

 

Reviewed-by: default avatarLijun Li <jerry.lilijun@huawei.com>
Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents fe1d12ce 78175470
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6209,6 +6209,7 @@ CONFIG_ROH=m
CONFIG_ROH_HNS=m
CONFIG_UB=m
CONFIG_UB_URMA=m
CONFIG_UB_UDMA_HNS3=m
# end of Device Drivers

#
+1 −0
Original line number Diff line number Diff line
@@ -23,4 +23,5 @@ config UB_URMA
	  need liburma from umdk
	  <https://gitee.com/openeuler/umdk>.

source "drivers/ub/hw/hns3/Kconfig"
endif # UB
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@
#

obj-$(CONFIG_UB)		+= urma/
obj-$(CONFIG_UB_UDMA_HNS3)	+= hw/hns3/
+17 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# UDMA_HNS configuration
#

config UB_UDMA_HNS3
	default n
        tristate "HNS3 UB UDMA Driver"
        depends on UB && UB_URMA
        depends on ARM64
        depends on UBL && PCI
        help
          This is a UB_UDMA_HNS3 driver for the Hisilicon UDMA engine.
          This driver depands on ubcore and uburma.
          This driver depands on UBL(UB link). The UDMA_HNS3 is a PCI device.
          To compile UB_UDMA driver as module, choose M here.
          module will be called hns3_udma.
+17 −0
Original line number Diff line number Diff line
#
## Makefile for the Huawei UDMA Linux driver.
#
##

MODULE_NAME := hns3_udma
ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/ \
		-I$(srctree)/drivers/ub/urma/

$(MODULE_NAME)-objs := hns3_udma_hw.o hns3_udma_main.o hns3_udma_cmd.o \
			hns3_udma_hem.o hns3_udma_qp.o hns3_udma_eq.o \
			hns3_udma_db.o hns3_udma_jfc.o hns3_udma_jfr.o \
			hns3_udma_segment.o  hns3_udma_tp.o hns3_udma_jfs.o \
			hns3_udma_jetty.o hns3_udma_sysfs.o hns3_udma_dca.o \
			hns3_udma_dfx.o

obj-$(CONFIG_UB_UDMA_HNS3) := hns3_udma.o
Loading