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

!191 roh/core: Add ROH device driver

Merge Pull Request from: @zhengzengkai 
 
```
[Description]​
The ROH module driver consists of the ROH Core and ROH DRV
modules, which work with hardware to implement communication
between nodes through HCCS packets.
ROH Core is a protocol stack of the ROH architecture. It provides
related services for upper layers by invoking operation interfaces
provided by the ROH DRV.
The ROH DRV implements the lower layer functions of the ROH
featureand provides a series of interfaces for operating hardware
for the ROH Core. 

This patch adds ROH device driver support, including:
1. ROH Core initialization
2. Provide roh device registration framework.
3. etc

[Testing]
kernel options:
CONFIG_ROH=m

Test passed with below step:
1. load the roh_core.ko
# insmod roh_core.ko
2. There is no error when roh_core.ko is loaded,
confirm that ko is loaded normally:
# lsmod | grep roh_core
roh_core 24576 0 - Live 0xffff800008f07000
3. View the sysfs file and confirm that the roh
directory has been generated:
# ls /sys/class/ | grep roh
roh
4.Uninstall roh_core.ko without any errors
```
 
 
Link:https://gitee.com/openeuler/kernel/pulls/191

 
Reviewed-by: default avatarLing Mingqiang <lingmingqiang@huawei.com>
Signed-off-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parents 33e7f3b4 bffd678d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -237,4 +237,7 @@ source "drivers/interconnect/Kconfig"
source "drivers/counter/Kconfig"

source "drivers/most/Kconfig"

source "drivers/roh/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -191,3 +191,4 @@ obj-$(CONFIG_GNSS) += gnss/
obj-$(CONFIG_INTERCONNECT)	+= interconnect/
obj-$(CONFIG_COUNTER)		+= counter/
obj-$(CONFIG_MOST)		+= most/
obj-$(CONFIG_ROH)		+= roh/

drivers/roh/Kconfig

0 → 100644
+16 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+

menuconfig ROH
	tristate "ROH support"
	depends on HAS_IOMEM && HAS_DMA
	depends on NET
	depends on INET
	depends on m
	select IRQ_POLL
	select DIMLIB
	help
	  Core support for ROH.  Make sure to also select
	  any protocols you wish to use as well as drivers
	  for your ROH hardware.

	  To compile ROH core as module, choose M here.

drivers/roh/Makefile

0 → 100644
+6 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Makefile for the Linux kernel ROH device drivers.
#

obj-$(CONFIG_ROH)		+= core/
+7 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Makefile for the Linux kernel ROH Core drivers.
#

roh_core-objs := main.o core.o
obj-$(CONFIG_ROH) += roh_core.o
Loading