summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-08-04 02:14:31 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-08-04 02:14:31 +0000
commit23fbb36864365061d9728797f07a141ac735cc81 (patch)
tree7210460372fafb578c86381a571feac8eef24f12 /sys
parent67f73a847ae54e6ea1c115854c0bc83e2e11fcf2 (diff)
Add support for dell enclosures that do both SES and SAF-TE. ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/ses.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/scsi/ses.c b/sys/scsi/ses.c
index c5f123d0e0f..f75de374c7b 100644
--- a/sys/scsi/ses.c
+++ b/sys/scsi/ses.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ses.c,v 1.12 2005/08/03 15:34:13 dlg Exp $ */
+/* $OpenBSD: ses.c,v 1.13 2005/08/04 02:14:30 marco Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -112,6 +112,11 @@ ses_match(struct device *parent, void *match, void *aux)
(inq->version & SID_ANSII) >= SID_ANSII_SCSI2)
return (2);
+ /* match on dell enclosures */
+ if ((inq->device & SID_TYPE) == T_PROCESSOR &&
+ (inq->version & SID_ANSII) == SID_ANSII_SCSI3)
+ return (2);
+
/* XXX apparently we can match on passthrough devs too? */
return (0);