Subversion Repositories HelenOS-historic

Rev

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

Rev 1282 Rev 1285
Line 12... Line 12...
12
irq_code_t msim_kbd = {
12
irq_code_t msim_kbd = {
13
    1,
13
    1,
14
    msim_cmds
14
    msim_cmds
15
};
15
};
16
*/
16
*/
-
 
17
/*
-
 
18
irq_cmd_t i8042_cmds[1] = {
-
 
19
    { CMD_PORT_READ_1, (void *)0x60, 0 }
-
 
20
};
-
 
21
 
-
 
22
irq_code_t i8042_kbd = {
-
 
23
    1,
-
 
24
    i8042_cmds
-
 
25
};
-
 
26
*/
-
 
27
 
17
static int service;
28
static int service;
18
 
29
 
19
int main(int argc, char **argv)
30
int main(int argc, char **argv)
20
{
31
{
21
    ipc_call_t call;
32
    ipc_call_t call;
Line 23... Line 34...
23
   
34
   
24
    ipcarg_t retval, arg1, arg2;
35
    ipcarg_t retval, arg1, arg2;
25
 
36
 
26
    printf("NS:Name service started.\n");
37
    printf("NS:Name service started.\n");
27
//  ipc_register_irq(2, &msim_kbd);
38
//  ipc_register_irq(2, &msim_kbd);
-
 
39
//  ipc_register_irq(1, &i8042_kbd);
28
    while (1) {
40
    while (1) {
29
        callid = ipc_wait_for_call(&call, 0);
41
        callid = ipc_wait_for_call(&call, 0);
30
        printf("NS:Call phone=%lX..", call.phoneid);
42
        printf("NS:Call phone=%lX..", call.phoneid);
31
        switch (IPC_GET_METHOD(call)) {
43
        switch (IPC_GET_METHOD(call)) {
32
        case IPC_M_INTERRUPT:
44
        case IPC_M_INTERRUPT: