summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1996-10-06 22:50:56 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1996-10-06 22:50:56 +0000
commitb109ceda2fbf1a7a1a8b10d0d6af8307970c7b9d (patch)
treed338d3748f166f1ec67290330f2021701ff100b8 /sys
parent853a7bc8935419fd10b52391525791114ac550be (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/scsi/aic7xxx.c6
-rw-r--r--sys/scsi/scsi_message.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c
index 227e3d037674..b434dc49c040 100644
--- a/sys/i386/scsi/aic7xxx.c
+++ b/sys/i386/scsi/aic7xxx.c
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aic7xxx.c,v 1.77 1996/10/06 16:38:25 gibbs Exp $
+ * $Id: aic7xxx.c,v 1.78 1996/10/06 19:42:59 gibbs Exp $
*/
/*
* TODO:
@@ -582,7 +582,7 @@ ahc_scsirate(ahc, scsirate, period, offset, channel, target )
*scsirate = 0;
*period = 0;
*offset = 0;
- if(bootverbose)
+ if (bootverbose)
printf("%s: target %d using asyncronous transfers\n",
ahc_name(ahc), target );
}
@@ -1819,7 +1819,7 @@ ahc_handle_seqint(ahc, intstat)
sxfr |= 0x100;
for (i = 0; i < ahc_num_syncrates; i++)
- if (target_scratch == ahc_syncrates[i].sxfr)
+ if (sxfr == ahc_syncrates[i].sxfr)
break;
ahc_construct_sdtr(ahc, AHC_INB(ahc, MSG_LEN),
diff --git a/sys/scsi/scsi_message.h b/sys/scsi/scsi_message.h
index a4eb6fc7b709..bce70db2a198 100644
--- a/sys/scsi/scsi_message.h
+++ b/sys/scsi/scsi_message.h
@@ -26,8 +26,8 @@
/* Identify message */ /* M/M */
#define MSG_IDENTIFYFLAG 0x80
-#define MSG_IDENTIFY(lun, disc) ((disc) ? 0xc0 : 0x80) | (lun))
-#define MSG_ISIDENTIFY(m) ((m) & MSG_INDENTIFYFLAG)
+#define MSG_IDENTIFY(lun, disc) ((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
+#define MSG_ISIDENTIFY(m) ((m) & MSG_IDENTIFYFLAG)
/* Extended messages (opcode and length) */
#define MSG_EXT_SDTR 0x01