Subject: Wait in device-drivers?
To: None <amiga@netbsd.org>
From: Daniel Widenfalk <t94dwi@student.tdb.uu.se>
List: amiga
Date: 10/12/1994 12:36:09
Hi!

I'm writing a d-d for the FastlaneZ3 and I'm wondering if there is any
way to let the d-d wait for some interrupt.

I.E. What I'd like to do is in pseudo-code.
Initiate command
wait for reselection
initiate data transmition
wait for transmition to complete
clean up and scsi_done

Is it possible? Under AmigaDOS i whould have done something like
Initiate command
Wait(signal from interrupt)
initiate data transmition
Wait((other) signal from interrupt)
clean up and scsi_done

I know that the wait-functions could be made busy-wait, but I'd rather not.
Perhaps it's very unwise to let go of the CPU in a d-d, I don't know!

If anybody can give me a hint, drop a mail!

/Daniel Widenfalk
t94dwi@student.tdb.uu.se