Changeset 364 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
Mar 27, 2012, 4:21:58 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Advanced ATA Module variables are now kept in DPTs.
  • Forced full mode when using Advanced ATA Module.
File:
1 edited

Legend:

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

    r363 r364  
    171171;--------------------------------------------------------------------
    172172InitializePioMode:
    173     xor     dx, dx                      ; Parameter to Sector Count Register = 0 = PIO_DEFAULT_MODE
    174     mov     al, [di+DPT_ATA.bPioMode]
    175     cmp     al, 3                       ; PIO mode 3 and above require IORDY
    176     jb      SHORT .SetTransferMode
    177     or      dl, al
    178 .SetTransferMode:
     173    mov     dl, PIO_DEFAULT_MODE_DISABLE_IORDY
     174    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_IORDY
     175    jz      SHORT .IordyNotSupported
     176
     177    ; Advanced PIO mode 3 and above
     178    mov     dl, [di+DPT_ADVANCED_ATA.bPioMode]
     179    or      dl, PIO_FLOW_CONTROL_MODE_xxx
     180
     181.IordyNotSupported:
    179182    mov     si, FEATURE_SET_TRANSFER_MODE
    180183    jmp     AH23h_SetControllerFeatures
Note: See TracChangeset for help on using the changeset viewer.