mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
staging: unisys: Add s-Par visornic ethernet driver
This driver creates a network device when s-Par sends a device create message to create network adapter on the visorbus. When the message is received by visorbus, the visornic_probe function is called and the netdev device is created and managed by the visornic driver. Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dbb9d61994
commit
68905a14e4
@@ -12,5 +12,6 @@ menuconfig UNISYSSPAR
|
|||||||
if UNISYSSPAR
|
if UNISYSSPAR
|
||||||
|
|
||||||
source "drivers/staging/unisys/visorbus/Kconfig"
|
source "drivers/staging/unisys/visorbus/Kconfig"
|
||||||
|
source "drivers/staging/unisys/visornic/Kconfig"
|
||||||
|
|
||||||
endif # UNISYSSPAR
|
endif # UNISYSSPAR
|
||||||
|
|||||||
@@ -2,3 +2,4 @@
|
|||||||
# Makefile for Unisys SPAR drivers
|
# Makefile for Unisys SPAR drivers
|
||||||
#
|
#
|
||||||
obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/
|
obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/
|
||||||
|
obj-$(CONFIG_UNISYS_VISORNIC) += visornic/
|
||||||
|
|||||||
15
drivers/staging/unisys/visornic/Kconfig
Normal file
15
drivers/staging/unisys/visornic/Kconfig
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Unisys visornic configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
config UNISYS_VISORNIC
|
||||||
|
tristate "Unisys visornic driver"
|
||||||
|
depends on UNISYSSPAR && UNISYS_VISORBUS && NET
|
||||||
|
---help---
|
||||||
|
The Unisys Visornic driver provides support for s-Par network
|
||||||
|
devices exposed on the s-Par visorbus. When a message is sent
|
||||||
|
to visorbus to create a network device, the probe function of
|
||||||
|
visornic is called to create the netdev device. Networking on
|
||||||
|
s-Par switches will not work if this driver is not selected.
|
||||||
|
If you say Y here, you will enable the Unisys visornic driver.
|
||||||
|
|
||||||
10
drivers/staging/unisys/visornic/Makefile
Normal file
10
drivers/staging/unisys/visornic/Makefile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# Makefile for Unisys channel
|
||||||
|
#
|
||||||
|
|
||||||
|
obj-$(CONFIG_UNISYS_VISORNIC) += visornic.o
|
||||||
|
|
||||||
|
visornic-y := visornic_main.o
|
||||||
|
|
||||||
|
ccflags-y += -Idrivers/staging/unisys/include
|
||||||
|
|
||||||
2140
drivers/staging/unisys/visornic/visornic_main.c
Normal file
2140
drivers/staging/unisys/visornic/visornic_main.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user