Print this page
NEX-3705 Need to update libses with LID/USN code from sesctld
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/generic/inquiry.h
          +++ new/usr/src/uts/common/sys/scsi/generic/inquiry.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _SYS_SCSI_GENERIC_INQUIRY_H
  27   28  #define _SYS_SCSI_GENERIC_INQUIRY_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  /*
↓ open down ↓ 340 lines elided ↑ open up ↑
 374  375  
 375  376  /*
 376  377   * Defined Target Port Group Select values:
 377  378   */
 378  379  #define TPGS_FAILOVER_NONE      0x0
 379  380  #define TPGS_FAILOVER_IMPLICIT  0x1
 380  381  #define TPGS_FAILOVER_EXPLICIT  0x2
 381  382  #define TPGS_FAILOVER_BOTH      0x3
 382  383  
 383  384  /*
      385 + * VPD page code macros:
      386 + */
      387 +#define DEV_ID_VPD_PAGE_CODE 0x83 /* this page is mandatory */
      388 +#define USN_VPD_PAGE_CODE 0x80
      389 +
      390 +/*
 384  391   * SPC-3 revision 21c, section 7.6.4.1
 385  392   * Table 289 -- Device Identification VPD page
 386  393   */
 387  394  struct vpd_hdr {
 388  395  #if defined(_BIT_FIELDS_LTOH)
 389  396          uchar_t device_type     : 4,
 390  397                  periph_qual     : 4;
 391  398  #elif defined(_BIT_FIELDS_HTOL)
 392  399          uchar_t periph_qual     : 4,
 393  400                  device_type     : 4;
↓ open down ↓ 64 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX