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

Function ide_set_multiple_mode

src/ide.cpp:678–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678static void ide_set_multiple_mode (struct ide_hdf *ide)
679{
680 if (ide->ata_level < 0) {
681 ide_fail(ide);
682 return;
683 }
684
685 write_log (_T("IDE%d drive multiple mode = %d\n"), ide->num, ide->regs.ide_nsector);
686 if (ide->regs.ide_nsector > (ide->max_multiple_mode >> (ide->blocksize / 512 - 1))) {
687 ide_fail(ide);
688 } else {
689 ide->multiple_mode = ide->regs.ide_nsector;
690 }
691 ide_interrupt(ide);
692}
693
694static void ide_set_features (struct ide_hdf *ide)
695{

Callers 1

ide_do_commandFunction · 0.85

Calls 3

ide_failFunction · 0.85
ide_interruptFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected