| 594 | } |
| 595 | |
| 596 | struct scsi_data *scsi_alloc_native(int id, int nativeunit) |
| 597 | { |
| 598 | struct scsi_data *sd; |
| 599 | if (!sys_command_open (nativeunit)) { |
| 600 | write_log (_T("SCSI: native scsi unit %d failed to open\n"), nativeunit); |
| 601 | return NULL; |
| 602 | } |
| 603 | sd = xcalloc (struct scsi_data, 1); |
| 604 | sd->id = id; |
| 605 | sd->nativescsiunit = nativeunit; |
| 606 | sd->cd_emu_unit = -1; |
| 607 | sd->blocksize = 2048; |
| 608 | sd->device_type = 0; |
| 609 | allocscsibuf(sd); |
| 610 | return sd; |
| 611 | } |
| 612 | |
| 613 | void scsi_reset(void) |
| 614 | { |
no test coverage detected