From 23fbb36864365061d9728797f07a141ac735cc81 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 4 Aug 2005 02:14:31 +0000 Subject: Add support for dell enclosures that do both SES and SAF-TE. ok dlg@ --- sys/scsi/ses.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys') 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 @@ -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); -- cgit v1.2.3