ps2: Factor out PS/2 devices into their own subsystem
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 11 Jul 2017 15:26:24 +0000 (16:26 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 17 Apr 2018 08:46:33 +0000 (08:46 +0000)
commit18f62ac208a3fc8d385e66c3b5ff22473229d1d7
treed4a2cb0daa1d3735e59696bc5484162acbd62cb9
parent7c21795304e6ec79ed8c35873c4419a6342eb1e3
ps2: Factor out PS/2 devices into their own subsystem

PS/2 devices are currently emulated both in the i8042 model and the
Arm KMI model. This is undesirable since it leads to code duplication.

This change introduces a common PS/2 device interface and factor out
the x86 keyboard and mouse model. A subsequent commit will implement
support for this interface in the Arm KMI model.

Change-Id: I440e83517fd9dce362fdc1676db477cc6eee5211
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/9762
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
12 files changed:
src/dev/ps2.hh
src/dev/ps2/PS2.py [new file with mode: 0644]
src/dev/ps2/SConscript [new file with mode: 0644]
src/dev/ps2/device.cc [new file with mode: 0644]
src/dev/ps2/device.hh [new file with mode: 0644]
src/dev/ps2/keyboard.cc [new file with mode: 0644]
src/dev/ps2/keyboard.hh [new file with mode: 0644]
src/dev/ps2/mouse.cc [new file with mode: 0644]
src/dev/ps2/mouse.hh [new file with mode: 0644]
src/dev/x86/I8042.py
src/dev/x86/i8042.cc
src/dev/x86/i8042.hh