Author: mav
Date: Fri May 27 03:23:39 2011
New Revision: 222336
URL: http://svn.freebsd.org/changeset/base/222336

Log:
  Add names for few more SES element types according SES-2 specification.

Modified:
  head/share/examples/ses/srcs/eltsub.c
  head/sys/cam/scsi/scsi_ses.h

Modified: head/share/examples/ses/srcs/eltsub.c
==============================================================================
--- head/share/examples/ses/srcs/eltsub.c       Fri May 27 00:23:44 2011        
(r222335)
+++ head/share/examples/ses/srcs/eltsub.c       Fri May 27 03:23:39 2011        
(r222336)
@@ -85,6 +85,9 @@ geteltnm(int 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;
@@ -109,6 +112,15 @@ geteltnm(int type)
        case SESTYP_SUBENC:
                sprintf(rbuf, "Simple sub-enclosure");
                break;
+       case SESTYP_ARRAY:
+               sprintf(rbuf, "Array device");
+               break;
+       case SESTYP_SAS_EXP:
+               sprintf(rbuf, "SAS Expender");
+               break;
+       case SESTYP_SAS_CONN:
+               sprintf(rbuf, "SAS Connector");
+               break;
        default:
                (void) sprintf(rbuf, "<Type 0x%x>", type);
                break;

Modified: head/sys/cam/scsi/scsi_ses.h
==============================================================================
--- head/sys/cam/scsi/scsi_ses.h        Fri May 27 00:23:44 2011        
(r222335)
+++ head/sys/cam/scsi/scsi_ses.h        Fri May 27 03:23:39 2011        
(r222336)
@@ -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_SAS_EXP          0x18
+#define        SESTYP_SAS_CONN         0x19
 
 /*
  * Overall Enclosure Status
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to