ATA PIO Mode: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m Bot: Replace deprecated source tag with syntaxhighlight |
|||
Line 601:
(Using a Software Reset -- adapted from PypeClicker)
<
/* 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>
Line 629:
(Note: the following routines should all include some form of OS-specific timeout.)
<
; 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>
|