Revision 12010e7b hw/scsi-disk.c
b/hw/scsi-disk.c | ||
---|---|---|
1214 | 1214 |
|
1215 | 1215 |
static SCSIReqOps scsi_disk_reqops = { |
1216 | 1216 |
.size = sizeof(SCSIDiskReq), |
1217 |
.free_req = scsi_free_request, |
|
1218 |
.send_command = scsi_send_command, |
|
1219 |
.read_data = scsi_read_data, |
|
1220 |
.write_data = scsi_write_data, |
|
1221 |
.cancel_io = scsi_cancel_io, |
|
1222 |
.get_buf = scsi_get_buf, |
|
1217 | 1223 |
}; |
1218 | 1224 |
|
1219 | 1225 |
static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, |
... | ... | |
1244 | 1250 |
.init = scsi_hd_initfn, |
1245 | 1251 |
.destroy = scsi_destroy, |
1246 | 1252 |
.alloc_req = scsi_new_request, |
1247 |
.free_req = scsi_free_request, |
|
1248 |
.send_command = scsi_send_command, |
|
1249 |
.read_data = scsi_read_data, |
|
1250 |
.write_data = scsi_write_data, |
|
1251 |
.cancel_io = scsi_cancel_io, |
|
1252 |
.get_buf = scsi_get_buf, |
|
1253 | 1253 |
.qdev.props = (Property[]) { |
1254 | 1254 |
DEFINE_SCSI_DISK_PROPERTIES(), |
1255 | 1255 |
DEFINE_PROP_BIT("removable", SCSIDiskState, removable, 0, false), |
... | ... | |
1264 | 1264 |
.init = scsi_cd_initfn, |
1265 | 1265 |
.destroy = scsi_destroy, |
1266 | 1266 |
.alloc_req = scsi_new_request, |
1267 |
.free_req = scsi_free_request, |
|
1268 |
.send_command = scsi_send_command, |
|
1269 |
.read_data = scsi_read_data, |
|
1270 |
.write_data = scsi_write_data, |
|
1271 |
.cancel_io = scsi_cancel_io, |
|
1272 |
.get_buf = scsi_get_buf, |
|
1273 | 1267 |
.qdev.props = (Property[]) { |
1274 | 1268 |
DEFINE_SCSI_DISK_PROPERTIES(), |
1275 | 1269 |
DEFINE_PROP_END_OF_LIST(), |
... | ... | |
1283 | 1277 |
.init = scsi_disk_initfn, |
1284 | 1278 |
.destroy = scsi_destroy, |
1285 | 1279 |
.alloc_req = scsi_new_request, |
1286 |
.free_req = scsi_free_request, |
|
1287 |
.send_command = scsi_send_command, |
|
1288 |
.read_data = scsi_read_data, |
|
1289 |
.write_data = scsi_write_data, |
|
1290 |
.cancel_io = scsi_cancel_io, |
|
1291 |
.get_buf = scsi_get_buf, |
|
1292 | 1280 |
.qdev.props = (Property[]) { |
1293 | 1281 |
DEFINE_SCSI_DISK_PROPERTIES(), |
1294 | 1282 |
DEFINE_PROP_BIT("removable", SCSIDiskState, removable, 0, false), |
Also available in: Unified diff