summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2006-07-01 03:30:31 +0000
committerdlg <dlg@openbsd.org>2006-07-01 03:30:31 +0000
commit9e94d140e866a35eb9106fe13ea721a6f5839563 (patch)
tree9179f678facea0b5b7ec7a397379b528b93f4d3f
parentregen (diff)
downloadwireguard-openbsd-9e94d140e866a35eb9106fe13ea721a6f5839563.tar.xz
wireguard-openbsd-9e94d140e866a35eb9106fe13ea721a6f5839563.zip
man, i suck. when i split one of the dwords up in the io command i got the
location of the commands direction wrong. somehow this didnt affect the 1030 chip i was testing on, but it borked vmware and my fc controller. i guess the 1030 was using the cdb to figure out the direction. shifting the direction field into the right place fixes things. found by Jason Crawford, tested by brad@
-rw-r--r--sys/dev/ic/mpireg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpireg.h b/sys/dev/ic/mpireg.h
index cd6d6a03a77..b14a69601e0 100644
--- a/sys/dev/ic/mpireg.h
+++ b/sys/dev/ic/mpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpireg.h,v 1.21 2006/06/29 10:43:21 dlg Exp $ */
+/* $OpenBSD: mpireg.h,v 1.22 2006/07/01 03:30:31 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -640,11 +640,11 @@ struct mpi_msg_scsi_io {
#define MPI_SCSIIO_ATTR_ACA_Q (0x4)
#define MPI_SCSIIO_ATTR_UNTAGGED (0x5)
#define MPI_SCSIIO_ATTR_NO_DISCONNECT (0x7)
+ u_int8_t reserved3;
u_int8_t direction;
#define MPI_SCSIIO_DIR_NONE (0x0)
#define MPI_SCSIIO_DIR_WRITE (0x1)
#define MPI_SCSIIO_DIR_READ (0x2)
- u_int8_t extra_cdb_len;
#define MPI_CDB_LEN 16
u_int8_t cdb[MPI_CDB_LEN];