Changeset 437 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src


Ignore:
Timestamp:
Aug 10, 2012, 5:35:08 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Changed Fast XTIDE to Lo-tech XT-CF
  • 8-bit PIO Transfer mode is enabled for Lo-tech XT-CF
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
2 edited

Legend:

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

    r432 r437  
    8686    call    Idepack_FakeToSSBP
    8787
     88    ; Enable 8-bit PIO mode for Lo-tech XT-CF
     89    call    AH9h_Enable8bitPioModeForXTCF
     90
    8891    ; Prepare to output Identify Device command
    8992    mov     dl, 1                       ; Sector count (required by IdeTransfer.asm)
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r422 r437  
    125125    STORE_ERROR_FLAG_TO_DPT     FLG_INITERROR_FAILED_TO_INITIALIZE_CHS_PARAMETERS
    126126.SkipInitializeDeviceParameters:
     127
     128
     129;;; Enable 8-bit PIO Transfer Mode for Lo-tech XT-CF (CF and Microdrives only)
     130    call    AH9h_Enable8bitPioModeForXTCF
     131    STORE_ERROR_FLAG_TO_DPT     FLG_INITERROR_FAILED_TO_ENABLE_8BIT_PIO_MODE
    127132
    128133
     
    248253.NoErrorFlagToSet:
    249254    ret
     255
     256
     257;--------------------------------------------------------------------
     258; AH9h_Enable8bitPioModeForXTCF
     259;   Parameters:
     260;       DS:DI:  Ptr to DPT
     261;   Returns:
     262;       AH:     Int 13h return status
     263;       CF:     0 if successful, 1 if error
     264;   Corrupts registers:
     265;       AL, BX, CX, DX
     266;--------------------------------------------------------------------
     267AH9h_Enable8bitPioModeForXTCF:
     268    eMOVZX  bx, BYTE [di+DPT.bIdevarsOffset]
     269    cmp     BYTE [cs:bx+IDEVARS.bDevice], DEVICE_8BIT_XTCF
     270    je      SHORT .Enable8bitMode
     271    xor     ah, ah      ; Do nothing for this device
     272    ret
     273.Enable8bitMode:
     274    mov     si, FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE
     275    jmp     AH23h_SetControllerFeatures
Note: See TracChangeset for help on using the changeset viewer.