diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2018-01-01 13:03:36 +0000 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2018-01-01 13:03:36 +0000 |
commit | 9a384e838082553e0d0ba04f4b3fd2d9876ae9e9 (patch) | |
tree | 62e7d619088c4eae3a900d73c0255a5e0443c500 /include/linux/kgdb.h | |
parent | c2a96701e4334830534f442528ca5f95df97951a (diff) |
kgdb: Add request_irq() to the io ops table for kgdboc
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'include/linux/kgdb.h')
-rw-r--r-- | include/linux/kgdb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h index e465bb15912d..59ecf6677f99 100644 --- a/include/linux/kgdb.h +++ b/include/linux/kgdb.h @@ -16,6 +16,7 @@ #include <linux/linkage.h> #include <linux/init.h> #include <linux/atomic.h> +#include <linux/interrupt.h> #ifdef CONFIG_HAVE_ARCH_KGDB #include <asm/kgdb.h> #endif @@ -267,6 +268,9 @@ struct kgdb_arch { * the I/O driver. * @post_exception: Pointer to a function that will do any cleanup work * for the I/O driver. + * @request_irq: Pointer to a function that can install an interrupt + * handler that will be called when a character is pending and that + * can be cleared by calling @read_char until it returns NO_POLL_CHAR. * @is_console: 1 if the end device is a console 0 if the I/O device is * not a console */ @@ -278,6 +282,9 @@ struct kgdb_io { int (*init) (void); void (*pre_exception) (void); void (*post_exception) (void); + int (*request_irq)(irq_handler_t thread_fn, + unsigned long irqflags, + void *dev_id); int is_console; }; |