Rev 3965 | Rev 4087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3965 | Rev 4042 | ||
|---|---|---|---|
| Line 104... | Line 104... | ||
| 104 | static irq_ownership_t klog_claim(irq_t *irq) |
104 | static irq_ownership_t klog_claim(irq_t *irq) |
| 105 | { |
105 | { |
| 106 | return IRQ_DECLINE; |
106 | return IRQ_DECLINE; |
| 107 | } |
107 | } |
| 108 | 108 | ||
| - | 109 | static void stdin_suspend(chardev_t *d) |
|
| - | 110 | { |
|
| - | 111 | } |
|
| - | 112 | ||
| - | 113 | static void stdin_resume(chardev_t *d) |
|
| - | 114 | { |
|
| - | 115 | } |
|
| - | 116 | ||
| - | 117 | static chardev_operations_t stdin_ops = { |
|
| - | 118 | .suspend = stdin_suspend, |
|
| - | 119 | .resume = stdin_resume, |
|
| - | 120 | }; |
|
| - | 121 | ||
| 109 | /** Standard input character device */ |
122 | /** Standard input character device */ |
| - | 123 | static chardev_t _stdin; |
|
| 110 | chardev_t *stdin = NULL; |
124 | chardev_t *stdin = NULL; |
| 111 | chardev_t *stdout = &null_stdout; |
125 | chardev_t *stdout = &null_stdout; |
| 112 | 126 | ||
| - | 127 | void console_init(void) |
|
| - | 128 | { |
|
| - | 129 | chardev_initialize("stdin", &_stdin, &stdin_ops); |
|
| - | 130 | stdin = &_stdin; |
|
| - | 131 | } |
|
| - | 132 | ||
| 113 | /** Initialize kernel logging facility |
133 | /** Initialize kernel logging facility |
| 114 | * |
134 | * |
| 115 | * The shared area contains kernel cyclic buffer. Userspace application may |
135 | * The shared area contains kernel cyclic buffer. Userspace application may |
| 116 | * be notified on new data with indication of position and size |
136 | * be notified on new data with indication of position and size |
| 117 | * of the data within the circular buffer. |
137 | * of the data within the circular buffer. |