qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org
Subject: Re: [PATCH 4/4] macfb: allow reads from the DAFB_LUT register
Date: Sun, 5 Nov 2023 15:42:47 +0100	[thread overview]
Message-ID: <0311bed8-2ba6-4f93-abe1-91f85993ef9b@vivier.eu> (raw)
In-Reply-To: <20231026085650.917663-5-mark.cave-ayland@ilande.co.uk>

Le 26/10/2023 à 10:56, Mark Cave-Ayland a écrit :
> This enables A/UX to correctly retrieve the LUT entries when used with
> applications that use the MacOS Device Manager Status (GetEntries) call.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> ---
>   hw/display/macfb.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/hw/display/macfb.c b/hw/display/macfb.c
> index 4a1c75d572..d61541ccb5 100644
> --- a/hw/display/macfb.c
> +++ b/hw/display/macfb.c
> @@ -537,6 +537,11 @@ static uint64_t macfb_ctrl_read(void *opaque,
>       case DAFB_MODE_SENSE:
>           val = macfb_sense_read(s);
>           break;
> +    case DAFB_LUT ... DAFB_LUT + 3:
> +        val = s->color_palette[s->palette_current];
> +        s->palette_current = (s->palette_current + 1) %
> +                             ARRAY_SIZE(s->color_palette);
> +        break;
>       default:
>           if (addr < MACFB_CTRL_TOPADDR) {
>               val = s->regs[addr >> 2];

Reviewed-by: Laurent Vivier <laurent@vivier.eu>


      reply	other threads:[~2023-11-05 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-26  8:56 [PATCH 0/4] macfb: A/UX fixes for colour LUT Mark Cave-Ayland
2023-10-26  8:56 ` [PATCH 1/4] macfb: don't clear interrupts when writing to DAFB_RESET Mark Cave-Ayland
2023-11-05 14:42   ` Laurent Vivier
2023-10-26  8:56 ` [PATCH 2/4] macfb: rename DAFB_RESET to DAFB_LUT_INDEX Mark Cave-Ayland
2023-11-05 14:42   ` Laurent Vivier
2023-10-26  8:56 ` [PATCH 3/4] macfb: allow larger write accesses to the DAFB_LUT register Mark Cave-Ayland
2023-11-05 14:42   ` Laurent Vivier
2023-10-26  8:56 ` [PATCH 4/4] macfb: allow reads from " Mark Cave-Ayland
2023-11-05 14:42   ` Laurent Vivier [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=0311bed8-2ba6-4f93-abe1-91f85993ef9b@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=mark.cave-ayland@ilande.co.uk \
    --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).