Changeset f8d5b85 in mainline
- Timestamp:
- 2006-06-13T11:04:16Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0384428
- Parents:
- 15039b67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kbd/arch/mips32/src/kbd.c
r15039b67 rf8d5b85 81 81 82 82 static int msim,gxemul; 83 static int fb_fb; 84 83 85 84 86 int kbd_arch_init(void) 85 87 { 88 fb_fb=sysinfo_value("fb.kind")==1; 86 89 ipc_register_irq(2, &msim_kbd); 87 msim=sysinfo_value("machine.msim");88 gxemul=sysinfo_value("machine.lgxemul");89 90 return 0; 90 91 } 91 92 92 93 93 / /*94 /* 94 95 //* 95 96 //* Please preserve this code (it can be used to determine scancodes) … … 99 100 return "0123456789ABCDEF"[v]; 100 101 } 101 //*/102 103 static int kbd_arch_process_ msim(keybuffer_t *keybuffer, int scan_code)102 */ 103 104 static int kbd_arch_process_no_fb(keybuffer_t *keybuffer, int scan_code) 104 105 { 105 106 … … 108 109 109 110 110 / /* Please preserve this code (it can be used to determine scancodes)111 //*112 //keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf));113 //keybuffer_push(keybuffer, to_hex(scan_code&0xf));114 //keybuffer_push(keybuffer, ' ');115 //keybuffer_push(keybuffer, ' ');116 //*/117 //return 1;118 111 /* Please preserve this code (it can be used to determine scancodes) 112 113 keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf)); 114 keybuffer_push(keybuffer, to_hex(scan_code&0xf)); 115 keybuffer_push(keybuffer, ' '); 116 keybuffer_push(keybuffer, ' '); 117 118 return 1; 119 */ 119 120 120 121 if(scan_code==0x7e) … … 252 253 253 254 254 static int kbd_arch_process_ gxemul(keybuffer_t *keybuffer, int scan_code)255 static int kbd_arch_process_fb(keybuffer_t *keybuffer, int scan_code) 255 256 { 256 257 … … 259 260 260 261 261 / /* Please preserve this code (it can be used to determine scancodes)262 //*263 //keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf));264 //keybuffer_push(keybuffer, to_hex(scan_code&0xf));265 //keybuffer_push(keybuffer, ' ');266 //keybuffer_push(keybuffer, ' ');267 //*/268 //return 1;269 262 /* Please preserve this code (it can be used to determine scancodes) 263 264 keybuffer_push(keybuffer, to_hex((scan_code>>4)&0xf)); 265 keybuffer_push(keybuffer, to_hex(scan_code&0xf)); 266 keybuffer_push(keybuffer, ' '); 267 keybuffer_push(keybuffer, ' '); 268 269 return 1; 270 */ 270 271 271 272 if ( scan_code == '\r' ) … … 390 391 } 391 392 392 if( msim) return kbd_arch_process_msim(keybuffer, scan_code);393 if(gxemul) return kbd_arch_process_gxemul(keybuffer, scan_code);393 if(fb_fb) return kbd_arch_process_fb(keybuffer, scan_code); 394 return kbd_arch_process_no_fb(keybuffer, scan_code); 394 395 395 396 return 0; 396 397 } 397 398 /** 399 * @} 400 */ 398 /** @} 399 */
Note:
See TracChangeset
for help on using the changeset viewer.