aurel32 4efbe58fb5 MIPS Magnum: fix memory-mapped i8042
Current implementation of memory-mapped i8042 controller is atm
implemented with an interface shift (it_shift) parameter, like most all
memory-mapped devices in Qemu.
However, this isn't suitable for MIPS Magnum, where i8042 controller is at
0x80005000 up to 0x80005fff.

Thomas Bogendoerfer (from #mipslinux) tested the behaviour of a real
machine, and found that odd addresses are for status/command register, and
even addresses for data register.

Attached patch implements this behaviour by replacing the it_shift
parameter by a mask one.
Incidentally, keyboard now works on OpenBSD 2.3, which accesses i8042
controller at 0x80005060 and 0x80005061.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5962 c046a42c-6fe2-441c-8c8c-71466251a162
2008-12-10 15:02:07 +00:00
..
2008-12-03 22:48:44 +00:00
2008-11-05 16:04:33 +00:00
2007-11-17 17:14:51 +00:00
2008-12-03 22:48:44 +00:00
2008-05-12 16:13:33 +00:00
2007-11-17 17:14:51 +00:00
2008-06-13 10:48:22 +00:00
2008-04-08 06:01:02 +00:00
2008-04-08 06:01:02 +00:00
2007-11-17 17:14:51 +00:00
2008-12-09 20:09:57 +00:00
2008-12-02 17:47:02 +00:00
2008-12-03 22:48:44 +00:00
2007-11-17 17:14:51 +00:00
2008-11-05 20:24:35 +00:00
2008-10-31 17:25:56 +00:00
2008-04-11 04:55:07 +00:00
2008-12-09 20:09:57 +00:00
2007-11-17 17:14:51 +00:00
2008-12-02 17:47:02 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-12-03 22:48:44 +00:00
2008-12-02 17:47:02 +00:00
2008-12-02 17:47:02 +00:00
2008-03-21 18:05:23 +00:00
2008-10-04 07:22:29 +00:00
2008-12-07 23:26:24 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-12-03 22:48:44 +00:00
2007-11-17 17:14:51 +00:00
2008-12-07 22:46:42 +00:00
2007-11-18 14:36:08 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-12-07 23:26:09 +00:00
2008-12-04 20:33:06 +00:00
2008-12-10 15:02:07 +00:00
2008-12-09 20:09:57 +00:00
2008-12-07 22:46:42 +00:00
2008-12-10 15:02:07 +00:00
2007-11-17 17:14:51 +00:00
2008-12-02 17:47:02 +00:00
2008-12-03 22:48:44 +00:00
2008-12-04 21:34:52 +00:00
2008-12-07 23:00:00 +00:00
2008-10-04 07:20:07 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2007-11-24 23:35:08 +00:00
2007-11-17 17:14:51 +00:00
2008-10-02 19:14:17 +00:00
2008-12-07 22:46:42 +00:00
2008-12-07 23:26:24 +00:00
2008-10-28 10:59:59 +00:00
2008-12-03 22:48:44 +00:00
2008-12-02 17:47:02 +00:00
2008-06-02 00:55:08 +00:00
2008-04-14 21:05:22 +00:00
2007-11-17 17:14:51 +00:00
2008-12-07 22:46:42 +00:00
2008-12-07 22:46:49 +00:00
2008-10-31 17:25:56 +00:00
2008-12-02 17:47:02 +00:00
2008-12-02 17:47:02 +00:00
2008-11-05 20:24:35 +00:00
2008-12-07 22:46:42 +00:00
2007-11-17 17:14:51 +00:00
2008-12-02 17:47:02 +00:00
2007-11-17 17:14:51 +00:00
2008-07-02 16:48:32 +00:00
2008-12-02 17:47:02 +00:00
2008-11-02 10:51:05 +00:00
2008-11-05 19:25:39 +00:00
2008-12-02 17:47:02 +00:00
2008-10-02 19:14:17 +00:00
2008-12-03 22:48:44 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-04-22 03:15:10 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-12-09 20:09:57 +00:00
2008-12-04 20:33:06 +00:00
2008-12-04 20:33:06 +00:00
2008-12-04 19:52:44 +00:00
2008-12-04 19:52:44 +00:00
2007-11-17 17:14:51 +00:00
2008-12-03 22:48:44 +00:00