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/touchkit.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/touchkit.hh')
-rw-r--r-- | src/dev/ps2/touchkit.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dev/ps2/touchkit.hh b/src/dev/ps2/touchkit.hh index dc98a78fa..aa413a599 100644 --- a/src/dev/ps2/touchkit.hh +++ b/src/dev/ps2/touchkit.hh @@ -48,7 +48,10 @@ struct PS2TouchKitParams; class PS2TouchKit : public PS2Device, public VncMouse { protected: - static const uint8_t ID[]; + enum PS2Commands { + TpReadId = 0xE1, + TouchKitDiag = 0x0A, + }; enum TKCommands { TouchKitActive = 'A', |