Rev 1707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1707 | Rev 1720 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | break; |
110 | break; |
111 | } |
111 | } |
112 | phone2cons = IPC_GET_ARG3(call); |
112 | phone2cons = IPC_GET_ARG3(call); |
113 | retval = 0; |
113 | retval = 0; |
114 | break; |
114 | break; |
- | 115 | default: |
|
- | 116 | retval = EINVAL; |
|
115 | } |
117 | } |
116 | ipc_answer_fast(callid, retval, 0, 0); |
118 | ipc_answer_fast(callid, retval, 0, 0); |
117 | } |
119 | } |
118 | } |
120 | } |
119 | 121 | ||
120 | 122 | ||
121 | int main(int argc, char **argv) |
123 | int main(int argc, char **argv) |
122 | { |
124 | { |
123 | ipc_call_t call; |
- | |
124 | ipc_callid_t callid; |
- | |
125 | int res; |
- | |
126 | ipcarg_t phonead; |
125 | ipcarg_t phonead; |
127 | ipcarg_t phoneid; |
- | |
128 | char connected = 0; |
- | |
129 | ipcarg_t retval, arg1, arg2; |
- | |
130 | 126 | ||
131 | /* Initialize arch dependent parts */ |
127 | /* Initialize arch dependent parts */ |
132 | if (kbd_arch_init()) |
128 | if (kbd_arch_init()) |
133 | return -1; |
129 | return -1; |
134 | 130 | ||
Line 136... | Line 132... | ||
136 | keybuffer_init(&keybuffer); |
132 | keybuffer_init(&keybuffer); |
137 | 133 | ||
138 | async_set_client_connection(console_connection); |
134 | async_set_client_connection(console_connection); |
139 | async_set_interrupt_received(irq_handler); |
135 | async_set_interrupt_received(irq_handler); |
140 | /* Register service at nameserver */ |
136 | /* Register service at nameserver */ |
141 | if ((res = ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead)) != 0) { |
137 | if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead) != 0) |
142 | return -1; |
138 | return -1; |
143 | } |
- | |
144 | 139 | ||
145 | async_manager(); |
140 | async_manager(); |
146 | 141 | ||
- | 142 | /* Never reached */ |
|
- | 143 | return 0; |
|
147 | } |
144 | } |
148 | 145 | ||
149 | /** |
146 | /** |
150 | * @} |
147 | * @} |
151 | */ |
148 | */ |