qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix memory-mapped i8042 on MIPS Magnum v3
@ 2008-12-08 22:06 Hervé Poussineau
  2008-12-10 15:03 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Hervé Poussineau @ 2008-12-08 22:06 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

Hi,

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>

Changes since v1:
- updated to qemu svn

Changes since v2:
- mask type is now target_phys_addr_t. size is still a ram_addr_t, as 
cpu_register_physical_memory() requests it.

Hervé

[-- Attachment #2: pckbd_mm_v3.diff --]
[-- Type: plain/text, Size: 2825 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-10 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 22:06 [Qemu-devel] [PATCH] Fix memory-mapped i8042 on MIPS Magnum v3 Hervé Poussineau
2008-12-10 15:03 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).