From 2c0ce271a604be0000b2f1cc1084541714e436ac Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 10 Apr 2018 09:22:02 +0100 Subject: 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 Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/9770 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/dev/ps2/mouse.hh | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/dev/ps2/mouse.hh') 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; -- cgit v1.2.3