Rev 3386 | Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3386 | Rev 4153 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define KERN_CONSOLE_H_ |
36 | #define KERN_CONSOLE_H_ |
37 | 37 | ||
38 | #include <arch/types.h> |
38 | #include <arch/types.h> |
39 | #include <console/chardev.h> |
39 | #include <console/chardev.h> |
40 | 40 | ||
41 | extern chardev_t *stdin; |
41 | extern indev_t *stdin; |
42 | extern chardev_t *stdout; |
42 | extern outdev_t *stdout; |
- | 43 | ||
- | 44 | extern bool silent; |
|
- | 45 | ||
- | 46 | extern void console_init(void); |
|
43 | 47 | ||
44 | extern void klog_init(void); |
48 | extern void klog_init(void); |
45 | extern void klog_update(void); |
49 | extern void klog_update(void); |
46 | 50 | ||
- | 51 | extern bool check_poll(indev_t *indev); |
|
47 | extern uint8_t getc(chardev_t *chardev); |
52 | extern uint8_t getc(indev_t *indev); |
48 | uint8_t _getc(chardev_t *chardev); |
53 | extern uint8_t _getc(indev_t *indev); |
49 | extern count_t gets(chardev_t *chardev, char *buf, size_t buflen); |
54 | extern count_t gets(indev_t *indev, char *buf, size_t buflen); |
50 | extern void putchar(char c); |
55 | extern void putchar(char c); |
- | 56 | extern unative_t sys_klog(int fd, const void * buf, size_t count); |
|
- | 57 | ||
- | 58 | extern void grab_console(void); |
|
- | 59 | extern void release_console(void); |
|
- | 60 | ||
- | 61 | extern unative_t sys_debug_enable_console(void); |
|
- | 62 | extern unative_t sys_debug_disable_console(void); |
|
51 | 63 | ||
52 | extern void arch_grab_console(void); |
64 | extern void arch_grab_console(void); |
53 | extern void arch_release_console(void); |
65 | extern void arch_release_console(void); |
54 | 66 | ||
55 | #endif /* KERN_CONSOLE_H_ */ |
67 | #endif /* KERN_CONSOLE_H_ */ |