Subversion Repositories HelenOS

Rev

Rev 4148 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4148 Rev 4329
Line 67... Line 67...
67
    ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
67
    ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
68
        0, &msim_kbd);
68
        0, &msim_kbd);
69
    return 0;
69
    return 0;
70
}
70
}
71
 
71
 
72
static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call)
72
void kbd_port_yield(void)
73
{
73
{
74
    int scan_code = IPC_GET_ARG2(*call);
-
 
75
//  static int esc_count=0;
-
 
76
 
74
}
77
//  if (scan_code == 0x1b) {
-
 
78
//      esc_count++;
-
 
79
//      if (esc_count == 3)
-
 
80
//          __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
-
 
81
//  } else {
-
 
82
//      esc_count=0;
-
 
83
//  }
-
 
84
 
75
 
85
//  if (fb_fb)
-
 
86
//      return kbd_arch_process_fb(keybuffer, scan_code);
76
void kbd_port_reclaim(void)
-
 
77
{
-
 
78
}
87
 
79
 
-
 
80
static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call)
-
 
81
{
-
 
82
    int scan_code = IPC_GET_ARG2(*call);
88
    kbd_push_scancode(scan_code);
83
    kbd_push_scancode(scan_code);
89
}
84
}
90
 
85
 
91
/** @}
86
/** @}
92
*/
87
*/