summaryrefslogtreecommitdiff
path: root/sys/dev/sym
diff options
context:
space:
mode:
authorGerard Roudier <groudier@FreeBSD.org>2001-02-03 16:16:27 +0000
committerGerard Roudier <groudier@FreeBSD.org>2001-02-03 16:16:27 +0000
commitc384defe2fd313d5d9813ca5bf2f5f11b971800d (patch)
treeea5886e6c0b1846be429bf297c6574aa58ac5015 /sys/dev/sym
parentbb13b297c21040b95369de5a761907c8c1c57bb9 (diff)
Notes
Diffstat (limited to 'sys/dev/sym')
-rw-r--r--sys/dev/sym/sym_hipd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 534b8900cf70..76b6d7e47356 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -2077,7 +2077,7 @@ sym_fw2_patch(hcb_p np)
* they are not desirable. See `sym_fw2.h' for more details.
*/
if (!(np->device_id == PCI_ID_LSI53C1010_2 &&
- /* np->revision_id < 0xff */ 1 &&
+ np->revision_id < 0x1 &&
np->pciclk_khz < 60000)) {
scripta0->datao_phase[0] = cpu_to_scr(SCR_NO_OP);
scripta0->datao_phase[1] = cpu_to_scr(0);
@@ -2808,7 +2808,7 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram)
* are used. Disable internal cycles.
*/
if (np->device_id == PCI_ID_LSI53C1010 &&
- /* np->revision_id < 0xff */ 1)
+ np->revision_id < 0x2)
np->rv_ccntl0 |= DILS;
/*
@@ -2908,7 +2908,7 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram)
np->scsi_mode = SMODE_HVD;
}
else if (nvram->type == SYM_SYMBIOS_NVRAM) {
- if (INB(nc_gpreg) & 0x08)
+ if (!(INB(nc_gpreg) & 0x08))
np->scsi_mode = SMODE_HVD;
}
}