summaryrefslogtreecommitdiff
path: root/src/dev/ps2/mouse.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2018-04-10 09:22:02 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2018-04-17 12:24:17 +0000
commit2c0ce271a604be0000b2f1cc1084541714e436ac (patch)
tree457767e1bd2a3240031a1a39c4c59da71db5ad0c /src/dev/ps2/mouse.hh
parent74e63a607af58c2df49cd2decbebd71a6d061915 (diff)
downloadgem5-2c0ce271a604be0000b2f1cc1084541714e436ac.tar.xz
ps2: Unify constant names
Move ps2.hh to dev/ps2/types.hh and update the device models to consistently use well-known constants from this header. Change-Id: Iadfdc774495957beb82f3d341107b1e9232ffd4c Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/9770 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/dev/ps2/mouse.hh')
-rw-r--r--src/dev/ps2/mouse.hh21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/dev/ps2/mouse.hh b/src/dev/ps2/mouse.hh
index 9150f3f8f..c1a497173 100644
--- a/src/dev/ps2/mouse.hh
+++ b/src/dev/ps2/mouse.hh
@@ -51,27 +51,6 @@ struct PS2MouseParams;
class PS2Mouse : public PS2Device
{
protected:
- static const uint8_t ID[];
-
- enum Command
- {
- Scale1to1 = 0xE6,
- Scale2to1 = 0xE7,
- SetResolution = 0xE8,
- GetStatus = 0xE9,
- ReadData = 0xEB,
- ResetWrapMode = 0xEC,
- WrapMode = 0xEE,
- RemoteMode = 0xF0,
- ReadID = 0xF2,
- SampleRate = 0xF3,
- EnableReporting = 0xF4,
- DisableReporting = 0xF5,
- DefaultsAndDisable = 0xF6,
- Resend = 0xFE,
- Reset = 0xFF
- };
-
BitUnion8(Status)
Bitfield<6> remote;
Bitfield<5> enabled;