From 50d59e76cc5bd53da772f5ff459ea53261935b76 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 29 May 2006 08:33:37 +0000 Subject: put the 64bit flag in the right place on the scatter gather list. --- sys/dev/ic/mpi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev/ic/mpi.c') 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 @@ -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; -- cgit v1.2.3