diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-19 16:44:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-19 16:44:19 +0000 |
commit | 115d259bb128d4fd45547a2033438cd7f516ebcc (patch) | |
tree | acd21ff53f50f5ed18a1be0dd4097f1f3db437f5 | |
parent | ea6ba14fa8beff2d181136122765fe425218fa65 (diff) |
From NetBSD:
Check for SCSI_ADW_WDTR_DISABLE flag in tidmask not tid
-rw-r--r-- | sys/dev/ic/adwlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/adwlib.c b/sys/dev/ic/adwlib.c index ce38578070f..e0ce2b8fe15 100644 --- a/sys/dev/ic/adwlib.c +++ b/sys/dev/ic/adwlib.c @@ -2435,7 +2435,7 @@ ADW_SCSI_REQ_Q *scsiq; * microcode. */ #ifdef SCSI_ADW_WDTR_DISABLE - if(!(tid & SCSI_ADW_WDTR_DISABLE)) + if(!(tidmask & SCSI_ADW_WDTR_DISABLE)) #endif /* SCSI_ADW_WDTR_DISABLE */ if ((sc->wdtr_able & tidmask) && inq->WBus16) { ADW_READ_WORD_LRAM(iot, ioh, ASC_MC_WDTR_ABLE, @@ -2473,7 +2473,7 @@ ADW_SCSI_REQ_Q *scsiq; * 'sdtr_able' bit. Write the new value to the microcode. */ #ifdef SCSI_ADW_SDTR_DISABLE - if(!(tid & SCSI_ADW_SDTR_DISABLE)) + if(!(tidmask & SCSI_ADW_SDTR_DISABLE)) #endif /* SCSI_ADW_SDTR_DISABLE */ if ((sc->sdtr_able & tidmask) && inq->Sync) { ADW_READ_WORD_LRAM(iot, ioh, ASC_MC_SDTR_ABLE, cfg_word); @@ -2508,7 +2508,7 @@ ADW_SCSI_REQ_Q *scsiq; * bugs will at least work with the BIOS. */ #ifdef SCSI_ADW_TAGQ_DISABLE - if(!(tid & SCSI_ADW_TAGQ_DISABLE)) + if(!(tidmask & SCSI_ADW_TAGQ_DISABLE)) #endif /* SCSI_ADW_TAGQ_DISABLE */ if ((sc->tagqng_able & tidmask) && inq->CmdQue) { ADW_READ_WORD_LRAM(iot, ioh, ASC_MC_TAGQNG_ABLE, |