Changeset 410 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device


Ignore:
Timestamp:
Apr 26, 2012, 1:46:54 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkey Bar now support color attributes even when not including MODULE_BOOT_MENU.
  • Cleaned AH=09h code a bit.
  • MODULE_ADVANCED_ATA now properly changes the device type to 32-bit.
  • BSY and RDY timeouts are now 2500 ms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm

    r400 r410  
    4747.DetectPowerManagementSupport:
    4848    test    BYTE [es:si+ATA6.wSetSup82], A6_wSetSup82_POWERMAN
    49     jz      .NoPowerManagementSupport
     49    jz      SHORT .NoPowerManagementSupport
    5050    or      BYTE [di+DPT.bFlagsHigh], FLGH_DPT_POWER_MANAGEMENT_SUPPORTED
    5151.NoPowerManagementSupport:
    5252%endif ; MODULE_FEATURE_SETS
     53
     54
     55;--------------------------------------------------------------------
     56; .StoreDeviceType
     57;   Parameters:
     58;       DS:DI:  Ptr to Disk Parameter Table
     59;       CS:BP:  Ptr to IDEVARS for the controller
     60;   Returns:
     61;       Nothing
     62;   Corrupts registers:
     63;       AL
     64;--------------------------------------------------------------------
     65.StoreDeviceType:
     66    call    IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI
     67
    5368
    5469;--------------------------------------------------------------------
     
    6378.StoreBlockMode:
    6479    mov     BYTE [di+DPT_ATA.bBlockSize], 1
     80
    6581
    6682%ifdef MODULE_ADVANCED_ATA
     
    8197    mov     [di+DPT_ADVANCED_ATA.bPioMode], al
    8298    or      [di+DPT.bFlagsHigh], ah
     99
    83100
    84101;--------------------------------------------------------------------
     
    111128.ChangeTo32bitDevice:
    112129    mov     BYTE [di+DPT_ATA.bDevice], DEVICE_32BIT_ATA
     130.NoAdvancedControllerDetected:
     131%endif  ; MODULE_ADVANCED_ATA
    113132
    114 .NoAdvancedControllerDetected:
    115     ; Fall to IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI
    116133
    117 %endif  ; MODULE_ADVANCED_ATA
     134; End DPT
     135    clc
     136    ret
    118137
    119138
     
    131150    mov     al, [cs:bp+IDEVARS.bDevice]
    132151    mov     [di+DPT_ATA.bDevice], al
    133 ; End DPT
    134     clc
    135152    ret
Note: See TracChangeset for help on using the changeset viewer.