Print this page
LOCAL: mpt_sas: store LED state, expose via ioctl

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_var.h
          +++ new/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_var.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
       25 + * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  25   26   */
  26   27  
  27   28  /*
  28   29   * Copyright (c) 2000 to 2010, LSI Corporation.
  29   30   * All rights reserved.
  30   31   *
  31   32   * Redistribution and use in source and binary forms of all code within
  32   33   * this file that is exclusively owned by LSI, with or without
  33   34   * modification, is permitted provided that, in addition to the CDDL 1.0
  34   35   * License requirements, the following conditions are met:
↓ open down ↓ 166 lines elided ↑ open up ↑
 201  202                  int32_t                 m_t_throttle;
 202  203                  int32_t                 m_t_ncmds;
 203  204                  int32_t                 m_reset_delay;
 204  205                  int32_t                 m_t_nwait;
 205  206  
 206  207                  uint16_t                m_qfull_retry_interval;
 207  208                  uint8_t                 m_qfull_retries;
 208  209                  uint16_t                m_enclosure;
 209  210                  uint16_t                m_slot_num;
 210  211                  uint32_t                m_tgt_unconfigured;
      212 +                uint8_t                 m_led_status;
 211  213  
 212  214                  /*
 213  215                   * For the common case, the elements in this structure are
 214  216                   * protected by the per hba instance mutex. In order to make
 215  217                   * the key code path in ISR lockless, a separate mutex is
 216  218                   * introdeced to protect those shown in ISR.
 217  219                   */
 218  220                  kmutex_t                m_tgt_intr_mutex;
 219  221  
 220  222  } mptsas_target_t;
↓ open down ↓ 1251 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX