summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-13 17:04:29 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-13 17:04:29 +0000
commit9d22a0001f16fc8477516e8bc4dac1a2a3a39c3d (patch)
tree757a7176903100148c2e09174854f0203ef1be71 /sys/dev/ic
parent336ad1ee33d5194b6f942037dacaaf4f6dd30c70 (diff)
initialize bus width and number of luns supported.
this is tested on SmartRAID IV and consistant w/ what netbsd does.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/dpt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/dpt.c b/sys/dev/ic/dpt.c
index a7e84b9fc0d..b5e5b51a52b 100644
--- a/sys/dev/ic/dpt.c
+++ b/sys/dev/ic/dpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dpt.c,v 1.3 2001/07/08 17:46:46 espie Exp $ */
+/* $OpenBSD: dpt.c,v 1.4 2001/07/13 17:04:28 mickey Exp $ */
/* $NetBSD: dpt.c,v 1.12 1999/10/23 16:26:33 ad Exp $ */
/*-
@@ -435,6 +435,8 @@ dpt_init(sc, intrstr)
#ifdef __OpenBSD__
link->scsibus = i;
link->adapter_target = sc->sc_hbaid[i];
+ link->luns = ec->ec_maxlun + 1;
+ link->adapter_buswidth = ec->ec_maxtarget + 1;
#endif /* __OpenBSD__ */
link->device = &dpt_dev;
link->adapter = &sc->sc_adapter;