diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-04-18 19:07:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-05-26 12:14:16 +0200 |
commit | fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed (patch) | |
tree | 99fd3e7e6ae403005fee0789650183a05e90ba53 /hw/esp.c | |
parent | a1f0cce2ac0243572ff72aa561da67fe3766a395 (diff) | |
download | qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.gz qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.bz2 qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.zip |
scsi: do not call send_command directly
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/esp.c')
-rw-r--r-- | hw/esp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -245,7 +245,7 @@ static void do_busid_cmd(ESPState *s, uint8_t *buf, uint8_t busid) DPRINTF("do_busid_cmd: busid 0x%x\n", busid); lun = busid & 7; s->current_req = s->current_dev->info->alloc_req(s->current_dev, 0, lun); - datalen = s->current_dev->info->send_command(s->current_req, buf); + datalen = scsi_req_enqueue(s->current_req, buf); s->ti_size = datalen; if (datalen != 0) { s->rregs[ESP_RSTAT] = STAT_TC; |