Changeset 370 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Mar 29, 2012, 4:40:50 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Initialization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/AdvAtaInit.asm
r364 r370 114 114 ;-------------------------------------------------------------------- 115 115 AdvAtaInit_SelectSlowestCommonPioTimingsToBXandCXfromDSSIandDSDI: 116 eMOVZX bx, BYTE[di+DPT_ADVANCED_ATA.bPioMode]116 eMOVZX bx, [di+DPT_ADVANCED_ATA.bPioMode] 117 117 mov cx, [di+DPT_ADVANCED_ATA.wMinPioCycleTime] 118 118 test si, si -
trunk/XTIDE_Universal_BIOS/Src/Initialization/AtaID.asm
r364 r370 89 89 ; Get PIO mode and cycle time for PIO 0...2 90 90 mov bx, [es:si+ATA1.bPioMode] 91 mov ax, bx ; AH = 0, AL = PIO mode 0, 1 or 2 91 92 shl bx, 1 ; Shift for WORD lookup 92 93 mov cx, [cs:bx+.rgwPio0to2CycleTimeInNanosecs] 93 shr bx, 194 xchg ax, bx ; AH = 0, AL = PIO mode 0, 1 or 295 94 96 95 ; Check if IORDY is supported … … 105 104 ; Get Advanced PIO mode 106 105 ; (Hard Disks supports up to 4 but CF cards can support 5 and 6) 107 mov b x, [es:si+ATA2.bPIOSupp]106 mov bl, [es:si+ATA2.bPIOSupp] 108 107 .CheckNextFlag: 109 108 inc ax 110 shr b x, 1109 shr bl, 1 111 110 jnz SHORT .CheckNextFlag 112 111 MIN_U al, 6 ; Make sure not above lookup tables -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Vision.asm
r364 r370 45 45 IsConfigRegisterWithIDinAL: 46 46 mov ah, al 47 and a h, MASK_QDCONFIG_CONTROLLER_ID48 cmp a h, ID_QD6500 << 447 and al, MASK_QDCONFIG_CONTROLLER_ID 48 cmp al, ID_QD6500 << 4 49 49 je SHORT VisionControllerDetected 50 cmp a h, ID_QD6580 << 450 cmp al, ID_QD6580 << 4 51 51 je SHORT VisionControllerDetected 52 cmp a h, ID_QD6580_ALTERNATE << 452 cmp al, ID_QD6580_ALTERNATE << 4 53 53 VisionControllerDetected: 54 xchg ah, al 54 55 ret 55 56 … … 175 176 mov bp, QD6500_MAX_ACTIVE_TIME_CLOCKS | (QD6500_MIN_ACTIVE_TIME_CLOCKS << 8) 176 177 177 ; We need the PIO Cycle Time in CX to calculate Active and Recovery Times. 178 ; We need the PIO Cycle Time in CX to calculate Active and Recovery Times. 178 179 .CalculateTimingsForQD65xx: 179 180 call AdvAtaInit_SelectSlowestCommonPioTimingsToBXandCXfromDSSIandDSDI
Note:
See TracChangeset
for help on using the changeset viewer.