qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Roy Tam <roytam@gmail.com>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: "Hervé Poussineau" <hpoussin@reactos.org>,
	"qemu-devel Developers" <qemu-devel@nongnu.org>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [RFC 23/23] 40p: Add an 8514/A graphics card
Date: Thu, 16 Jun 2011 09:22:48 +0800	[thread overview]
Message-ID: <BANLkTikBgeiy4u7+hY84vRY+oBradXj2mA@mail.gmail.com> (raw)
In-Reply-To: <67D16361-9E4A-489C-B671-B7D08A50123F@web.de>

2011/6/16 Andreas Färber <andreas.faerber@web.de>:
> Am 15.06.2011 um 06:33 schrieb Roy Tam:
>
>> 2011/6/14 Andreas Färber <andreas.faerber@web.de>:
>>>
>>> The IBM E15 is equivalent to an S3 Vision864.
>>>
>>> Lacking S3 SDAC (86C716) support, the DAC indizes are translated
>>> to greyscale colors. This works sufficiently to observe firmware
>>> boot progress.
>>>
>>
>> IMO we can generalize it as a generic S3 Vision864 and use it in x86 guest
>> too.
>
> What in particular would we need to generalize? It's qdev'ified; I don't
> remember seeing anything PReP-specific in there.
> It still needs VMState of course.
>
>> http://wiki.qemu.org/Google_Summer_of_Code_2011#Add_a_S3_Trio_or_S3_Virge
>> CC: Natalia Portillo <claunia@claunia.com>
>>
>>> Cc: Hervé Poussineau <hpoussin@reactos.org>
>>>
>>> Fixed off-by-one drawing issue.
>>> Replaced hardcoded color for RECT.
>>> Separate I/O debug output for readability.
>>>
>>> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
>>> ---
>>>  Makefile.objs                   |    1 +
>>>  default-configs/ppc-softmmu.mak |    1 +
>>>  hw/pci_ids.h                    |    3 +
>>>  hw/ppc_prep.c                   |    2 +
>>>  hw/vga-s3.c                     |  694
>>> +++++++++++++++++++++++++++++++++++++++
>>>  5 files changed, 701 insertions(+), 0 deletions(-)
>>>  create mode 100644 hw/vga-s3.c
>>>
>> [snip]
>>
>> IMO using vga-s3-864.c as the file name may be better as S3 produced
>> many display chips.
>
> Actually in the meantime I've already renamed the file to vga-ibm8514a.c
> (better: vga-ibm8514.c) and renamed the registration functions to reflect
> the s3_vision864.
>

Actually what I mean is that, you may make the code to be more S3
Vision864-ish because S3 Vision864 extends its display capability, not
only 1024*768 4/8bpp.

> I agree that rather than bundling different graphics cards by one vendor we
> should bundle different implementations of the same chipset. I was assuming
> that the IBM E15 uses a different vendor_id at least but could share the
> initialization with other cards, once mst's declarative PCI initialization
> reaches master (prepared that locally).
> Supposedly the Miro 20SD is compatible with the S3 Vision864, and the ATI
> Mach8 was based on IBM 8514/A, too. Not sure about the Weitek P9100-based
> IBM S15.
>
> Any suggestions what to do about the RAMDAC would be appreciated. The
> firmware only accesses the DAC_MASK register but does not write to the DAC
> itself, so for colors the card needs a reset handler that initializes the
> 256-color palette to the right RGB values.
>
> Andreas

      parent reply	other threads:[~2011-06-16  1:23 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14  2:37 [Qemu-devel] [RFC 00/23] PReP 40P emulation Andreas Färber
2011-06-14  2:37 ` [Qemu-devel] [PATCH RFC 01/23] prep: Refactor CPU initialization Andreas Färber
2011-06-14  2:37   ` [Qemu-devel] [RFC 02/23] prep: qdev'ify PCI Andreas Färber
2011-06-14  2:37     ` [Qemu-devel] [RFC 03/23] prep: Prepare emulation of an IBM RS/6000 6015 / 7020 (40p) Andreas Färber
2011-06-14  2:37       ` [Qemu-devel] [RFC 04/23] 40p: Add PCI host Andreas Färber
2011-06-14  2:37         ` [Qemu-devel] [RFC 05/23] prep: Add i82374 DMA emulation Andreas Färber
2011-06-14  2:37           ` [Qemu-devel] [RFC 06/23] prep: Add i82378 PCI-to-ISA bridge emulation Andreas Färber
2011-06-14  2:37             ` [Qemu-devel] [RFC 07/23] 40p: Add a PCI to ISA bridge (i82378) Andreas Färber
2011-06-14  2:37               ` [Qemu-devel] [PATCH v5 08/23] qdev: Add support for property type bool Andreas Färber
2011-06-14  2:37                 ` [Qemu-devel] [PATCH v5 09/23] qdev: Add helpers for reading properties Andreas Färber
2011-06-14  2:37                   ` [Qemu-devel] [RFC v5 10/23] isa: Provide enable and disable callbacks Andreas Färber
2011-06-14  2:37                     ` [Qemu-devel] [RFC v5 11/23] isa: Allow to un-assign I/O ports Andreas Färber
2011-06-14  2:37                       ` [Qemu-devel] [RFC v5 12/23] isa: Allow to un-associate an IRQ Andreas Färber
2011-06-14  2:37                         ` [Qemu-devel] [RFC v5 13/23] parallel: Implement ISA state callbacks Andreas Färber
2011-06-14  2:37                           ` [Qemu-devel] [RFC v5 14/23] serial: " Andreas Färber
2011-06-14  2:37                             ` [Qemu-devel] [PATCH v5 15/23] fdc: Parametrize ISA base, IRQ and DMA Andreas Färber
2011-06-14  2:37                               ` [Qemu-devel] [RFC v5 16/23] fdc: Implement ISA state callbacks Andreas Färber
2011-06-14  2:37                                 ` [Qemu-devel] [RFC v5 17/23] ide: Allow to discard I/O ports Andreas Färber
2011-06-14  2:37                                   ` [Qemu-devel] [RFC v5 18/23] ide: Implement ISA state callbacks Andreas Färber
2011-06-14  2:37                                     ` [Qemu-devel] [RFC v5 19/23] prep: Add pc87312 Super I/O emulation Andreas Färber
2011-06-14  2:37                                       ` [Qemu-devel] [RFC 20/23] 40p: Add the Super I/O chip (pc87312) Andreas Färber
2011-06-14  2:37                                         ` [Qemu-devel] [RFC 21/23] 40p: Add an audio card and a keyboard Andreas Färber
2011-06-14  2:37                                           ` [Qemu-devel] [RFC 22/23] prep: qdev'ify System I/O (WIP) Andreas Färber
2011-06-14  2:37                                             ` [Qemu-devel] [RFC 23/23] 40p: Add an 8514/A graphics card Andreas Färber
2011-06-15  4:33                                               ` Roy Tam
2011-06-15 18:11                                                 ` Andreas Färber
2011-06-16  0:02                                                   ` [Qemu-devel] [RFC v2 23/23] 40p: Add an IBM " Andreas Färber
2011-06-18 20:42                                                     ` Blue Swirl
2011-06-19 10:04                                                       ` Andreas Färber
2011-06-19 12:10                                                         ` Hervé Poussineau
2011-06-19 13:27                                                         ` Blue Swirl
2011-06-19 18:40                                                           ` Andreas Färber
2011-06-19 19:03                                                             ` Blue Swirl
2011-06-19 21:38                                                               ` Andreas Färber
2011-06-19 21:43                                                                 ` [Qemu-devel] [RFC v3 " Andreas Färber
2011-06-16  0:05                                                   ` [Qemu-devel] [RFC 23/23] 40p: Add an " Andreas Färber
2011-06-16  1:22                                                   ` Roy Tam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikBgeiy4u7+hY84vRY+oBradXj2mA@mail.gmail.com \
    --to=roytam@gmail.com \
    --cc=andreas.faerber@web.de \
    --cc=hpoussin@reactos.org \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).