* [Qemu-devel] [RESEND][PATCH] Fix memory-mapped i8042 on MIPS Magnum
@ 2008-12-07 20:58 Hervé Poussineau
2008-12-08 15:28 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Hervé Poussineau @ 2008-12-07 20:58 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 793 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
Hervé
[-- Attachment #2: pckbd_mm_v2.diff --]
[-- Type: plain/text, Size: 2761 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [RESEND][PATCH] Fix memory-mapped i8042 on MIPS Magnum
2008-12-07 20:58 [Qemu-devel] [RESEND][PATCH] Fix memory-mapped i8042 on MIPS Magnum Hervé Poussineau
@ 2008-12-08 15:28 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-12-08 15:28 UTC (permalink / raw)
To: qemu-devel
On Sun, Dec 07, 2008 at 09:58:42PM +0100, Hervé Poussineau wrote:
> Hi,
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
It looks basically ok, except that the size and the address should be
of type target_phys_addr_t instead of ram_addr_t.
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-08 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07 20:58 [Qemu-devel] [RESEND][PATCH] Fix memory-mapped i8042 on MIPS Magnum Hervé Poussineau
2008-12-08 15:28 ` 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).