Changeset 400 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm
- Timestamp:
- Apr 20, 2012, 2:30:16 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm
r399 r400 66 66 %ifdef MODULE_ADVANCED_ATA 67 67 ;-------------------------------------------------------------------- 68 ; .StoreDeviceType69 ; Parameters:70 ; DS:DI: Ptr to Disk Parameter Table71 ; ES:SI: Ptr to 512-byte ATA information read from the drive72 ; CS:BP: Ptr to IDEVARS for the controller73 ; Returns:74 ; Nothing75 ; Corrupts registers:76 ; Nothing77 ;--------------------------------------------------------------------78 .StoreDeviceType:79 call IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI80 81 ;--------------------------------------------------------------------82 68 ; .StorePioModeAndTimings 83 69 ; Parameters: … … 124 110 ; it might have been set to 16-bit on IDEVARS 125 111 .ChangeTo32bitDevice: 126 mov BYTE [di+DPT_A DVANCED_ATA.bDevice], DEVICE_32BIT_ATA112 mov BYTE [di+DPT_ATA.bDevice], DEVICE_32BIT_ATA 127 113 128 114 .NoAdvancedControllerDetected: 115 ; Fall to IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI 129 116 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 152 118 153 119 154 %ifdef MODULE_ADVANCED_ATA155 120 ;-------------------------------------------------------------------- 156 121 ; IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI … … 165 130 IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI: 166 131 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 168 135 ret 169 170 %endif
Note:
See TracChangeset
for help on using the changeset viewer.