i8042.cc (9290:90dd57ca9a7e) | i8042.cc (9623:327bf4242521) |
---|---|
1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 397 unchanged lines hidden (view full) --- 406 panic("i8042 \"Read input port\" command not implemented.\n"); 407 case ContinuousPollLow: 408 panic("i8042 \"Continuous poll low\" command not implemented.\n"); 409 case ContinuousPollHigh: 410 panic("i8042 \"Continuous poll high\" command not implemented.\n"); 411 case ReadOutputPort: 412 panic("i8042 \"Read output port\" command not implemented.\n"); 413 case WriteOutputPort: | 1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 397 unchanged lines hidden (view full) --- 406 panic("i8042 \"Read input port\" command not implemented.\n"); 407 case ContinuousPollLow: 408 panic("i8042 \"Continuous poll low\" command not implemented.\n"); 409 case ContinuousPollHigh: 410 panic("i8042 \"Continuous poll high\" command not implemented.\n"); 411 case ReadOutputPort: 412 panic("i8042 \"Read output port\" command not implemented.\n"); 413 case WriteOutputPort: |
414 panic("i8042 \"Write output port\" command not implemented.\n"); | 414 warn("i8042 \"Write output port\" command not implemented.\n"); 415 lastCommand = WriteOutputPort; |
415 case WriteKeyboardOutputBuff: | 416 case WriteKeyboardOutputBuff: |
416 panic("i8042 \"Write keyboard output buffer\" " | 417 warn("i8042 \"Write keyboard output buffer\" " |
417 "command not implemented.\n"); | 418 "command not implemented.\n"); |
419 lastCommand = WriteKeyboardOutputBuff; |
|
418 case WriteMouseOutputBuff: 419 DPRINTF(I8042, "Got command to write to mouse output buffer.\n"); 420 lastCommand = WriteMouseOutputBuff; 421 break; 422 case WriteToMouse: 423 DPRINTF(I8042, "Expecting mouse command.\n"); 424 lastCommand = WriteToMouse; 425 break; 426 case DisableA20: 427 panic("i8042 \"Disable A20\" command not implemented.\n"); 428 case EnableA20: 429 panic("i8042 \"Enable A20\" command not implemented.\n"); 430 case ReadTestInputs: 431 panic("i8042 \"Read test inputs\" command not implemented.\n"); 432 case SystemReset: 433 panic("i8042 \"System reset\" command not implemented.\n"); 434 default: | 420 case WriteMouseOutputBuff: 421 DPRINTF(I8042, "Got command to write to mouse output buffer.\n"); 422 lastCommand = WriteMouseOutputBuff; 423 break; 424 case WriteToMouse: 425 DPRINTF(I8042, "Expecting mouse command.\n"); 426 lastCommand = WriteToMouse; 427 break; 428 case DisableA20: 429 panic("i8042 \"Disable A20\" command not implemented.\n"); 430 case EnableA20: 431 panic("i8042 \"Enable A20\" command not implemented.\n"); 432 case ReadTestInputs: 433 panic("i8042 \"Read test inputs\" command not implemented.\n"); 434 case SystemReset: 435 panic("i8042 \"System reset\" command not implemented.\n"); 436 default: |
435 panic("Write to unknown i8042 " | 437 warn("Write to unknown i8042 " |
436 "(keyboard controller) command port.\n"); 437 } 438 } else { 439 panic("Write to unrecognized port %#x.\n", addr); 440 } 441 pkt->makeAtomicResponse(); 442 return latency; 443} --- 115 unchanged lines hidden --- | 438 "(keyboard controller) command port.\n"); 439 } 440 } else { 441 panic("Write to unrecognized port %#x.\n", addr); 442 } 443 pkt->makeAtomicResponse(); 444 return latency; 445} --- 115 unchanged lines hidden --- |