Rev 4337 | Rev 4348 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4337 | Rev 4338 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #ifndef KERN_KCONSOLE_H_ |
35 | #ifndef KERN_KCONSOLE_H_ |
36 | #define KERN_KCONSOLE_H_ |
36 | #define KERN_KCONSOLE_H_ |
37 | 37 | ||
38 | #include <adt/list.h> |
38 | #include <adt/list.h> |
39 | #include <synch/spinlock.h> |
39 | #include <synch/spinlock.h> |
- | 40 | #include <ipc/irq.h> |
|
40 | 41 | ||
41 | #define MAX_CMDLINE 256 |
42 | #define MAX_CMDLINE 256 |
42 | #define KCONSOLE_HISTORY 10 |
43 | #define KCONSOLE_HISTORY 10 |
43 | 44 | ||
44 | typedef enum { |
45 | typedef enum { |
Line 81... | Line 82... | ||
81 | cmd_arg_t *argv; |
82 | cmd_arg_t *argv; |
82 | /** Function for printing detailed help. */ |
83 | /** Function for printing detailed help. */ |
83 | void (* help)(void); |
84 | void (* help)(void); |
84 | } cmd_info_t; |
85 | } cmd_info_t; |
85 | 86 | ||
- | 87 | extern bool kconsole_notify; |
|
- | 88 | extern irq_t kconsole_irq; |
|
- | 89 | ||
86 | SPINLOCK_EXTERN(cmd_lock); |
90 | SPINLOCK_EXTERN(cmd_lock); |
87 | extern link_t cmd_head; |
91 | extern link_t cmd_head; |
88 | 92 | ||
89 | extern void kconsole_init(void); |
93 | extern void kconsole_init(void); |
- | 94 | extern void kconsole_notify_init(void); |
|
90 | extern void kconsole(char *prompt, char *msg, bool kcon); |
95 | extern void kconsole(char *prompt, char *msg, bool kcon); |
91 | extern void kconsole_thread(void *data); |
96 | extern void kconsole_thread(void *data); |
92 | 97 | ||
93 | extern int cmd_register(cmd_info_t *cmd); |
98 | extern int cmd_register(cmd_info_t *cmd); |
94 | 99 |