- Timestamp:
- Aug 10, 2012, 5:35:08 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r422 r437 93 93 FLG_INITERROR_FAILED_TO_SET_PIO_MODE EQU (1<<5) 94 94 FLG_INITERROR_FAILED_TO_INITIALIZE_STANDBY_TIMER EQU (1<<6) 95 FLG_INITERROR_FAILED_TO_ENABLE_8BIT_PIO_MODE EQU (1<<7) 95 96 96 97 -
trunk/XTIDE_Universal_BIOS/Inc/IdeRegisters.inc
r380 r437 101 101 102 102 ; Subcommands for COMMAND_SET_FEATURES 103 FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE EQU 01h ; CFA feature set only 103 104 FEATURE_ENABLE_WRITE_CACHE EQU 02h 104 105 FEATURE_DISABLE_WRITE_CACHE EQU 82h ; Can also be used to flush cache -
trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc
r422 r437 139 139 ; 140 140 DEVICE_8BIT_JRIDE_ISA EQU (0<<1) ; JR-IDE/ISA (must be 0) 141 DEVICE_8BIT_ FAST_XTIDE EQU (1<<1) ; CPLD v2 project (must be 1 or 2)141 DEVICE_8BIT_XTCF EQU (1<<1) ; Lo-tech XT-CF 142 142 DEVICE_8BIT_XTIDE_REV2 EQU (2<<1) ; Or rev 1 with swapped A0 and A3 (must be 1 or 2) 143 143 DEVICE_8BIT_XTIDE_REV1 EQU (3<<1) ; Must be 4 -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r432 r437 86 86 call Idepack_FakeToSSBP 87 87 88 ; Enable 8-bit PIO mode for Lo-tech XT-CF 89 call AH9h_Enable8bitPioModeForXTCF 90 88 91 ; Prepare to output Identify Device command 89 92 mov dl, 1 ; Sector count (required by IdeTransfer.asm) -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r422 r437 125 125 STORE_ERROR_FLAG_TO_DPT FLG_INITERROR_FAILED_TO_INITIALIZE_CHS_PARAMETERS 126 126 .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 127 132 128 133 … … 248 253 .NoErrorFlagToSet: 249 254 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 ;-------------------------------------------------------------------- 267 AH9h_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.