]> Git Repo - qemu.git/blobdiff - hw/scsi.h
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
[qemu.git] / hw / scsi.h
index 2eb66f7393a8352554577bc6bb0d243e18a0bab9..ea8a15567d17944e91aac436b95a24c1f45762ad 100644 (file)
--- a/hw/scsi.h
+++ b/hw/scsi.h
@@ -3,6 +3,7 @@
 
 #include "qdev.h"
 #include "block.h"
+#include "hw/block-common.h"
 #include "sysemu.h"
 
 #define MAX_SCSI_DEVS  255
@@ -134,8 +135,12 @@ struct SCSIBusInfo {
 
     void (*save_request)(QEMUFile *f, SCSIRequest *req);
     void *(*load_request)(QEMUFile *f, SCSIRequest *req);
+    void (*free_request)(SCSIBus *bus, void *priv);
 };
 
+#define TYPE_SCSI_BUS "SCSI"
+#define SCSI_BUS(obj) OBJECT_CHECK(SCSIBus, (obj), TYPE_SCSI_BUS)
+
 struct SCSIBus {
     BusState qbus;
     int busnr;
This page took 0.02775 seconds and 4 git commands to generate.