Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Manuel BOUYER <bouyer@netbsd.org>
List: source-changes
Date: 04/01/1999 13:46:31
Module Name:	src
Committed By:	bouyer
Date:		Thu Apr  1 21:46:30 UTC 1999

Modified Files:
	src/sys/dev/ata: ata_wdc.c
	src/sys/dev/ic: wdc.c wdcvar.h
	src/sys/dev/scsipi: atapi_wdc.c
Log Message:
- change the interrupt routines to take a 3rd arguments, set to 1 if we
are called from the interrupt or timeout handler, 0 otherwise.
- use this to know if we can busy-wait for wait_for_unbusy or wait_for_ready
This fixes a bug where CDs withot the DRQ_INTR capability would not busy-wait
for the CMDOUT phase.
While I'm there change 2 delay() to DELAY() for consistency, and
garbage-collect some old code from wdcintr() which has been ifdef'd out
for some time now.