From 4c41d2ef5f599372a35d446fb75898fe9841bda4 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 26 Nov 2009 15:33:48 +0100 Subject: scsi: create common SCSIRequest structure. Rename the SCSIRequest structs in scsi-disk.c and scsi-generic.c to SCSIDiskReq and SCSIGenericReq. Create a SCSIRequest struct and move the common elements over. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/scsi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hw/scsi.h') diff --git a/hw/scsi.h b/hw/scsi.h index d2b274c..7906877 100644 --- a/hw/scsi.h +++ b/hw/scsi.h @@ -2,6 +2,7 @@ #define QEMU_HW_SCSI_H #include "qdev.h" +#include "block.h" /* scsi-disk.c */ enum scsi_reason { @@ -15,6 +16,13 @@ typedef struct SCSIDeviceInfo SCSIDeviceInfo; typedef void (*scsi_completionfn)(SCSIBus *bus, int reason, uint32_t tag, uint32_t arg); +typedef struct SCSIRequest { + SCSIBus *bus; + SCSIDevice *dev; + uint32_t tag; + BlockDriverAIOCB *aiocb; +} SCSIRequest; + struct SCSIDevice { DeviceState qdev; -- cgit v1.1