diff options
author | 2006-07-15 04:09:57 +0000 | |
---|---|---|
committer | 2006-07-15 04:09:57 +0000 | |
commit | 6608091eb88af1004a9ce99e5e01d3f4513daccc (patch) | |
tree | ad74c295491614951b963ca74ec95e481a9d306b /sys | |
parent | have a go at configuring spi variants to only talk to the devices at the (diff) | |
download | wireguard-openbsd-6608091eb88af1004a9ce99e5e01d3f4513daccc.tar.xz wireguard-openbsd-6608091eb88af1004a9ce99e5e01d3f4513daccc.zip |
set the tags on the scsi command according to what the midlayer says they
should be.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mpi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index aff8981889d..301ae5044b7 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.62 2006/07/15 03:59:50 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.63 2006/07/15 04:09:57 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -1151,6 +1151,11 @@ mpi_scsi_cmd(struct scsi_xfer *xs) break; } + if (link->quirks & SDEV_NOTAGS) + io->tagging = MPI_SCSIIO_ATTR_UNTAGGED; + else + io->tagging = MPI_SCSIIO_ATTR_SIMPLE_Q; + bcopy(xs->cmd, io->cdb, xs->cmdlen); io->data_length = htole32(xs->datalen); |