Subject: Re: wdc driver and very old (40MB conner) disk drive
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Witold J. Wnuk <witek@wnuk.eu.org>
List: port-i386
Date: 02/17/2002 21:37:24
On Sunday 17 February 2002 20:19, you wrote:

> i found that linux have the same problem, but there is an boot option
> "hda=slow" that fixes it. linux code fragments for that are below.
> my question is - how to implement in in NetBSD driver which use bus_*
> functions.... i tried few times but with no success (same speed) so i must
> be doing something wrong. i tried replacing bus_*_multi functions with for
> and non-multi bus function.
> is another way to do it or maybe it's another thing to do too?

Linux' sources reveal that inw_p includes additional delay (writing to port 
0x80). Adding delay(1) after every IDE data register access may have similiar 
effect.


Greetings,


	Witold J. Wnuk