aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sym
diff options
context:
space:
mode:
authorGerard Roudier <groudier@FreeBSD.org>2000-06-13 20:17:41 +0000
committerGerard Roudier <groudier@FreeBSD.org>2000-06-13 20:17:41 +0000
commite19c49c532f803ae7cef2744b53c8b570777abf1 (patch)
tree37b9d5fe1b6e24ff6c1000417bc3f26c55826ecb /sys/dev/sym
parent4bc99e3e69547fd8936a314acd119e0128e56558 (diff)
Notes
Diffstat (limited to 'sys/dev/sym')
-rw-r--r--sys/dev/sym/sym_hipd.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 65befbbd300d..c15509f637ee 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -57,7 +57,7 @@
/* $FreeBSD$ */
-#define SYM_DRIVER_NAME "sym-1.6.1-20000608"
+#define SYM_DRIVER_NAME "sym-1.6.2-20000614"
/* #define SYM_DEBUG_GENERIC_SUPPORT */
@@ -923,7 +923,7 @@ static char *sym_scsi_bus_mode(int mode)
}
/*
- * Some poor sync table that refers to Tekram NVRAM layout.
+ * Some poor and bogus sync table that refers to Tekram NVRAM layout.
*/
#ifdef SYM_CONF_NVRAM_SUPPORT
static u_char Tekram_sync[16] =
@@ -2960,11 +2960,15 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram)
sym_nvram_setup_target (np, i, nvram);
/*
- * For now, guess PPR support from the period.
+ * For now, guess PPR/DT support from the period
+ * and BUS width.
*/
- if (tp->tinfo.user.period <= 9) {
- tp->tinfo.user.options |= PPR_OPT_DT;
- tp->tinfo.user.offset = np->maxoffs_dt;
+ if (np->features & FE_ULTRA3) {
+ if (tp->tinfo.user.period <= 9 &&
+ tp->tinfo.user.width == BUS_16_BIT) {
+ tp->tinfo.user.options |= PPR_OPT_DT;
+ tp->tinfo.user.offset = np->maxoffs_dt;
+ }
}
if (!tp->usrtags)