Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3703987c authored by Erik Arfvidson's avatar Erik Arfvidson Committed by Greg Kroah-Hartman
Browse files

staging: unisys: add visorbus driver



This base driver provides bus functionality to visorhid, visorhba,
and visornic which will be later added to our driver base. Visorbus
supports sPar bus model and manages bus specific functionality. It
maintains the sysfs subtree /sys/devices/visorbus*/.It is
responsible for device creation and destruction of the devices on
its bus.

Signed-off-by: default avatarErik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e61e4c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -12,5 +12,6 @@ if UNISYSSPAR
source "drivers/staging/unisys/visorutil/Kconfig"
source "drivers/staging/unisys/visorutil/Kconfig"
source "drivers/staging/unisys/visorchannel/Kconfig"
source "drivers/staging/unisys/visorchannel/Kconfig"
source "drivers/staging/unisys/visorchipset/Kconfig"
source "drivers/staging/unisys/visorchipset/Kconfig"
source "drivers/staging/unisys/visorbus/Kconfig"


endif # UNISYSSPAR
endif # UNISYSSPAR
+1 −0
Original line number Original line Diff line number Diff line
@@ -4,3 +4,4 @@
obj-$(CONFIG_UNISYS_VISORUTIL)		+= visorutil/
obj-$(CONFIG_UNISYS_VISORUTIL)		+= visorutil/
obj-$(CONFIG_UNISYS_VISORCHANNEL)	+= visorchannel/
obj-$(CONFIG_UNISYS_VISORCHANNEL)	+= visorchannel/
obj-$(CONFIG_UNISYS_VISORCHIPSET)	+= visorchipset/
obj-$(CONFIG_UNISYS_VISORCHIPSET)	+= visorchipset/
obj-$(CONFIG_UNISYS_VISORBUS)		+= visorbus/
+1 −1
Original line number Original line Diff line number Diff line
@@ -54,7 +54,7 @@ static const uuid_le spar_vbus_channel_protocol_uuid =
#define SPAR_VBUS_CHANNEL_OK_SERVER(actual_bytes)    \
#define SPAR_VBUS_CHANNEL_OK_SERVER(actual_bytes)    \
	(spar_check_channel_server(spar_vbus_channel_protocol_uuid,	\
	(spar_check_channel_server(spar_vbus_channel_protocol_uuid,	\
				   "vbus",				\
				   "vbus",				\
				   sizeof(struct ultra_vbus_channel_protocol),\
				   sizeof(struct spar_vbus_channel_protocol),\
				   actual_bytes))
				   actual_bytes))


#pragma pack(push, 1)		/* both GCC and VC now allow this pragma */
#pragma pack(push, 1)		/* both GCC and VC now allow this pragma */
+10 −0
Original line number Original line Diff line number Diff line
#
# Unisys visorbus configuration
#

config UNISYS_VISORBUS
	tristate "Unisys visorbus driver"
	depends on UNISYSSPAR && UNISYS_VISORUTIL && UNISYS_VISORCHANNEL && UNISYS_VISORCHIPSET
	---help---
	If you say Y here, you will enable the Unisys visorbus driver.
+14 −0
Original line number Original line Diff line number Diff line
#
# Makefile for Unisys visorbus
#

obj-$(CONFIG_UNISYS_VISORBUS)	+= visorbus.o

visorbus-y := visorbus_main.o devmajorminor_attr.o businst_attr.o channel_attr.o

ccflags-y += -Idrivers/staging/unisys/include
ccflags-y += -Idrivers/staging/unisys/visorchannel
ccflags-y += -Idrivers/staging/unisys/visorchipset
ccflags-y += -Idrivers/staging/unisys/common-spar/include
ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
ccflags-y += -Idrivers/staging/unisys/visorutil
Loading