Changeset 589 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/AdvancedAta/AdvAtaInit.asm
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/AdvancedAta/AdvAtaInit.asm
r587 r589 37 37 AdvAtaInit_DetectControllerForIdeBaseInBX: 38 38 call Vision_DetectAndReturnIDinAXandPortInDXifControllerPresent 39 jne SHORT .NoAdvancedControllerForPortBX 39 jnz SHORT .NoVisionControllerFound 40 40 41 call Vision_DoesIdePortInBXbelongToControllerWithIDinAX 41 jne SHORT .NoAdvancedControllerForPortBX 42 jz SHORT .AdvancedControllerFoundForPortBX 43 44 .NoVisionControllerFound: 42 45 call PDC20x30_DetectControllerForIdeBaseInBX 43 46 jnc SHORT .NoAdvancedControllerForPortBX 44 47 45 stc ; Advanced Controller found for port BX 48 .AdvancedControllerFoundForPortBX: 49 stc 46 50 ret 47 51 48 52 .NoAdvancedControllerForPortBX: 49 xor ax, ax 53 xor ax, ax ; Clear ID in AX and CF 50 54 ret 51 55 … … 66 70 AdvAtaInit_GetControllerMaxPioModeToALandMinPioCycleTimeToBX: 67 71 cmp ah, ID_QD6580_ALTERNATE 72 %ifdef USE_386 73 jae Vision_GetMaxPioModeToALandMinCycleTimeToBX 74 jmp PDC20x30_GetMaxPioModeToALandMinPioCycleTimeToBX 75 %else 68 76 jae SHORT .Vision 69 77 jmp PDC20x30_GetMaxPioModeToALandMinPioCycleTimeToBX 70 78 .Vision: 71 79 jmp Vision_GetMaxPioModeToALandMinCycleTimeToBX 80 %endif 72 81 73 82 … … 88 97 test ax, ax 89 98 jz SHORT .NoAdvancedController ; Return with CF cleared 90 99 91 100 cmp ah, ID_QD6580_ALTERNATE 92 101 jae SHORT .Vision … … 98 107 99 108 call AdvAtaInit_LoadMasterDPTtoDSSIifSlaveInDSDI 100 call Vision_InitializeWithIDinAH andConfigInAL109 call Vision_InitializeWithIDinAH 101 110 xor ax, ax ; Success 102 111 … … 116 125 ; Zero if Slave Drive not present 117 126 ; Corrupts registers: 118 ; A X127 ; AL 119 128 ;-------------------------------------------------------------------- 120 129 AdvAtaInit_LoadMasterDPTtoDSSIifSlaveInDSDI:
Note:
See TracChangeset
for help on using the changeset viewer.