ps2: Unify device data buffering
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 9 Apr 2018 19:07:52 +0000 (20:07 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 17 Apr 2018 11:16:26 +0000 (11:16 +0000)
commit8f94eeac0c2cd35f883944e5d552a428027a0d70
tree2050149cbdcf34eff829e806655c08b7ac5775bc
parentc85d51e6d62a9591bd5b99dcb0146aae5dbee43f
ps2: Unify device data buffering

All PS/2 device currently implement various ad-hoc mechanisms to
handle multi-byte commands. This is error-prone and makes it hard to
implement new devices. Create a buffering mechanism in the base class
to avoid this.

Change-Id: If5638b0ab68decea8de7631ecead0a9ebad1547b
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/9765
Reviewed-by: Gabe Black <gabeblack@google.com>
src/dev/ps2/device.cc
src/dev/ps2/device.hh
src/dev/ps2/keyboard.cc
src/dev/ps2/keyboard.hh
src/dev/ps2/mouse.cc
src/dev/ps2/mouse.hh
src/dev/ps2/touchkit.cc
src/dev/ps2/touchkit.hh