Revision 12010e7b hw/scsi-generic.c
b/hw/scsi-generic.c | ||
---|---|---|
491 | 491 |
|
492 | 492 |
static SCSIReqOps scsi_generic_req_ops = { |
493 | 493 |
.size = sizeof(SCSIGenericReq), |
494 |
.free_req = scsi_free_request, |
|
495 |
.send_command = scsi_send_command, |
|
496 |
.read_data = scsi_read_data, |
|
497 |
.write_data = scsi_write_data, |
|
498 |
.cancel_io = scsi_cancel_io, |
|
499 |
.get_buf = scsi_get_buf, |
|
494 | 500 |
}; |
495 | 501 |
|
496 | 502 |
static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun, |
... | ... | |
510 | 516 |
.init = scsi_generic_initfn, |
511 | 517 |
.destroy = scsi_destroy, |
512 | 518 |
.alloc_req = scsi_new_request, |
513 |
.free_req = scsi_free_request, |
|
514 |
.send_command = scsi_send_command, |
|
515 |
.read_data = scsi_read_data, |
|
516 |
.write_data = scsi_write_data, |
|
517 |
.cancel_io = scsi_cancel_io, |
|
518 |
.get_buf = scsi_get_buf, |
|
519 | 519 |
.qdev.props = (Property[]) { |
520 | 520 |
DEFINE_BLOCK_PROPERTIES(SCSIGenericState, qdev.conf), |
521 | 521 |
DEFINE_PROP_END_OF_LIST(), |
Also available in: Unified diff