Print this page
968 fct driver sets incorrect fc-ct revision

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fct.h
          +++ new/usr/src/uts/common/sys/fct.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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 (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  23   24   */
  24   25  #ifndef _FCT_H
  25   26  #define _FCT_H
  26   27  
  27   28  /*
  28   29   * Definitions for common FC Target.
  29   30   */
  30   31  #include <sys/note.h>
  31   32  #include <sys/stmf_defines.h>
  32   33  #include <sys/fct_defines.h>
↓ open down ↓ 327 lines elided ↑ open up ↑
 360  361  #define FCT_ACK_PORT_OFFLINE_COMPLETE   (STMF_LPORT_CTL_CMDS | 0x06)
 361  362  #define FCT_CMD_FORCE_LIP               (STMF_LPORT_CTL_CMDS | 0x07)
 362  363  
 363  364  /*
 364  365   * IO flags for cmd flow.
 365  366   */
 366  367  #define FCT_IOF_FCA_DONE                0x10000
 367  368  #define FCT_IOF_FORCE_FCA_DONE          0x20000
 368  369  
 369  370  /*
 370      - * Fill CTIU preample
      371 + * Fill CTIU preamble
 371  372   */
 372  373  #ifdef  lint
 373      -#define FCT_FILL_CTIU_PREAMPLE(x_payload, x_ctop)       _NOTE(EMPTY)
      374 +#define FCT_FILL_CTIU_PREAMBLE(x_payload, x_ctop)       _NOTE(EMPTY)
 374  375  #else
 375      -#define FCT_FILL_CTIU_PREAMPLE(x_payload, x_ctop)       \
      376 +#define FCT_FILL_CTIU_PREAMBLE(x_payload, x_ctop)       \
 376  377          do {                                            \
 377      -                x_payload[0] = 0x02;                    \
      378 +                x_payload[0] = 0x01;                    \
 378  379                  x_payload[4] = 0xFC;                    \
 379  380                  x_payload[5] = 0x02;                    \
 380  381                  x_payload[8] = 0xFF & (x_ctop >> 8);    \
 381  382                  x_payload[9] = 0xFF & (x_ctop);         \
 382  383          } while (0)
 383  384  #endif
 384  385  
 385  386  uint64_t fct_netbuf_to_value(uint8_t *buf, uint8_t nbytes);
 386  387  void fct_value_to_netbuf(uint64_t value, uint8_t *buf, uint8_t nbytes);
 387  388  void *fct_alloc(fct_struct_id_t struct_id, int additional_size, int flags);
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX