Changeset 618 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Aug 31, 2021, 2:17:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm
r616 r618 43 43 ; Nothing 44 44 ; Corrupts registers: 45 ; A L45 ; AX 46 46 ;-------------------------------------------------------------------- 47 47 .DetectPowerManagementSupport: 48 mov al, [es:si+ATA6.wSetSup82] 49 mov ah, [es:si+ATA6.wSetSup83] 50 and ah, A6_wSetSup83_APM 51 shl ah, 1 ; APM bit 3 to bit 4 52 and al, A6_wSetSup82_POWERMAN ; A6_wSetSup82_POWERMAN (bit 3) is the same 48 mov ax, A6_wSetSup83_APM << 8 | A6_wSetSup82_POWERMAN ; Both of these flags are bit 3 49 and ah, [es:si+ATA6.wSetSup83] 50 and al, [es:si+ATA6.wSetSup82] 51 eSHL_IM ah, 1 ; APM bit 3 to bit 4 (same as FLGH_DPT_APM_SUPPORTED) 53 52 or al, ah 54 or [di+DPT.bFlagsHigh], al ; bit asFLGH_DPT_POWER_MANAGEMENT_SUPPORTED and FLGH_DPT_APM_SUPPORTED53 or [di+DPT.bFlagsHigh], al ; FLGH_DPT_POWER_MANAGEMENT_SUPPORTED and FLGH_DPT_APM_SUPPORTED 55 54 %endif ; MODULE_POWER_MANAGEMENT 56 55 … … 118 117 cmp BYTE [di+DPT_ATA.bDevice], DEVICE_32BIT_ATA 119 118 ja SHORT .NoAdvancedControllerDetected 120 119 121 120 mov bx, [di+DPT.wBasePort] 122 121 call AdvAtaInit_DetectControllerForIdeBaseInBX
Note:
See TracChangeset
for help on using the changeset viewer.