Bring back the ability to send cdbs of length 13->32 bytes. This was lost

during the qinfifo optimization.  When swapping HSCBs, we were only copying
the first 32 bytes, the amount used in the common case of a cdb <= 12 bytes.
Larger cdbs are stored in the second 32 bytes of the cdb.

Noticed by: Marc Frajola <marc@terasolutions.com>
This commit is contained in:
Justin T. Gibbs 2000-10-12 14:36:27 +00:00
parent 8034cac98a
commit 60754d0ba3

View File

@ -308,7 +308,7 @@ ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb)
*/
q_hscb = ahc->next_queued_scb->hscb;
saved_tag = q_hscb->tag;
memcpy(q_hscb, scb->hscb, 32);
memcpy(q_hscb, scb->hscb, sizeof(*scb->hscb));
q_hscb->tag = saved_tag;
q_hscb->next = scb->hscb->tag;