Changeset 421 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- May 9, 2012, 7:12:53 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r411 r421 79 79 test bh, FLG_DRVNHEAD_DRV 80 80 jnz SHORT .SkipLongWaitSinceDriveIsNotPrimaryMaster 81 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_MOTOR_STARTUP, FLG_STATUS_ BSY)81 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_MOTOR_STARTUP, FLG_STATUS_DRDY) 82 82 call IdeWait_PollStatusFlagInBLwithTimeoutInBH 83 83 .SkipLongWaitSinceDriveIsNotPrimaryMaster: … … 195 195 ALIGN JUMP_ALIGN 196 196 IdeCommand_SelectDrive: 197 %if 0 197 198 ; Wait until neither Master or Slave Drive is busy 198 199 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY) … … 200 201 eCMOVE bh, TIMEOUT_IDENTIFY_DEVICE 201 202 call IdeWait_PollStatusFlagInBLwithTimeoutInBH 203 %endif 202 204 203 205 ; Select Master or Slave Drive -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r419 r421 119 119 jc SHORT ReturnWithTransferErrorInAH 120 120 121 ; All rectors succesfully transferred121 ; All sectors succesfully transferred 122 122 add cx, [bp+PIOVARS.bSectorsDone] ; Never sets CF 123 123 ret … … 371 371 pop ds 372 372 ret 373 374 373 %endif ; MODULE_8BIT_IDE 374 375 375 376 376 ;-------------------------------------------------------------------- … … 395 395 db 6Fh ; OUTSW/OUTSD 396 396 ret 397 %endif 397 %endif ; USE_AT 398 398 399 399 -
trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm
r376 r421 70 70 71 71 and ah, 0Fh ; Limit bits for LBA28 72 call AccessDPT_GetDriveSelectByte ToAL72 call AccessDPT_GetDriveSelectByteForEbiosToAL 73 73 or al, ah 74 74 mov [bp+IDEPACK.bDrvAndHead], al … … 83 83 and si, BYTE 0Fh ; Offset normalized 84 84 jmp SHORT GetDeviceControlByteToIdepackAndStartTransfer 85 %endif 85 %endif ; MODULE_EBIOS 86 86 87 87 … … 114 114 push bx 115 115 call Address_OldInt13hAddressToIdeAddress 116 call AccessDPT_GetDriveSelectByte ToAL116 call AccessDPT_GetDriveSelectByteForOldInt13hToAL 117 117 or al, bh ; AL now has Drive and Head Select Byte 118 118 mov [bp+IDEPACK.bDrvAndHead], al … … 156 156 ; Drive and Head select byte 157 157 and ah, MASK_DRVNHEAD_HEAD ; Keep head bits only 158 call AccessDPT_GetDriveSelectByte ToAL158 call AccessDPT_GetDriveSelectByteForOldInt13hToAL 159 159 or al, ah 160 160 mov [bp+IDEPACK.bDrvAndHead], al
Note:
See TracChangeset
for help on using the changeset viewer.