Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej_scsipi]: src/sys/dev/i2o Account for MAX_LUN change in TIDMAP().



details:   https://anonhg.NetBSD.org/src/rev/59b15c898a62
branches:  thorpej_scsipi
changeset: 477380:59b15c898a62
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Jan 22 18:19:02 2001 +0000

description:
Account for MAX_LUN change in TIDMAP().

diffstat:

 sys/dev/i2o/iopspvar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 096cfaa41f2e -r 59b15c898a62 sys/dev/i2o/iopspvar.h
--- a/sys/dev/i2o/iopspvar.h    Mon Jan 22 18:03:51 2001 +0000
+++ b/sys/dev/i2o/iopspvar.h    Mon Jan 22 18:19:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iopspvar.h,v 1.2.2.3 2001/01/22 18:00:43 bouyer Exp $  */
+/*     $NetBSD: iopspvar.h,v 1.2.2.4 2001/01/22 18:19:02 ad Exp $      */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 #define        IOPSP_MAX_SCSI_TARGET   15
 #define        IOPSP_MAX_FCAL_TARGET   127
 
-#define        IOPSP_TIDMAP(map, t, l) (map[(t) * (IOPSP_MAX_LUN + 1) + (l)])
+#define        IOPSP_TIDMAP(map, t, l) (map[(t) * IOPSP_MAX_LUN + (l)])
 #define        IOPSP_TID_ABSENT        0x0000  /* Device is absent */
 #define        IOPSP_TID_INUSE         0xffff  /* Device in use by another module */
 



Home | Main Index | Thread Index | Old Index