Revision ad2d30f7 hw/scsi.h

b/hw/scsi.h
29 29
typedef struct SCSIRequest {
30 30
    SCSIBus           *bus;
31 31
    SCSIDevice        *dev;
32
    uint32_t          refcount;
32 33
    uint32_t          tag;
33 34
    uint32_t          lun;
34 35
    uint32_t          status;
......
65 66
    DeviceInfo qdev;
66 67
    scsi_qdev_initfn init;
67 68
    void (*destroy)(SCSIDevice *s);
69
    void (*free_req)(SCSIRequest *req);
68 70
    int32_t (*send_command)(SCSIDevice *s, uint32_t tag, uint8_t *buf,
69 71
                            int lun);
70 72
    void (*read_data)(SCSIDevice *s, uint32_t tag);
......
103 105
SCSIRequest *scsi_req_alloc(size_t size, SCSIDevice *d, uint32_t tag, uint32_t lun);
104 106
SCSIRequest *scsi_req_find(SCSIDevice *d, uint32_t tag);
105 107
void scsi_req_free(SCSIRequest *req);
108
void scsi_req_dequeue(SCSIRequest *req);
109
SCSIRequest *scsi_req_ref(SCSIRequest *req);
110
void scsi_req_unref(SCSIRequest *req);
106 111

  
107 112
int scsi_req_parse(SCSIRequest *req, uint8_t *buf);
108 113
void scsi_req_print(SCSIRequest *req);

Also available in: Unified diff