Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 06:58:44 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r234913 - in stable/8: share/examples/ses/srcs sys/cam/scsi
Message-ID:  <201205020658.q426wiFI070037@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed May  2 06:58:44 2012
New Revision: 234913
URL: http://svn.freebsd.org/changeset/base/234913

Log:
  MFC r222336, r222339:
  Add names for few more SES element types according SES-2 specification.

Modified:
  stable/8/share/examples/ses/srcs/eltsub.c
  stable/8/sys/cam/scsi/scsi_ses.h
Directory Properties:
  stable/8/share/examples/   (props changed)
  stable/8/sys/   (props changed)

Modified: stable/8/share/examples/ses/srcs/eltsub.c
==============================================================================
--- stable/8/share/examples/ses/srcs/eltsub.c	Wed May  2 06:52:00 2012	(r234912)
+++ stable/8/share/examples/ses/srcs/eltsub.c	Wed May  2 06:58:44 2012	(r234913)
@@ -84,6 +84,9 @@ geteltnm(type)
 	case SESTYP_KEYPAD:
 		sprintf(rbuf, "Key pad entry device");
 		break;
+	case SESTYP_ENCLOSURE:
+		sprintf(rbuf, "Enclosure");
+		break;
 	case SESTYP_SCSIXVR:
 		sprintf(rbuf, "SCSI port/transceiver");
 		break;
@@ -108,6 +111,15 @@ geteltnm(type)
 	case SESTYP_SUBENC:
 		sprintf(rbuf, "Simple sub-enclosure");
 		break;
+	case SESTYP_ARRAY:
+		sprintf(rbuf, "Array device");
+		break;
+	case SESTYP_SASEXPANDER:
+		sprintf(rbuf, "SAS Expender");
+		break;
+	case SESTYP_SASCONNECTOR:
+		sprintf(rbuf, "SAS Connector");
+		break;
 	default:
 		(void) sprintf(rbuf, "<Type 0x%x>", type);
 		break;

Modified: stable/8/sys/cam/scsi/scsi_ses.h
==============================================================================
--- stable/8/sys/cam/scsi/scsi_ses.h	Wed May  2 06:52:00 2012	(r234912)
+++ stable/8/sys/cam/scsi/scsi_ses.h	Wed May  2 06:58:44 2012	(r234913)
@@ -101,6 +101,7 @@ typedef struct {
 #define	SESTYP_UPS		0x0b
 #define	SESTYP_DISPLAY		0x0c
 #define	SESTYP_KEYPAD		0x0d
+#define	SESTYP_ENCLOSURE	0x0e
 #define	SESTYP_SCSIXVR		0x0f
 #define	SESTYP_LANGUAGE		0x10
 #define	SESTYP_COMPORT		0x11
@@ -109,6 +110,9 @@ typedef struct {
 #define	SESTYP_SCSI_TGT		0x14
 #define	SESTYP_SCSI_INI		0x15
 #define	SESTYP_SUBENC		0x16
+#define	SESTYP_ARRAY		0x17
+#define	SESTYP_SASEXPANDER	0x18
+#define	SESTYP_SASCONNECTOR	0x19
 
 /*
  * Overall Enclosure Status



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205020658.q426wiFI070037>