Changeset 616 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h


Ignore:
Timestamp:
Aug 8, 2021, 7:03:21 PM (3 years ago)
Author:
Tomi Tilli
Message:
  • Added check for APM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r615 r616  
    197197;;; InitStandbyTimer
    198198    ; Initialize the standby timer (if supported)
    199     test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_POWER_MANAGEMENT_SUPPORTED
     199    mov     dh, [di+DPT.bFlagsHigh]
     200    test    dh, FLGH_DPT_POWER_MANAGEMENT_SUPPORTED
    200201    jz      SHORT .NoPowerManagementSupport
    201202
    202203    ; Do we need to disable APM?
    203 ;TODO: We should check APM feature set flag from ATA ID word 83. The above
    204 ;FLGH_DPT_POWER_MANAGEMENT_SUPPORTED is from ATA ID word 82
    205204    mov     dl, [cs:ROMVARS.bIdleTimeout]
    206205    push    dx
    207206    push    dx
     207    test    dh, FLGH_DPT_APM_SUPPORTED
     208    jz      SHORT .NoAdvancedPowerManagementSupport
    208209    call    AH23h_EnableOrDisableAdvancedPowerManagement
     210.NoAdvancedPowerManagementSupport:
    209211
    210212    ; COMMAND_IDLE is not enough for Toshiba 1,8" HDD since idle mode is the default mode
Note: See TracChangeset for help on using the changeset viewer.