Commit c256e44d authored by zhaoweibo's avatar zhaoweibo Committed by JiangShui
Browse files

hns3 udma: support loading and unloading of udma driver.

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I85R2F


CVE: NA

-------------------------------------------------------

This patch adds the function of loading and unloading the udma driver.

Signed-off-by: default avatarXincheng Zhu <zhuxincheng2@huawei.com>
Signed-off-by: default avatarWeibo Zhao <zhaoweibo3@huawei.com>
parent a3906a9c
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.
+12 −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

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