summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-05-29 08:33:37 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-05-29 08:33:37 +0000
commit50d59e76cc5bd53da772f5ff459ea53261935b76 (patch)
tree13f804a78ebf7fc1c8e43d79ad53c06e5ff98d9e /sys/dev
parentbf13adbce35fe4ebf59a997c8ba618bf67dbab70 (diff)
put the 64bit flag in the right place on the scatter gather list.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mpi.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 3a1b14b1390..0171c6af9d0 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.9 2006/05/29 08:18:57 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.10 2006/05/29 08:33:36 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -827,8 +827,7 @@ mpi_load_xs(struct mpi_ccb *ccb)
if (xs->datalen == 0) {
sge = &mcb->mcb_sgl[0];
sge->sg_hdr = htole32(MPI_SGE_FL_TYPE_SIMPLE |
- MPI_SGE_FL_LAST | MPI_SGE_FL_EOB | MPI_SGE_FL_EOL |
- MPI_SGE_FL_SIZE_64);
+ MPI_SGE_FL_LAST | MPI_SGE_FL_EOB | MPI_SGE_FL_EOL);
return (0);
}
@@ -840,7 +839,7 @@ mpi_load_xs(struct mpi_ccb *ccb)
return (1);
}
- flags = MPI_SGE_FL_TYPE_SIMPLE;
+ flags = MPI_SGE_FL_TYPE_SIMPLE | MPI_SGE_FL_SIZE_64;
if (xs->flags & SCSI_DATA_OUT)
flags |= MPI_SGE_FL_DIR_OUT;