From e60b2ac7060eff8dd6d68c7f92ef220511e7daa2 Mon Sep 17 00:00:00 2001 From: Chander Sudanthi Date: Tue, 5 Jun 2012 01:23:10 -0400 Subject: [PATCH] ARM: PS2 encoding fix Fixed Disable encoding and added SetDefaults. See http://wiki.osdev.org/Mouse_Input for encodings. --- src/dev/arm/kmi.cc | 1 + src/dev/ps2.hh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/kmi.cc b/src/dev/arm/kmi.cc index 92b5ee8cb..c90e00125 100644 --- a/src/dev/arm/kmi.cc +++ b/src/dev/arm/kmi.cc @@ -212,6 +212,7 @@ Pl050::processCommand(uint8_t byte) // fall through case Disable: case Enable: + case SetDefaults: rxQueue.push_back(Ack); break; case StatusRequest: diff --git a/src/dev/ps2.hh b/src/dev/ps2.hh index 73f3f9cd8..f1ddb522e 100644 --- a/src/dev/ps2.hh +++ b/src/dev/ps2.hh @@ -62,7 +62,8 @@ enum { Ack = 0xfa, SetRate = 0xf3, Enable = 0xf4, - Disable = 0xf6, + Disable = 0xf5, + SetDefaults = 0xf6, KeyboardId = 0xab, TouchKitId = 0x0a, MouseId = 0x00, -- 2.30.2