From patchwork Thu Nov 19 10:07:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/7] lsi53c895a: Add support for LSI53C700 Family Compatibility bit From: Jan Kiszka X-Patchwork-Id: 38820 Message-Id: <20091119100712.16666.77580.stgit@mchn012c.ww002.siemens.net> To: qemu-devel@nongnu.org Cc: Laszlo Ast Date: Thu, 19 Nov 2009 11:07:12 +0100 From: Laszlo Ast Signed-off-by: Laszlo Ast Signed-off-by: Jan Kiszka --- hw/lsi53c895a.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index e618bf2..ee69b0a 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -583,6 +583,10 @@ static void lsi_reselect(LSIState *s, uint32_t tag) } id = (tag >> 8) & 0xf; s->ssid = id | 0x80; + /* LSI53C700 Family Compatibility, see LSI53C895A 4-73 */ + if (!s->dcntl & LSI_DCNTL_COM) { + s->sfbr = 1 << (id & 0x7); + } DPRINTF("Reselected target %d\n", id); s->current_dev = s->bus.devs[id]; s->current_tag = tag;