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


Ignore:
Timestamp:
May 9, 2012, 7:12:53 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Addressing modes are now NORMAL, LARGE and LBA.
  • L-CHS parameters are now generated differently for drives with 8192 or less cylinders.
Location:
trunk/XTIDE_Universal_BIOS/Src/Device
Files:
3 edited

Legend:

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

    r411 r421  
    7979    test    bh, FLG_DRVNHEAD_DRV
    8080    jnz     SHORT .SkipLongWaitSinceDriveIsNotPrimaryMaster
    81     mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_MOTOR_STARTUP, FLG_STATUS_BSY)
     81    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_MOTOR_STARTUP, FLG_STATUS_DRDY)
    8282    call    IdeWait_PollStatusFlagInBLwithTimeoutInBH
    8383.SkipLongWaitSinceDriveIsNotPrimaryMaster:
     
    195195ALIGN JUMP_ALIGN
    196196IdeCommand_SelectDrive:
     197%if 0
    197198    ; Wait until neither Master or Slave Drive is busy
    198199    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY)
     
    200201    eCMOVE  bh, TIMEOUT_IDENTIFY_DEVICE
    201202    call    IdeWait_PollStatusFlagInBLwithTimeoutInBH
     203%endif
    202204
    203205    ; Select Master or Slave Drive
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm

    r419 r421  
    119119    jc      SHORT ReturnWithTransferErrorInAH
    120120
    121     ; All rectors succesfully transferred
     121    ; All sectors succesfully transferred
    122122    add     cx, [bp+PIOVARS.bSectorsDone]       ; Never sets CF
    123123    ret
     
    371371    pop     ds
    372372    ret
    373 
    374373%endif  ; MODULE_8BIT_IDE
     374
    375375
    376376;--------------------------------------------------------------------
     
    395395    db      6Fh         ; OUTSW/OUTSD
    396396    ret
    397 %endif
     397%endif ; USE_AT
    398398
    399399
  • trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm

    r376 r421  
    7070
    7171    and     ah, 0Fh                     ; Limit bits for LBA28
    72     call    AccessDPT_GetDriveSelectByteToAL
     72    call    AccessDPT_GetDriveSelectByteForEbiosToAL
    7373    or      al, ah
    7474    mov     [bp+IDEPACK.bDrvAndHead], al
     
    8383    and     si, BYTE 0Fh                        ; Offset normalized
    8484    jmp     SHORT GetDeviceControlByteToIdepackAndStartTransfer
    85 %endif
     85%endif ; MODULE_EBIOS
    8686
    8787
     
    114114    push    bx
    115115    call    Address_OldInt13hAddressToIdeAddress
    116     call    AccessDPT_GetDriveSelectByteToAL
     116    call    AccessDPT_GetDriveSelectByteForOldInt13hToAL
    117117    or      al, bh          ; AL now has Drive and Head Select Byte
    118118    mov     [bp+IDEPACK.bDrvAndHead], al
     
    156156    ; Drive and Head select byte
    157157    and     ah, MASK_DRVNHEAD_HEAD      ; Keep head bits only
    158     call    AccessDPT_GetDriveSelectByteToAL
     158    call    AccessDPT_GetDriveSelectByteForOldInt13hToAL
    159159    or      al, ah
    160160    mov     [bp+IDEPACK.bDrvAndHead], al
Note: See TracChangeset for help on using the changeset viewer.