qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Anthony Liguori" <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] LSI53C895A: Implement Scratch Byte Register
Date: Tue, 23 Dec 2008 16:45:12 -0600	[thread overview]
Message-ID: <f085eb030812231445q7906bb32sa14d6ba12510857c@mail.gmail.com> (raw)
In-Reply-To: <0113846658934A0CA31221E22E3AC54F@FSCPC>

On Tue, Dec 23, 2008 at 1:34 PM, Sebastian Herbszt <herbszt@gmx.de> wrote:
> Qemu exits with
>
> lsi_scsi: error: Unhandled writeb 0x3a = 0x0
> lsi_scsi: error: readb 0x3a
>
> when trying to use LSI option rom 8xx_64.rom.

Is this enough to get the LSI option rom working?

Regards,

Anthony Liguori

> - Sebastian
>
> --- qemu-r6125/hw/lsi53c895a.c.orig Tue Dec 23 17:53:51 2008
> +++ qemu-r6125/hw/lsi53c895a.c Tue Dec 23 17:57:31 2008
> @@ -261,6 +261,7 @@ typedef struct {
>    uint32_t sbc;
>    uint32_t csbc;
>    uint32_t scratch[18]; /* SCRATCHA-SCRATCHR */
> +    uint8_t sbr;
>
>    /* Script ram is stored as 32-bit words in host byteorder.  */
>    uint32_t script_ram[2048];
> @@ -329,6 +330,7 @@ static void lsi_soft_reset(LSIState *s)
>    s->ia = 0;
>    s->sbc = 0;
>    s->csbc = 0;
> +    s->sbr = 0;
> }
>
> static int lsi_dma_40bit(LSIState *s)
> @@ -1404,6 +1406,8 @@ static uint8_t lsi_reg_readb(LSIState *s
>        return s->dmode;
>    case 0x39: /* DIEN */
>        return s->dien;
> +    case 0x3a: /* SBR */
> +        return s->sbr;
>    case 0x3b: /* DCNTL */
>        return s->dcntl;
>    case 0x40: /* SIEN0 */
> @@ -1616,6 +1620,9 @@ static void lsi_reg_writeb(LSIState *s,    case 0x39:
> /* DIEN */
>        s->dien = val;
>        lsi_update_irq(s);
> +        break;
> +    case 0x3a: /* SBR */
> +        s->sbr = val;
>        break;
>    case 0x3b: /* DCNTL */
>        s->dcntl = val & ~(LSI_DCNTL_PFF | LSI_DCNTL_STD);
>
>
>
>

  reply	other threads:[~2008-12-23 22:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23 19:34 [Qemu-devel] LSI53C895A: Implement Scratch Byte Register Sebastian Herbszt
2008-12-23 22:45 ` Anthony Liguori [this message]
2008-12-27 16:39   ` [Qemu-devel] " Sebastian Herbszt

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=f085eb030812231445q7906bb32sa14d6ba12510857c@mail.gmail.com \
    --to=anthony@codemonkey.ws \
    --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).