Subversion Repositories HelenOS

Rev

Rev 2621 | Rev 3905 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2621 Rev 2637
Line 106... Line 106...
106
        case IPC_M_CONNECT_TO_ME:
106
        case IPC_M_CONNECT_TO_ME:
107
            if (phone2cons != -1) {
107
            if (phone2cons != -1) {
108
                retval = ELIMIT;
108
                retval = ELIMIT;
109
                break;
109
                break;
110
            }
110
            }
111
            phone2cons = IPC_GET_ARG3(call);
111
            phone2cons = IPC_GET_ARG5(call);
112
            retval = 0;
112
            retval = 0;
113
            break;
113
            break;
114
        default:
114
        default:
115
            retval = EINVAL;
115
            retval = EINVAL;
116
        }
116
        }
Line 131... Line 131...
131
    keybuffer_init(&keybuffer);
131
    keybuffer_init(&keybuffer);
132
   
132
   
133
    async_set_client_connection(console_connection);
133
    async_set_client_connection(console_connection);
134
    async_set_interrupt_received(irq_handler);
134
    async_set_interrupt_received(irq_handler);
135
    /* Register service at nameserver */
135
    /* Register service at nameserver */
136
    if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead) != 0)
136
    if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, 0, &phonead) != 0)
137
        return -1;
137
        return -1;
138
 
138
 
139
    async_manager();
139
    async_manager();
140
 
140
 
141
    /* Never reached */
141
    /* Never reached */