From 0d3545e76c856be4cce26cf1c96981b26cafb6b1 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 27 Jul 2011 23:24:50 +0200 Subject: scsi: add channel to addressing This also requires little more than adding the new argument to scsi_device_find, and the qdev property. All devices by default end up on channel 0. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/lsi53c895a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/lsi53c895a.c') diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index d26e442c9d..2984cea633 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -767,7 +767,7 @@ static void lsi_do_command(LSIState *s) s->command_complete = 0; id = (s->select_tag >> 8) & 0xf; - dev = scsi_device_find(&s->bus, id, s->current_lun); + dev = scsi_device_find(&s->bus, 0, id, s->current_lun); if (!dev) { lsi_bad_selection(s, id); return; @@ -1198,7 +1198,7 @@ again: } s->sstat0 |= LSI_SSTAT0_WOA; s->scntl1 &= ~LSI_SCNTL1_IARB; - if (!scsi_device_find(&s->bus, id, 0)) { + if (!scsi_device_find(&s->bus, 0, id, 0)) { lsi_bad_selection(s, id); break; } -- cgit v1.2.1