Revision ab9adc88 hw/scsi-bus.c

b/hw/scsi-bus.c
495 495
    return names[cmd];
496 496
}
497 497

  
498
/* Called by the devices when data is ready for the HBA.  The HBA should
499
   start a DMA operation to read or fill the device's data buffer.
500
   Once it completes, calling one of req->dev->info->read_data or
501
   req->dev->info->write_data (depending on the direction of the
502
   transfer) will restart I/O.  */
503
void scsi_req_data(SCSIRequest *req, int len)
504
{
505
    trace_scsi_req_data(req->dev->id, req->lun, req->tag, len);
506
    req->bus->complete(req->bus, SCSI_REASON_DATA, req->tag, len);
507
}
508

  
498 509
void scsi_req_print(SCSIRequest *req)
499 510
{
500 511
    FILE *fp = stderr;

Also available in: Unified diff