Subject: Re: port-arm32/12120: arm32 wdc drivers should use wdc_print_modes for a bit more info
To: Chris Gilbert <chris@paradox.demon.co.uk>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-bugs
Date: 02/05/2001 21:03:10
On Sun, Feb 04, 2001 at 10:08:41PM +0000, Chris Gilbert wrote:
> Ahh, no point copying broken code then.  Certainly the reason for me adding 
> is was to just get more info.  I just prefer that people are aware that 
> controllers aren't using DMA even if the drives are.  The adding the 
> wdc_print_modes makes the output on my arm32 box:
> 
> rapide0 at podulebus0 [ podule 1 ]: Issue 2
> atapibus0 at rapide0 channel 0
> cd0 at atapibus0 drive 1: <CD-540E, , 1.0A> type 5 cdrom removable
> 
> cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> wd0 at rapide0 channel 0 drive 0: <QUANTUM FIREBALL SE4.3A>
> wd0: drive supports 16-sector PIO transfers, LBA addressing
> wd0: 4110 MB, 14848 cyl, 9 head, 63 sec, 512 bytes/sect x 8418816 sectors
>  
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> wd0(rapide0:0:0): using PIO mode 4
> cd0(rapide0:0:1): using PIO mode 4

Ok, but can rapide really do PIO mode 4 ?
You can use wdc_print_modes(), but you need to set drvp->PIO_mode to the rigth
value for each drive before calling it (I think otherwise it defaults to
what the drive supports, this info is already available).

--
Manuel Bouyer <bouyer@antioche.eu.org>
--