Revision 74382217 hw/scsi-bus.c

b/hw/scsi-bus.c
156 156
    return req->dev->info->get_buf(req);
157 157
}
158 158

  
159
int scsi_req_get_sense(SCSIRequest *req, uint8_t *buf, int len)
160
{
161
    if (req->dev->info->get_sense) {
162
        return req->dev->info->get_sense(req, buf, len);
163
    } else {
164
        return 0;
165
    }
166
}
167

  
159 168
int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf)
160 169
{
161 170
    int32_t rc;

Also available in: Unified diff