diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-04-10 09:22:02 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-04-17 12:24:17 +0000 |
commit | 2c0ce271a604be0000b2f1cc1084541714e436ac (patch) | |
tree | 457767e1bd2a3240031a1a39c4c59da71db5ad0c /src/dev/ps2/keyboard.hh | |
parent | 74e63a607af58c2df49cd2decbebd71a6d061915 (diff) | |
download | gem5-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/keyboard.hh')
-rw-r--r-- | src/dev/ps2/keyboard.hh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/dev/ps2/keyboard.hh b/src/dev/ps2/keyboard.hh index 33db1cc76..ae0ca85e6 100644 --- a/src/dev/ps2/keyboard.hh +++ b/src/dev/ps2/keyboard.hh @@ -52,30 +52,6 @@ struct PS2KeyboardParams; class PS2Keyboard : public PS2Device, VncKeyboard { protected: - static const uint8_t ID[]; - - enum Command - { - LEDWrite = 0xED, - DiagnosticEcho = 0xEE, - AlternateScanCodes = 0xF0, - ReadID = 0xF2, - TypematicInfo = 0xF3, - Enable = 0xF4, - Disable = 0xF5, - DefaultsAndDisable = 0xF6, - AllKeysToTypematic = 0xF7, - AllKeysToMakeRelease = 0xF8, - AllKeysToMake = 0xF9, - AllKeysToTypematicMakeRelease = 0xFA, - KeyToTypematic = 0xFB, - KeyToMakeRelease = 0xFC, - KeyToMakeOnly = 0xFD, - Resend = 0xFE, - Reset = 0xFF - }; - - /** is the shift key currently down */ bool shiftDown; |