ATA PIO Mode: Difference between revisions

m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
Line 601:
(Using a Software Reset -- adapted from PypeClicker)
 
<sourcesyntaxhighlight lang="c">
/* on Primary bus: ctrl->base =0x1F0, ctrl->dev_ctl =0x3F6. REG_CYL_LO=4, REG_CYL_HI=5, REG_DEVSEL=6 */
int detect_devtype (int slavebit, struct DEVICE *ctrl)
Line 621:
return ATADEV_UNKNOWN;
}
</syntaxhighlight>
</source>
 
 
Line 629:
(Note: the following routines should all include some form of OS-specific timeout.)
 
<sourcesyntaxhighlight lang="asm">
; do a singletasking PIO ATA read
; inputs: ebx = # of sectors to read, edi -> dest buffer, esi -> driverdata struct, ebp = 4b LBA
Line 906:
pop eax
ret
</syntaxhighlight>
</source>