Subversion Repositories HelenOS

Rev

Rev 1787 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1787 Rev 1874
Line 51... Line 51...
51
#define KEY_F9 0x7e30325b1b
51
#define KEY_F9 0x7e30325b1b
52
#define KEY_F10 0x7e31325b1b
52
#define KEY_F10 0x7e31325b1b
53
#define KEY_F11 0x7e33325b1b
53
#define KEY_F11 0x7e33325b1b
54
#define KEY_F12 0x7e34325b1b
54
#define KEY_F12 0x7e34325b1b
55
 
55
 
56
 
-
 
57
#define FUNCTION_KEYS 0x100
56
#define FUNCTION_KEYS 0x100
58
 
57
 
59
irq_cmd_t ski_cmds[1] = {
58
irq_cmd_t ski_cmds[1] = {
60
    { CMD_IA64_GETCHAR, 0, 0, 2 }
59
    { CMD_IA64_GETCHAR, 0, 0, 2 }
61
};
60
};
Line 88... Line 87...
88
    static unsigned long long buf=0;
87
    static unsigned long long buf=0;
89
    static int count=0;
88
    static int count=0;
90
    static int esc_count=0;
89
    static int esc_count=0;
91
    int scan_code = IPC_GET_ARG2(*call);
90
    int scan_code = IPC_GET_ARG2(*call);
92
 
91
 
93
 
-
 
94
    /*
92
    /*
95
     * Please preserve this code (it can be used to determine scancodes)
93
     * Please preserve this code (it can be used to determine scancodes)
96
     */
94
     */
97
    //keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf));
95
    //keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf));
98
    //keybuffer_push(keybuffer, to_hex(scan_code&0xf));
96
    //keybuffer_push(keybuffer, to_hex(scan_code&0xf));
Line 102... Line 100...
102
   
100
   
103
    if (scan_code) {
101
    if (scan_code) {
104
        buf |= (unsigned long long) scan_code<<(8*(count++));
102
        buf |= (unsigned long long) scan_code<<(8*(count++));
105
    } else {
103
    } else {
106
       
104
       
107
 
-
 
108
        if (buf == 0x1b) {
105
        if (buf == 0x1b) {
109
            esc_count++;
106
            esc_count++;
110
            if (esc_count == 3) {
107
            if (esc_count == 3) {
111
                __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
108
                __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
112
            }  
109
            }