From cdc2b3964dc98f4adbb374591020436ba0aafa51 Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Mon, 15 Jul 2024 14:49:52 -0700 Subject: [PATCH] Remove Short IDE/PPIDE Timeout, Issue #397 The Microdrives behave slightly differently than either normal spinning drives or CF Cards. This update removes the "short" timeout that is used in the IDE/PPIDE drivers which caused timeout issues for the Microdrives. The short timeout was originally used to workaround excessive wait/stall during boot of some media. I don't think it is necessary any more because of additional intelligence in the initialization routines. --- Source/HBIOS/ide.asm | 3 ++- Source/HBIOS/ppide.asm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/HBIOS/ide.asm b/Source/HBIOS/ide.asm index 388c3181..4bead8cc 100644 --- a/Source/HBIOS/ide.asm +++ b/Source/HBIOS/ide.asm @@ -435,7 +435,8 @@ IDE_DEV2S: ; DEVICE 2, SLAVE ; PICO TO WAIT FOR THE PICO DEVICE TO INITIALIZE. ; IDE_TOSLOW .EQU 200 ; SLOW TIMEOUT IS 20 SECS -IDE_TONORM .EQU 5 ; NORMAL TIMEOUT IS 0.5 SECS +;IDE_TONORM .EQU 5 ; NORMAL TIMEOUT IS 0.5 SECS +IDE_TONORM .EQU 200 ; NORMAL TIMEOUT IS 0.5 SECS IDE_TOPICO .EQU 50 ; RC2014 SD PICO (5 SECONDS) ; ;============================================================================= diff --git a/Source/HBIOS/ppide.asm b/Source/HBIOS/ppide.asm index de956828..544e1cd7 100644 --- a/Source/HBIOS/ppide.asm +++ b/Source/HBIOS/ppide.asm @@ -351,7 +351,8 @@ PPIDE_DEV2S: ; DEVICE 2, SLAVE ; BASED ON REAL WORLD EXPERIENCE. ; PPIDE_TOSLOW .EQU 200 ; SLOW TIMEOUT IS 20 SECS -PPIDE_TONORM .EQU 5 ; NORMAL TIMEOUT IS 0.5 SECS +;PPIDE_TONORM .EQU 5 ; NORMAL TIMEOUT IS 0.5 SECS +PPIDE_TONORM .EQU 200 ; NORMAL TIMEOUT IS 0.5 SECS ; ;============================================================================= ; INITIALIZATION ENTRY POINT