Changeset 400 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm


Ignore:
Timestamp:
Apr 20, 2012, 2:30:16 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Moved 8-bit device support to MODULE_8BIT_IDE.
  • JR-IDE/ISA support requires a lot less bytes.
  • AT builds now always use full operating mode.
File:
1 edited

Legend:

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

    r399 r400  
    6666%ifdef MODULE_ADVANCED_ATA
    6767;--------------------------------------------------------------------
    68 ; .StoreDeviceType
    69 ;   Parameters:
    70 ;       DS:DI:  Ptr to Disk Parameter Table
    71 ;       ES:SI:  Ptr to 512-byte ATA information read from the drive
    72 ;       CS:BP:  Ptr to IDEVARS for the controller
    73 ;   Returns:
    74 ;       Nothing
    75 ;   Corrupts registers:
    76 ;       Nothing
    77 ;--------------------------------------------------------------------
    78 .StoreDeviceType:
    79     call    IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI
    80 
    81 ;--------------------------------------------------------------------
    8268; .StorePioModeAndTimings
    8369;   Parameters:
     
    124110    ; it might have been set to 16-bit on IDEVARS
    125111.ChangeTo32bitDevice:
    126     mov     BYTE [di+DPT_ADVANCED_ATA.bDevice], DEVICE_32BIT_ATA
     112    mov     BYTE [di+DPT_ATA.bDevice], DEVICE_32BIT_ATA
    127113
    128114.NoAdvancedControllerDetected:
     115    ; Fall to IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI
    129116
    130 %endif ; MODULE_ADVANCED_ATA
    131 
    132 ;--------------------------------------------------------------------
    133 ; IdeDPT_StoreReversedAddressLinesFlagIfNecessary
    134 ;   Parameters:
    135 ;       DS:DI:  Ptr to Disk Parameter Table
    136 ;       CS:BP:  Ptr to IDEVARS for the controller
    137 ;   Returns:
    138 ;       CF:     Always clear
    139 ;   Corrupts registers:
    140 ;       Nothing
    141 ;--------------------------------------------------------------------
    142 IdeDPT_StoreReversedAddressLinesFlagIfNecessary:
    143     cmp     BYTE [cs:bp+IDEVARS.bDevice], DEVICE_XTIDE_REV2
    144     je      SHORT .SetFlagForSwappedA0andA3
    145     cmp     BYTE [cs:bp+IDEVARS.bDevice], DEVICE_FAST_XTIDE
    146     jne     SHORT .EndDPT
    147 .SetFlagForSwappedA0andA3:
    148     or      BYTE [di+DPT.bFlagsHigh], FLGH_DPT_REVERSED_A0_AND_A3
    149 .EndDPT:
    150     clc
    151     ret
     117%endif  ; MODULE_ADVANCED_ATA
    152118
    153119
    154 %ifdef MODULE_ADVANCED_ATA
    155120;--------------------------------------------------------------------
    156121; IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI
     
    165130IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI:
    166131    mov     al, [cs:bp+IDEVARS.bDevice]
    167     mov     [di+DPT_ADVANCED_ATA.bDevice], al
     132    mov     [di+DPT_ATA.bDevice], al
     133; End DPT
     134    clc
    168135    ret
    169 
    170 %endif
Note: See TracChangeset for help on using the changeset viewer.