Changeset b7e9c34 in mainline
- Timestamp:
- 2006-06-07T14:00:28Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1fd7700
- Parents:
- e8d77a4
- Location:
- kbd/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kbd/arch/ia64/src/kbd.c
re8d77a4 rb7e9c34 78 78 static unsigned long long buf=0; 79 79 static int count=0; 80 static int esc_count=0; 80 81 81 82 82 83 /* 83 84 * Please preserve this code (it can be used to determine scancodes) 84 *85 keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf));86 keybuffer_push(keybuffer, to_hex(scan_code&0xf));87 keybuffer_push(keybuffer, ' ');88 keybuffer_push(keybuffer, ' ');89 85 */ 86 //keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf)); 87 //keybuffer_push(keybuffer, to_hex(scan_code&0xf)); 88 //keybuffer_push(keybuffer, ' '); 89 //keybuffer_push(keybuffer, ' '); 90 //*/ 90 91 91 92 92 93 if (scan_code){ 93 94 buf|=(unsigned long long) scan_code<<(8*(count++)); 94 } else { 95 95 } else { 96 97 98 if ( buf == 0x1b ) { 99 esc_count++; 100 if ( esc_count == 3 ) { 101 __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE); 102 } 103 } else { 104 esc_count=0; 105 } 106 96 107 if ( ! ( buf & 0xff00 )) 97 108 keybuffer_push(keybuffer, buf); -
kbd/arch/mips32/src/kbd.c
re8d77a4 rb7e9c34 369 369 int kbd_arch_process(keybuffer_t *keybuffer, int scan_code) 370 370 { 371 if(msim) return kbd_arch_process_msim(keybuffer, scan_code); 372 if(gxemul) return kbd_arch_process_gxemul(keybuffer, scan_code); 373 374 return 0; 375 } 376 371 372 static int esc_count=0; 373 374 375 if ( scan_code == 0x1b ) { 376 esc_count++; 377 if ( esc_count == 3 ) { 378 __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE); 379 } 380 } else { 381 esc_count=0; 382 } 383 384 if(msim) return kbd_arch_process_msim(keybuffer, scan_code); 385 if(gxemul) return kbd_arch_process_gxemul(keybuffer, scan_code); 386 387 return 0; 388 } 389
Note:
See TracChangeset
for help on using the changeset viewer.