Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Support for > 12 byte commands for parallel SCSI.



details:   https://anonhg.NetBSD.org/src/rev/f6ed8ab14621
branches:  trunk
changeset: 482673:f6ed8ab14621
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Sat Feb 19 01:54:42 2000 +0000

description:
Support for > 12 byte commands for parallel SCSI.

diffstat:

 sys/dev/pci/isp_pci.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 9a886845ce3f -r f6ed8ab14621 sys/dev/pci/isp_pci.c
--- a/sys/dev/pci/isp_pci.c     Sat Feb 19 01:53:56 2000 +0000
+++ b/sys/dev/pci/isp_pci.c     Sat Feb 19 01:54:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_pci.c,v 1.50 2000/02/12 02:22:37 mjacob Exp $ */
+/* $NetBSD: isp_pci.c,v 1.51 2000/02/19 01:54:42 mjacob Exp $ */
 /*
  * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
  * Matthew Jacob (mjacob%nas.nasa.gov@localhost)
@@ -803,8 +803,12 @@
                ((ispreqt2_t *)rq)->req_totalcnt = xs->datalen;
                ((ispreqt2_t *)rq)->req_flags |= drq;
        } else {
-               seglim = ISP_RQDSEG;
                rq->req_flags |= drq;
+               if (XS_CDBLEN(xs) > 12) {
+                       seglim = 0;
+               } else {
+                       seglim = ISP_RQDSEG;
+               }
        }
        error = bus_dmamap_load(pci->pci_dmat, dmap, xs->data, xs->datalen,
            NULL, xs->xs_control & XS_CTL_NOSLEEP ?



Home | Main Index | Thread Index | Old Index