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

This commit is contained in:
Alexander Motin 2011-05-27 03:23:39 +00:00
parent 99f6ac66ad
commit e13ca5c0a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222336
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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