diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2010-10-27 18:34:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:15 -0400 |
commit | dd5648c9f53b5cbd9f948d752624400545f979fb (patch) | |
tree | 9092a86701a6b4fa5cd722d4f3fc8b803d08b94c /include/linux/rio_regs.h | |
parent | 68fe4df5d21294401959fa61d5a7094705ed8f6f (diff) |
rapidio: add default handler for error-stopped state
The default error-stopped state handler provides recovery mechanism as
defined by RIO specification.
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Thomas Moll <thomas.moll@sysgo.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Micha Nelissen <micha@neli.hopto.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rio_regs.h')
-rw-r--r-- | include/linux/rio_regs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/rio_regs.h b/include/linux/rio_regs.h index be80b1b21815..daa269d18e07 100644 --- a/include/linux/rio_regs.h +++ b/include/linux/rio_regs.h | |||
@@ -224,15 +224,17 @@ | |||
224 | #define RIO_PORT_GEN_MASTER 0x40000000 | 224 | #define RIO_PORT_GEN_MASTER 0x40000000 |
225 | #define RIO_PORT_GEN_DISCOVERED 0x20000000 | 225 | #define RIO_PORT_GEN_DISCOVERED 0x20000000 |
226 | #define RIO_PORT_N_MNT_REQ_CSR(x) (0x0040 + x*0x20) /* 0x0002 */ | 226 | #define RIO_PORT_N_MNT_REQ_CSR(x) (0x0040 + x*0x20) /* 0x0002 */ |
227 | #define RIO_MNT_REQ_CMD_RD 0x03 /* Reset-device command */ | ||
228 | #define RIO_MNT_REQ_CMD_IS 0x04 /* Input-status command */ | ||
227 | #define RIO_PORT_N_MNT_RSP_CSR(x) (0x0044 + x*0x20) /* 0x0002 */ | 229 | #define RIO_PORT_N_MNT_RSP_CSR(x) (0x0044 + x*0x20) /* 0x0002 */ |
228 | #define RIO_PORT_N_MNT_RSP_RVAL 0x80000000 /* Response Valid */ | 230 | #define RIO_PORT_N_MNT_RSP_RVAL 0x80000000 /* Response Valid */ |
229 | #define RIO_PORT_N_MNT_RSP_ASTAT 0x000003e0 /* ackID Status */ | 231 | #define RIO_PORT_N_MNT_RSP_ASTAT 0x000003e0 /* ackID Status */ |
230 | #define RIO_PORT_N_MNT_RSP_LSTAT 0x0000001f /* Link Status */ | 232 | #define RIO_PORT_N_MNT_RSP_LSTAT 0x0000001f /* Link Status */ |
231 | #define RIO_PORT_N_ACK_STS_CSR(x) (0x0048 + x*0x20) /* 0x0002 */ | 233 | #define RIO_PORT_N_ACK_STS_CSR(x) (0x0048 + x*0x20) /* 0x0002 */ |
232 | #define RIO_PORT_N_ACK_CLEAR 0x80000000 | 234 | #define RIO_PORT_N_ACK_CLEAR 0x80000000 |
233 | #define RIO_PORT_N_ACK_INBOUND 0x1f000000 | 235 | #define RIO_PORT_N_ACK_INBOUND 0x3f000000 |
234 | #define RIO_PORT_N_ACK_OUTSTAND 0x00001f00 | 236 | #define RIO_PORT_N_ACK_OUTSTAND 0x00003f00 |
235 | #define RIO_PORT_N_ACK_OUTBOUND 0x0000001f | 237 | #define RIO_PORT_N_ACK_OUTBOUND 0x0000003f |
236 | #define RIO_PORT_N_ERR_STS_CSR(x) (0x0058 + x*0x20) | 238 | #define RIO_PORT_N_ERR_STS_CSR(x) (0x0058 + x*0x20) |
237 | #define RIO_PORT_N_ERR_STS_PW_OUT_ES 0x00010000 /* Output Error-stopped */ | 239 | #define RIO_PORT_N_ERR_STS_PW_OUT_ES 0x00010000 /* Output Error-stopped */ |
238 | #define RIO_PORT_N_ERR_STS_PW_INP_ES 0x00000100 /* Input Error-stopped */ | 240 | #define RIO_PORT_N_ERR_STS_PW_INP_ES 0x00000100 /* Input Error-stopped */ |