dev: Fix i8042 device errors
authorJason Lowe-Power <jason@lowepower.com>
Wed, 10 Jan 2018 18:19:19 +0000 (10:19 -0800)
committerJason Lowe-Power <jason@lowepower.com>
Fri, 9 Feb 2018 00:52:09 +0000 (00:52 +0000)
commit3feeb994ae613fd6b3734c1a991285b2ecbd1946
tree55e90a35ca28a2502cc0a01354425c240555562a
parent5a3b9ca5833815641c355833040197614f8b147d
dev: Fix i8042 device errors

The patch that added M5_FALLTHROUGH (5c41076bd7610 misc: Updates for gcc7.2
for x86) incorrectly added breaks to the i8042 device without implementing
the correct functions. This patch implements keyboard writes, but ignores
output writes.

Information on the PS2 controller can be found at
https://wiki.osdev.org/%228042%22_PS/2_Controller

Note: Without this patch Linux 4.14 won't boot.

Change-Id: I7de137b46cef00e6c1f1c14335cb52107cd7fe5b
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/7301
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/dev/x86/i8042.cc