diff options
| author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:22 -0400 |
|---|---|---|
| committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:22 -0400 |
| commit | f5316b4aea024da9266d740322a5481657f6ce59 (patch) | |
| tree | 5888fd0afa54fc3bab2711e583147c4b563836bc /include | |
| parent | dcc7871128e99458ca86186b7bc8bf27ff0c47b5 (diff) | |
kgdb,8250,pl011: Return immediately from console poll
The design of the kdb shell requires that every device that can
provide input to kdb have a polling routine that exits immediately if
there is no character available. This is required in order to get the
page scrolling mechanism working.
Changing the kernel debugger I/O API to require all polling character
routines to exit immediately if there is no data allows the kernel
debugger to process multiple input channels.
NO_POLL_CHAR will be the return code to the polling routine when ever
there is no character available.
CC: linux-serial@vger.kernel.org
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kdb.h | 1 | ||||
| -rw-r--r-- | include/linux/serial_core.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h index 4d93790faec3..d72fa3908128 100644 --- a/include/linux/kdb.h +++ b/include/linux/kdb.h | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <asm/atomic.h> | 19 | #include <asm/atomic.h> |
| 20 | 20 | ||
| 21 | #define KDB_POLL_FUNC_MAX 5 | 21 | #define KDB_POLL_FUNC_MAX 5 |
| 22 | extern int kdb_poll_idx; | ||
| 22 | 23 | ||
| 23 | /* | 24 | /* |
| 24 | * kdb_initial_cpu is initialized to -1, and is set to the cpu | 25 | * kdb_initial_cpu is initialized to -1, and is set to the cpu |
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 78dd1e7120a9..ad839963fa68 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -246,6 +246,7 @@ struct uart_ops { | |||
| 246 | #endif | 246 | #endif |
| 247 | }; | 247 | }; |
| 248 | 248 | ||
| 249 | #define NO_POLL_CHAR 0x00ff0000 | ||
| 249 | #define UART_CONFIG_TYPE (1 << 0) | 250 | #define UART_CONFIG_TYPE (1 << 0) |
| 250 | #define UART_CONFIG_IRQ (1 << 1) | 251 | #define UART_CONFIG_IRQ (1 << 1) |
| 251 | 252 | ||
