diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-04-21 13:21:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-05-26 12:14:16 +0200 |
commit | 0c34459b6af1b7ed2f000995b9bcb1c722646fbb (patch) | |
tree | de9567cb5953e0ed8a71539772b923983feecda5 /hw/scsi-bus.c | |
parent | ad3376cc558f69606ac25ab6d597db71c969d8b6 (diff) | |
download | qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.tar.gz qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.tar.bz2 qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.zip |
scsi: introduce scsi_req_get_buf
... and remove some SCSIDevice variables or fields that now become unused.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r-- | hw/scsi-bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index fb96bdee51..686d59d818 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -151,6 +151,11 @@ SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun) return d->info->alloc_req(d, tag, lun); } +uint8_t *scsi_req_get_buf(SCSIRequest *req) +{ + return req->dev->info->get_buf(req); +} + int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf) { int32_t rc; |