]> git.proxmox.com Git - qemu.git/blobdiff - hw/scsi.h
scsi: move request lists to QTAILQ.
[qemu.git] / hw / scsi.h
index 7906877fd1501d529d82bdbd726e3a2fac9561aa..a9b846cc17eea6e4561cb4acd846bbc083ea7dc5 100644 (file)
--- a/hw/scsi.h
+++ b/hw/scsi.h
@@ -21,6 +21,7 @@ typedef struct SCSIRequest {
     SCSIDevice        *dev;
     uint32_t          tag;
     BlockDriverAIOCB  *aiocb;
+    QTAILQ_ENTRY(SCSIRequest) next;
 } SCSIRequest;
 
 struct SCSIDevice
@@ -28,6 +29,7 @@ struct SCSIDevice
     DeviceState qdev;
     uint32_t id;
     SCSIDeviceInfo *info;
+    QTAILQ_HEAD(, SCSIRequest) requests;
 };
 
 /* cdrom.c */