summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mpi.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-06-29 08:35:09 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-06-29 08:35:09 +0000
commit67b1abe13a9c82af5c18bb64b59b8083aa0e58f2 (patch)
tree3b2f850f958f032efb37266b5a8ff191a76f85d6 /sys/dev/ic/mpi.c
parent94b7fe154907f3da72340c4555dc76151e8d4ba6 (diff)
theres a ton of 32bit fields in mpi messages that have subfields that lie
on byte boundaries. so rather than byteswappping and bitshifting the values in these subfields around we can break them up into byte fields and access them directly. this breaks up the control field in the scsi io command.
Diffstat (limited to 'sys/dev/ic/mpi.c')
-rw-r--r--sys/dev/ic/mpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index bc07dbe52c5..b2ce7dc38bc 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.48 2006/06/19 21:06:22 miod Exp $ */
+/* $OpenBSD: mpi.c,v 1.49 2006/06/29 08:35:08 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -976,13 +976,13 @@ mpi_scsi_cmd(struct scsi_xfer *xs)
switch (xs->flags & (SCSI_DATA_IN | SCSI_DATA_OUT)) {
case SCSI_DATA_IN:
- io->control = htole32(MPI_SCSIIO_DATA_DIR_READ);
+ io->direction = MPI_SCSIIO_DIR_READ;
break;
case SCSI_DATA_OUT:
- io->control = htole32(MPI_SCSIIO_DATA_DIR_WRITE);
+ io->direction = MPI_SCSIIO_DIR_WRITE;
break;
default:
- io->control = htole32(MPI_SCSIIO_DATA_DIR_NONE);
+ io->direction = MPI_SCSIIO_DIR_NONE;
break;
}