RapidIO: Add RX/TX enable for SRIO port
PATCH 6/7 RapidIO: Add RX/TX enable for SRIO port
From: Thomas Moll <[email protected]>
Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic.
---
drivers/rapidio/Kconfig | 11 ++++++ drivers/rapidio/rio-scan.c | 79 ++++++++++++++++++++++++++++++++++++++++++++- include/linux/rio_regs.h | 5 ++ 3 files changed, 94 insertions(+), 1 deletion(-)
drivers/rapidio/Kconfig +11 -0
@@ -8,3 +8,14 @@ config RAPIDIO_DISC_TIMEOUT ---help--- Amount of time a discovery node waits for a host to complete enumeration before giving up. + +config RAPIDIO_ENABLE_RX_TX_PORTS + bool "Enable RapidIO Input/Output Ports" + depends on RAPIDIO + ---help--- + The RapidIO specification describes a Output port transmit + enable and a Input port receive enable. The recommended state + for Input ports and Output ports should be disabled. When + this switch is set the RapidIO subsystem will enable all + ports for Input/Output direction to allow other traffic + than Maintenance transfers.
drivers/rapidio/rio-scan.c +78 -1
111 lines not on this page · raw message
include/linux/rio_regs.h +5 -0
@@ -242,7 +242,12 @@#define RIO_PORT_N_CTL_PWIDTH 0xc0000000#define RIO_PORT_N_CTL_PWIDTH_1 0x00000000#define RIO_PORT_N_CTL_PWIDTH_4 0x40000000 +#define RIO_PORT_N_CTL_P_TYP_SER 0x00000001#define RIO_PORT_N_CTL_LOCKOUT 0x00000002 +#define RIO_PORT_N_CTL_EN_RX_SER 0x00200000 +#define RIO_PORT_N_CTL_EN_TX_SER 0x00400000 +#define RIO_PORT_N_CTL_EN_RX_PAR 0x08000000 +#define RIO_PORT_N_CTL_EN_TX_PAR 0x40000000/* * Error Management Extensions (RapidIO 1.3+, Part 8)
---
Important Notice: This message is intended for the use of the individual to whom it is addressed and may contain information which is privileged, confidential and/or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or is not the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or return e-mail and delete the original message from your systems. Thank you.