Subject: Question about scsi_select() in atari/mac68k ncr5380.c
To: None <port-atari@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-atari
Date: 12/07/2004 11:32:17
--Apple-Mail-20--413313597
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed
The scsi_select() function contains the following block of code:
/*
* Try to disconnect from the target. We cannot leave
* it just hanging here.
*/
if (!reach_msg_out(sc, sizeof(struct scsi_generic))) {
u_long len = 1;
u_char phase = PH_MSGOUT;
u_char msg = MSG_ABORT;
transfer_pio(&phase, &msg, &len, 0);
}
else scsi_reset_verbose(sc, "Connected to unidentified
target");
What is the significance of using the size of a "generic SCSI commmand"
here? Is the intent really to absorb up to exactly 12 bytes?
I am planning on making some changes to the SCSI code, and want to make
sure I don't break this driver.
-- Jason R. Thorpe <thorpej@shagadelic.org>
--Apple-Mail-20--413313597
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFBtgVCOpVKkaBm8XkRAifNAJ0bSJEUS8gxI7rOOmcEC7k4dljQhACaAhji
SmvHCsb1GHXdyzD/QOVD6m0=
=xjOZ
-----END PGP SIGNATURE-----
--Apple-Mail-20--413313597--