MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / scsi_alloc_native

Function scsi_alloc_native

src/scsi.cpp:596–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596struct 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
613void scsi_reset(void)
614{

Callers 1

scsi_addnativeFunction · 0.85

Calls 3

sys_command_openFunction · 0.85
allocscsibufFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected