Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Manuel BOUYER <bouyer@netbsd.org>
List: source-changes
Date: 01/18/1999 12:06:25
Module Name:	src
Committed By:	bouyer
Date:		Mon Jan 18 20:06:25 UTC 1999

Modified Files:
	src/sys/dev/ata: ata.c atareg.h atavar.h wd.c
	src/sys/dev/ic: wdc.c wdcreg.h
Log Message:
move wd.c:print_wderror() to ata.c:ata_perror().
In wdc_probe_caps() add code to guess the ATA revision supported (if
ATA4 if Ultra-DMA, ATA2 if PIO mode > 2). We can't rely on param.atap_ata_major
here, at last one Ultra-DMA drive claims to support only ATA-3.
Use the ATA version in ata_perror(), and to try a flush cache command
in a shutdown hook for IDE drives.