* [Qemu-devel] New display device for MIPS
@ 2006-12-07 22:37 Stefan Weil
2006-12-08 0:34 ` Thiemo Seufer
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2006-12-07 22:37 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
Hi,
the latest Linux kernels contain a driver for an ASCII display
(arch/mips/mips-boards/generic/display.c).
Because this display is used by code I'm currently testing,
I implemented an emulation for QEMU (code is added to this mail).
hw/mips_display.c - implementation
hw/mips_display.h - interface
I prefer to have the interface in a dedicated header file instead
of adding it to vl.h (which is already overloaded).
An emulated MIPS machine can add the new device like this:
...
#include "mips_display.h"
...
mips_display_init(env, "vc");
...
Regards
Stefan Weil
[-- Attachment #2: mips_display.tar.bz2 --]
[-- Type: application/octet-stream, Size: 1698 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] New display device for MIPS
2006-12-07 22:37 [Qemu-devel] New display device for MIPS Stefan Weil
@ 2006-12-08 0:34 ` Thiemo Seufer
2006-12-08 17:50 ` Stefan Weil
0 siblings, 1 reply; 5+ messages in thread
From: Thiemo Seufer @ 2006-12-08 0:34 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-devel
Stefan Weil wrote:
> Hi,
>
> the latest Linux kernels contain a driver for an ASCII display
> (arch/mips/mips-boards/generic/display.c).
This is the driver for the ASCII display of a MIPS MALTA board.
> Because this display is used by code I'm currently testing,
> I implemented an emulation for QEMU (code is added to this mail).
>
> hw/mips_display.c - implementation
> hw/mips_display.h - interface
AFAICS the output interferes with the serial console output.
I wonder how the typical scrolling text "Linux on MALTA" would look
like in that case. :-)
> I prefer to have the interface in a dedicated header file instead
> of adding it to vl.h (which is already overloaded).
OTOH, a file for a single prototype which still has to include vl.h
makes not much sense either.
Thiemo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] New display device for MIPS
2006-12-08 0:34 ` Thiemo Seufer
@ 2006-12-08 17:50 ` Stefan Weil
2006-12-08 19:25 ` Thiemo Seufer
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2006-12-08 17:50 UTC (permalink / raw)
To: qemu-devel
> AFAICS the output interferes with the serial console output.
> I wonder how the typical scrolling text "Linux on MALTA" would look
> like in that case. :-)
>
Believe me, it won't interfere (because it creates an additional
virtual console, like 2nd serial console, parallel port, ...).
And you will see the typical scrolling text, just try it!
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] New display device for MIPS
2006-12-08 17:50 ` Stefan Weil
@ 2006-12-08 19:25 ` Thiemo Seufer
2006-12-28 14:02 ` Alexander Voropay
0 siblings, 1 reply; 5+ messages in thread
From: Thiemo Seufer @ 2006-12-08 19:25 UTC (permalink / raw)
To: qemu-devel
Stefan Weil wrote:
>
> > AFAICS the output interferes with the serial console output.
> > I wonder how the typical scrolling text "Linux on MALTA" would look
> > like in that case. :-)
> >
> Believe me, it won't interfere (because it creates an additional
> virtual console, like 2nd serial console, parallel port, ...).
>
> And you will see the typical scrolling text, just try it!
Trying would be much easier if there was a machine to test with. :-)
What about starting with the core of the new machine description before
submitting the unconnected peripherals?
Thiemo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] New display device for MIPS
2006-12-08 19:25 ` Thiemo Seufer
@ 2006-12-28 14:02 ` Alexander Voropay
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Voropay @ 2006-12-28 14:02 UTC (permalink / raw)
To: qemu-devel
"Thiemo Seufer" <ths@networkno.de> wrote:
>> > AFAICS the output interferes with the serial console output.
>> > I wonder how the typical scrolling text "Linux on MALTA" would look
>> > like in that case. :-)
> What about starting with the core of the new machine description before
> submitting the unconnected peripherals?
The Malta-LED is a part of the Malta-FPGA device wich also contains
- DIP-Switch block, including BIGEND switch
- NMI status register
- Software reset
- GPIO registers
- I2C registers
Is should be better to implement all this devices as one "Malta FPGA" driver.
P.S. AFAIK, Virtio VPMM emulates Malta LED in the separate graphic
window, not on the serial port.
--
-=AV=-
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-28 14:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 22:37 [Qemu-devel] New display device for MIPS Stefan Weil
2006-12-08 0:34 ` Thiemo Seufer
2006-12-08 17:50 ` Stefan Weil
2006-12-08 19:25 ` Thiemo Seufer
2006-12-28 14:02 ` Alexander Voropay
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).