mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Rework RapidIO switch drivers to add an option to build them as loadable kernel modules. This patch removes RapidIO-specific vmlinux section and converts switch drivers to be compatible with LDM driver registration method. To simplify registration of device-specific callback routines this patch introduces rio_switch_ops data structure. The sw_sysfs() callback is removed from the list of device-specific operations because under the new structure its functions can be handled by switch driver's probe() and remove() routines. If a specific switch device driver is not loaded the RapidIO subsystem core will use default standard-based operations to configure a switch. Because the current implementation of RapidIO enumeration/discovery method relies on availability of device-specific operations for error management, switch device drivers must be loaded before the RapidIO enumeration/discovery starts. This patch also moves several common routines from enumeration/discovery module into the RapidIO core code to make switch-specific operations accessible to all components of RapidIO subsystem. Signed-off-by: Alexandre Bounine <[email protected]> Cc: Matt Porter <[email protected]> Cc: Li Yang <[email protected]> Cc: Kumar Gala <[email protected]> Cc: Andre van Herk <[email protected]> Cc: Micha Nelissen <[email protected]> Cc: Stef van Os <[email protected]> Cc: Jean Delvare <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
25 lines
634 B
Plaintext
25 lines
634 B
Plaintext
#
|
|
# RapidIO switches configuration
|
|
#
|
|
config RAPIDIO_TSI57X
|
|
tristate "IDT Tsi57x SRIO switches support"
|
|
---help---
|
|
Includes support for IDT Tsi57x family of serial RapidIO switches.
|
|
|
|
config RAPIDIO_CPS_XX
|
|
tristate "IDT CPS-xx SRIO switches support"
|
|
---help---
|
|
Includes support for IDT CPS-16/12/10/8 serial RapidIO switches.
|
|
|
|
config RAPIDIO_TSI568
|
|
tristate "Tsi568 SRIO switch support"
|
|
default n
|
|
---help---
|
|
Includes support for IDT Tsi568 serial RapidIO switch.
|
|
|
|
config RAPIDIO_CPS_GEN2
|
|
tristate "IDT CPS Gen.2 SRIO switch support"
|
|
default n
|
|
---help---
|
|
Includes support for ITD CPS Gen.2 serial RapidIO switches.
|