aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-18 18:47:12 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2011-05-26 12:14:15 +0200
commitc557e889156c5f5da23b4b047aea804aefce4982 (patch)
tree51a3cb969786fe77e184b99318c3d87b6d029419 /hw/scsi.h
parent5c6c0e513600ba57c3e73b7151d3c0664438f7b5 (diff)
downloadqemu-c557e889156c5f5da23b4b047aea804aefce4982.zip
qemu-c557e889156c5f5da23b4b047aea804aefce4982.tar.gz
qemu-c557e889156c5f5da23b4b047aea804aefce4982.tar.bz2
scsi: commonize purging requests
The code for canceling requests upon reset is already the same. Clean it up and move it to scsi-bus.c. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r--hw/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi.h b/hw/scsi.h
index 19bd1ae..f1d8888 100644
--- a/hw/scsi.h
+++ b/hw/scsi.h
@@ -114,5 +114,6 @@ int scsi_req_parse(SCSIRequest *req, uint8_t *buf);
void scsi_req_print(SCSIRequest *req);
void scsi_req_data(SCSIRequest *req, int len);
void scsi_req_complete(SCSIRequest *req);
+void scsi_device_purge_requests(SCSIDevice *sdev);
#endif