|
@@ -2647,14 +2647,14 @@ static void NCR5380_dma_complete(NCR5380_instance * instance) {
|
|
*
|
|
*
|
|
* Purpose : abort a command
|
|
* Purpose : abort a command
|
|
*
|
|
*
|
|
- * Inputs : cmd - the Scsi_Cmnd to abort, code - code to set the
|
|
|
|
- * host byte of the result field to, if zero DID_ABORTED is
|
|
|
|
|
|
+ * Inputs : cmd - the Scsi_Cmnd to abort, code - code to set the
|
|
|
|
+ * host byte of the result field to, if zero DID_ABORTED is
|
|
* used.
|
|
* used.
|
|
*
|
|
*
|
|
- * Returns : 0 - success, -1 on failure.
|
|
|
|
|
|
+ * Returns : SUCCESS - success, FAILED on failure.
|
|
*
|
|
*
|
|
- * XXX - there is no way to abort the command that is currently
|
|
|
|
- * connected, you have to wait for it to complete. If this is
|
|
|
|
|
|
+ * XXX - there is no way to abort the command that is currently
|
|
|
|
+ * connected, you have to wait for it to complete. If this is
|
|
* a problem, we could implement longjmp() / setjmp(), setjmp()
|
|
* a problem, we could implement longjmp() / setjmp(), setjmp()
|
|
* called where the loop started in NCR5380_main().
|
|
* called where the loop started in NCR5380_main().
|
|
*
|
|
*
|
|
@@ -2703,7 +2703,7 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
|
|
* aborted flag and get back into our main loop.
|
|
* aborted flag and get back into our main loop.
|
|
*/
|
|
*/
|
|
|
|
|
|
- return 0;
|
|
|
|
|
|
+ return SUCCESS;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|