Changeset fa09449 in mainline for uspace/srv/kbd/arch/ia64/src/kbd.c
- Timestamp:
- 2009-02-15T22:31:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cd9aa6
- Parents:
- 76dd25b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/arch/ia64/src/kbd.c
r76dd25b rfa09449 179 179 switch (buf) { 180 180 case NSKEY_F6: 181 keybuffer_push (keybuffer,FUNCTION_KEYS | 6);181 keybuffer_push0(keybuffer,FUNCTION_KEYS | 6); 182 182 buf = count = 0; 183 183 return 1; 184 184 case NSKEY_F7: 185 keybuffer_push (keybuffer,FUNCTION_KEYS | 7);185 keybuffer_push0(keybuffer,FUNCTION_KEYS | 7); 186 186 buf = count = 0; 187 187 return 1; 188 188 case NSKEY_F8: 189 keybuffer_push (keybuffer,FUNCTION_KEYS | 8);189 keybuffer_push0(keybuffer,FUNCTION_KEYS | 8); 190 190 buf = count = 0; 191 191 return 1; 192 192 case NSKEY_F9: 193 keybuffer_push (keybuffer,FUNCTION_KEYS | 9);193 keybuffer_push0(keybuffer,FUNCTION_KEYS | 9); 194 194 buf = count = 0; 195 195 return 1; 196 196 case NSKEY_F10: 197 keybuffer_push (keybuffer,FUNCTION_KEYS | 10);197 keybuffer_push0(keybuffer,FUNCTION_KEYS | 10); 198 198 buf = count = 0; 199 199 return 1; 200 200 case NSKEY_F11: 201 keybuffer_push (keybuffer,FUNCTION_KEYS | 11);201 keybuffer_push0(keybuffer,FUNCTION_KEYS | 11); 202 202 buf = count = 0; 203 203 return 1; 204 204 case NSKEY_F12: 205 keybuffer_push (keybuffer,FUNCTION_KEYS | 12);205 keybuffer_push0(keybuffer,FUNCTION_KEYS | 12); 206 206 buf = count = 0; 207 207 return 1; 208 208 default: 209 keybuffer_push (keybuffer, buf & 0xff);210 keybuffer_push (keybuffer, (buf >> 8) &0xff);211 keybuffer_push (keybuffer, (buf >> 16) &0xff);212 keybuffer_push (keybuffer, (buf >> 24) &0xff);213 keybuffer_push (keybuffer, scan_code);209 keybuffer_push0(keybuffer, buf & 0xff); 210 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 211 keybuffer_push0(keybuffer, (buf >> 16) &0xff); 212 keybuffer_push0(keybuffer, (buf >> 24) &0xff); 213 keybuffer_push0(keybuffer, scan_code); 214 214 buf = count = 0; 215 215 return 1; … … 220 220 221 221 if((buf & 0xff) != (NSKEY_F1 & 0xff)) { 222 keybuffer_push (keybuffer, buf);222 keybuffer_push0(keybuffer, buf); 223 223 buf = count = 0; 224 224 return 1; … … 230 230 if ((buf & 0xffff) != (NSKEY_F1 & 0xffff)) { 231 231 232 keybuffer_push (keybuffer, buf & 0xff);233 keybuffer_push (keybuffer, (buf >> 8) &0xff);232 keybuffer_push0(keybuffer, buf & 0xff); 233 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 234 234 buf = count = 0; 235 235 return 1; … … 244 244 && (buf & 0xffffff) != (NSKEY_F9 & 0xffffff) ) { 245 245 246 keybuffer_push (keybuffer, buf & 0xff);247 keybuffer_push (keybuffer, (buf >> 8) &0xff);248 keybuffer_push (keybuffer, (buf >> 16) &0xff);246 keybuffer_push0(keybuffer, buf & 0xff); 247 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 248 keybuffer_push0(keybuffer, (buf >> 16) &0xff); 249 249 buf = count = 0; 250 250 return 1; … … 256 256 switch (buf) { 257 257 case NSKEY_F1: 258 keybuffer_push (keybuffer,FUNCTION_KEYS | 1);258 keybuffer_push0(keybuffer,FUNCTION_KEYS | 1); 259 259 buf = count = 0; 260 260 return 1; 261 261 case NSKEY_F2: 262 keybuffer_push (keybuffer,FUNCTION_KEYS | 2);262 keybuffer_push0(keybuffer,FUNCTION_KEYS | 2); 263 263 buf = count = 0; 264 264 return 1; 265 265 case NSKEY_F3: 266 keybuffer_push (keybuffer,FUNCTION_KEYS | 3);266 keybuffer_push0(keybuffer,FUNCTION_KEYS | 3); 267 267 buf = count = 0; 268 268 return 1; 269 269 case NSKEY_F4: 270 keybuffer_push (keybuffer,FUNCTION_KEYS | 4);270 keybuffer_push0(keybuffer,FUNCTION_KEYS | 4); 271 271 buf = count = 0; 272 272 return 1; 273 273 case NSKEY_F5: 274 keybuffer_push (keybuffer,FUNCTION_KEYS | 5);274 keybuffer_push0(keybuffer,FUNCTION_KEYS | 5); 275 275 buf = count = 0; 276 276 return 1; … … 289 289 return 1; 290 290 default: 291 keybuffer_push (keybuffer, buf & 0xff);292 keybuffer_push (keybuffer, (buf >> 8) &0xff);293 keybuffer_push (keybuffer, (buf >> 16) &0xff);294 keybuffer_push (keybuffer, (buf >> 24) &0xff);291 keybuffer_push0(keybuffer, buf & 0xff); 292 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 293 keybuffer_push0(keybuffer, (buf >> 16) &0xff); 294 keybuffer_push0(keybuffer, (buf >> 24) &0xff); 295 295 buf = count = 0; 296 296 return 1; … … 309 309 * Please preserve this code (it can be used to determine scancodes) 310 310 */ 311 //keybuffer_push (keybuffer, to_hex((scan_code>>4)&0xf));312 //keybuffer_push (keybuffer, to_hex(scan_code&0xf));313 //keybuffer_push (keybuffer, ' ');314 //keybuffer_push (keybuffer, ' ');311 //keybuffer_push0(keybuffer, to_hex((scan_code>>4)&0xf)); 312 //keybuffer_push0(keybuffer, to_hex(scan_code&0xf)); 313 //keybuffer_push0(keybuffer, ' '); 314 //keybuffer_push0(keybuffer, ' '); 315 315 //*/ 316 316 … … 329 329 330 330 if (!(buf & 0xff00)) { 331 keybuffer_push (keybuffer, buf);331 keybuffer_push0(keybuffer, buf); 332 332 } else { 333 333 switch (buf) { 334 334 case KEY_F1: 335 keybuffer_push (keybuffer, FUNCTION_KEYS | 1);335 keybuffer_push0(keybuffer, FUNCTION_KEYS | 1); 336 336 break; 337 337 case KEY_F2: 338 keybuffer_push (keybuffer, FUNCTION_KEYS | 2);338 keybuffer_push0(keybuffer, FUNCTION_KEYS | 2); 339 339 break; 340 340 case KEY_F3: 341 keybuffer_push (keybuffer, FUNCTION_KEYS | 3);341 keybuffer_push0(keybuffer, FUNCTION_KEYS | 3); 342 342 break; 343 343 case KEY_F4: 344 keybuffer_push (keybuffer, FUNCTION_KEYS | 4);344 keybuffer_push0(keybuffer, FUNCTION_KEYS | 4); 345 345 break; 346 346 case KEY_F5: 347 keybuffer_push (keybuffer, FUNCTION_KEYS | 5);347 keybuffer_push0(keybuffer, FUNCTION_KEYS | 5); 348 348 break; 349 349 case KEY_F6: 350 keybuffer_push (keybuffer, FUNCTION_KEYS | 6);350 keybuffer_push0(keybuffer, FUNCTION_KEYS | 6); 351 351 break; 352 352 case KEY_F7: 353 keybuffer_push (keybuffer, FUNCTION_KEYS | 7);353 keybuffer_push0(keybuffer, FUNCTION_KEYS | 7); 354 354 break; 355 355 case KEY_F8: 356 keybuffer_push (keybuffer, FUNCTION_KEYS | 8);356 keybuffer_push0(keybuffer, FUNCTION_KEYS | 8); 357 357 break; 358 358 case KEY_F9: 359 keybuffer_push (keybuffer, FUNCTION_KEYS | 9);359 keybuffer_push0(keybuffer, FUNCTION_KEYS | 9); 360 360 break; 361 361 case KEY_F10: 362 keybuffer_push (keybuffer, FUNCTION_KEYS | 10);362 keybuffer_push0(keybuffer, FUNCTION_KEYS | 10); 363 363 break; 364 364 case KEY_F11: 365 keybuffer_push (keybuffer, FUNCTION_KEYS | 11);365 keybuffer_push0(keybuffer, FUNCTION_KEYS | 11); 366 366 break; 367 367 case KEY_F12: 368 keybuffer_push (keybuffer, FUNCTION_KEYS | 12);368 keybuffer_push0(keybuffer, FUNCTION_KEYS | 12); 369 369 break; 370 370 }
Note:
See TracChangeset
for help on using the changeset viewer.