Changeset 493 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Timestamp:
- Dec 21, 2012, 8:44:25 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r480 r493 87 87 call Idepack_FakeToSSBP 88 88 89 %ifdef MODULE_8BIT_IDE 89 %ifdef MODULE_8BIT_IDE_ADVANCED 90 90 ; Enable 8-bit PIO mode for 8-bit ATA and XT-CF 91 91 push si … … 94 94 call AH9h_SetModeFromALtoXTCF 95 95 pop si 96 %endif ; MODULE_8BIT_IDE 96 %endif ; MODULE_8BIT_IDE_ADVANCED 97 97 98 98 ; Prepare to output Identify Device command … … 172 172 cmp bl, FLG_STATUS_DRQ ; Data transfer started? 173 173 jne SHORT .WaitUntilNonTransferCommandCompletes 174 %ifdef MODULE_8BIT_IDE 174 %ifdef MODULE_8BIT_IDE_ADVANCED 175 175 cmp BYTE [di+DPT_ATA.bDevice], DEVICE_8BIT_XTCF_MEMMAP 176 176 jae SHORT JrIdeTransfer_StartWithCommandInAL ; DEVICE_8BIT_XTCF_MEMMAP or DEVICE_8BIT_JRIDE_ISA -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeIO.asm
r491 r493 58 58 je SHORT .ReverseA0andA3fromRegisterIndexInDX 59 59 jb SHORT .InputToALfromRegisterInDX ; Standard IDE controllers and XTIDE rev 1 60 61 %ifdef MODULE_8BIT_IDE_ADVANCED 60 62 cmp al, DEVICE_8BIT_JRIDE_ISA 61 63 jne SHORT .ShlRegisterIndexInDX ; All XT-CF modes … … 68 70 pop ds 69 71 ret 70 72 %endif 73 71 74 .ReverseA0andA3fromRegisterIndexInDX: 72 75 mov dl, [cs:bx+g_rgbSwapA0andA3fromIdeRegisterIndex] … … 103 106 cmp bl, DEVICE_8BIT_XTIDE_REV2 104 107 jbe SHORT .OutputALtoControlBlockRegisterInDX ; Standard IDE controllers and XTIDE rev 1 108 109 %ifdef MODULE_8BIT_IDE_ADVANCED 105 110 cmp bl, DEVICE_8BIT_JRIDE_ISA 106 111 jne SHORT .ShlRegisterIndexInDX ; All XT-CF modes … … 115 120 eSHL_IM dx, 1 116 121 jmp SHORT OutputALtoRegisterInDX 122 %endif 117 123 118 124 .OutputALtoControlBlockRegisterInDX: … … 141 147 je SHORT .ReverseA0andA3fromRegisterIndexInDX 142 148 jb SHORT OutputALtoRegisterInDX ; Standard IDE controllers and XTIDE rev 1 149 150 %ifdef MODULE_8BIT_IDE_ADVANCED 143 151 cmp bl, DEVICE_8BIT_JRIDE_ISA 144 152 jne SHORT .ShlRegisterIndexInDX ; All XT-CF modes … … 154 162 pop ds 155 163 ret 156 164 %endif 165 157 166 .ReverseA0andA3fromRegisterIndexInDX: 158 167 mov bx, dx -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r491 r493 218 218 xchg ax, bx ; Lookup table offset to AX 219 219 mov bl, [di+DPT_ATA.bDevice] 220 %ifdef MODULE_8BIT_IDE 220 %ifdef MODULE_8BIT_IDE_ADVANCED 221 221 mov dl, bl 222 222 %endif … … 226 226 227 227 ; Normalize pointer for PIO-transfers and convert to physical address for DMA transfers 228 %ifdef MODULE_8BIT_IDE 228 %ifdef MODULE_8BIT_IDE_ADVANCED 229 229 cmp dl, DEVICE_8BIT_XTCF_DMA 230 230 jb SHORT IdeTransfer_NormalizePointerInESSI … … 281 281 %endif ; 26 29/26 282 282 ret 283 %endif ; MODULE_8BIT_IDE 283 %endif ; MODULE_8BIT_IDE_ADVANCED 284 284 ; Fall to IdeTransfer_NormalizePointerInESSI if no MODULE_8BIT_IDE 285 285 … … 308 308 dw IdePioBlock_ReadFromXtideRev1 ; 3, DEVICE_8BIT_XTIDE_REV1 309 309 dw IdePioBlock_ReadFromXtideRev2 ; 4, DEVICE_8BIT_XTIDE_REV2 310 %ifdef MODULE_8BIT_IDE_ADVANCED 310 311 dw IdePioBlock_ReadFrom8bitDataPort ; 5, DEVICE_8BIT_XTCF_PIO8 311 312 dw IdeDmaBlock_ReadFromXTCF ; 6, DEVICE_8BIT_XTCF_DMA 313 %endif 312 314 %endif 313 315 … … 320 322 dw IdePioBlock_WriteToXtideRev1 ; 3, DEVICE_8BIT_XTIDE_REV1 321 323 dw IdePioBlock_WriteToXtideRev2 ; 4, DEVICE_8BIT_XTIDE_REV2 324 %ifdef MODULE_8BIT_IDE_ADVANCED 322 325 dw IdePioBlock_WriteTo8bitDataPort ; 5, DEVICE_8BIT_XTCF_PIO8 323 326 dw IdeDmaBlock_WriteToXTCF ; 6, DEVICE_8BIT_XTCF_DMA 324 327 %endif 328 %endif
Note:
See TracChangeset
for help on using the changeset viewer.