ARM: PS2 encoding fix
authorChander Sudanthi <chander.sudanthi@arm.com>
Tue, 5 Jun 2012 05:23:10 +0000 (01:23 -0400)
committerChander Sudanthi <chander.sudanthi@arm.com>
Tue, 5 Jun 2012 05:23:10 +0000 (01:23 -0400)
Fixed Disable encoding and added SetDefaults.
See http://wiki.osdev.org/Mouse_Input for encodings.

src/dev/arm/kmi.cc
src/dev/ps2.hh

index 92b5ee8cb890f7d6d3e8e5daf641d23ad618efc5..c90e00125873ab0062deb05e864be9b2c181dcad 100644 (file)
@@ -212,6 +212,7 @@ Pl050::processCommand(uint8_t byte)
         // fall through
       case Disable:
       case Enable:
+      case SetDefaults:
         rxQueue.push_back(Ack);
         break;
       case StatusRequest:
index 73f3f9cd8ce23a13bf3ad3a7ecb39507282cd615..f1ddb522e4f12cb8653e8d510e4fe6e03a2ce04c 100644 (file)
@@ -62,7 +62,8 @@ enum {
     Ack             = 0xfa,
     SetRate         = 0xf3,
     Enable          = 0xf4,
-    Disable         = 0xf6,
+    Disable         = 0xf5,
+    SetDefaults     = 0xf6,
     KeyboardId      = 0xab,
     TouchKitId      = 0x0a,
     MouseId         = 0x00,