Rev 2787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 3424 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | #include <libadt/fifo.h> |
48 | #include <libadt/fifo.h> |
49 | #include <key_buffer.h> |
49 | #include <key_buffer.h> |
50 | #include <async.h> |
50 | #include <async.h> |
51 | #include <keys.h> |
51 | #include <keys.h> |
52 | 52 | ||
53 | #define NAME "KBD" |
53 | #define NAME "kbd" |
54 | 54 | ||
55 | int cons_connected = 0; |
55 | int cons_connected = 0; |
56 | int phone2cons = -1; |
56 | int phone2cons = -1; |
57 | keybuffer_t keybuffer; |
57 | keybuffer_t keybuffer; |
58 | 58 | ||
Line 119... | Line 119... | ||
119 | } |
119 | } |
120 | 120 | ||
121 | 121 | ||
122 | int main(int argc, char **argv) |
122 | int main(int argc, char **argv) |
123 | { |
123 | { |
- | 124 | printf(NAME ": HelenOS Keyboard service\n"); |
|
- | 125 | ||
124 | ipcarg_t phonead; |
126 | ipcarg_t phonead; |
125 | 127 | ||
126 | /* Initialize arch dependent parts */ |
128 | /* Initialize arch dependent parts */ |
127 | if (kbd_arch_init()) |
129 | if (kbd_arch_init()) |
128 | return -1; |
130 | return -1; |
Line 133... | Line 135... | ||
133 | async_set_client_connection(console_connection); |
135 | async_set_client_connection(console_connection); |
134 | async_set_interrupt_received(irq_handler); |
136 | async_set_interrupt_received(irq_handler); |
135 | /* Register service at nameserver */ |
137 | /* Register service at nameserver */ |
136 | if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, 0, &phonead) != 0) |
138 | if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, 0, &phonead) != 0) |
137 | return -1; |
139 | return -1; |
138 | 140 | ||
- | 141 | printf(NAME ": Accepting connections\n"); |
|
139 | async_manager(); |
142 | async_manager(); |
140 | 143 | ||
141 | /* Never reached */ |
144 | /* Never reached */ |
142 | return 0; |
145 | return 0; |
143 | } |
146 | } |
144 | 147 | ||
145 | /** |
148 | /** |
146 | * @} |
149 | * @} |
147 | */ |
150 | */ |
148 | - |