Subject: CVS commit: syssrc/sys/dev/mca
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 03/31/2002 13:01:27
Module Name: syssrc
Committed By: jdolecek
Date: Sun Mar 31 10:01:27 UTC 2002
Modified Files:
syssrc/sys/dev/mca: edc_mca.c
Log Message:
edc_cmd_wait(): it is absolutely necessary to wait for the BSR_CMD_INPROGRESS
flag to clear, even when the COMMAND COMPLETE interrupt already did happen,
otherwise we get ATTENTION ERROR for next command if it happens soon
enough; this fixes the reliability problems introduced by previous change
some other cleanup & simlify of edc_cmd_wait()/edc_run_cmd(), the 'secs'
is just a hint used in !poll case only
add some comments
move status_block[] back to edc_mca_softc, to save stack memory
make #ifdef DEBUG #ifdef EDC_DEBUG and g/c some obsolete debug stuff
make some EAGAINs EIOs
edc_intr(): wakeup the waiter for any command, not just READ/WRITE DATA
To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 syssrc/sys/dev/mca/edc_mca.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.