Print this page
OS-1997 mpt_sas: expose LED controls to libtopo
Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_ioctl.h
          +++ new/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_ioctl.h
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68  #define MPTIOCTL_UPDATE_FLASH           (MPTIOCTL | 2)
  69   69  #define MPTIOCTL_RESET_ADAPTER          (MPTIOCTL | 3)
  70   70  #define MPTIOCTL_PASS_THRU              (MPTIOCTL | 4)
  71   71  #define MPTIOCTL_EVENT_QUERY            (MPTIOCTL | 5)
  72   72  #define MPTIOCTL_EVENT_ENABLE           (MPTIOCTL | 6)
  73   73  #define MPTIOCTL_EVENT_REPORT           (MPTIOCTL | 7)
  74   74  #define MPTIOCTL_GET_PCI_INFO           (MPTIOCTL | 8)
  75   75  #define MPTIOCTL_DIAG_ACTION            (MPTIOCTL | 9)
  76   76  #define MPTIOCTL_REG_ACCESS             (MPTIOCTL | 10)
  77   77  #define MPTIOCTL_GET_DISK_INFO          (MPTIOCTL | 11)
       78 +#define MPTIOCTL_LED_CONTROL            (MPTIOCTL | 12)
  78   79  
  79   80  /*
  80   81   *  The following are our ioctl() return status values.  If everything went
  81   82   *  well, we return good status.  If the buffer length sent to us is too short
  82   83   *  we return a status to tell the user.
  83   84   */
  84   85  #define MPTIOCTL_STATUS_GOOD            0
  85   86  #define MPTIOCTL_STATUS_LEN_TOO_SHORT   1
  86   87  
  87   88  typedef struct mptsas_pci_bits
↓ open down ↓ 234 lines elided ↑ open up ↑
 322  323  
 323  324  typedef struct mptsas_get_disk_info32
 324  325  {
 325  326          uint16_t                DiskCount;
 326  327          caddr32_t               PtrDiskInfoArray;
 327  328          uint64_t                DiskInfoArraySize;
 328  329  } mptsas_get_disk_info32_t;
 329  330  
 330  331  #endif /* _KERNEL */
 331  332  
      333 +/*
      334 + * LED Control
      335 + */
      336 +
      337 +typedef struct mptsas_led_control
      338 +{
      339 +        uint8_t         Command;
      340 +        uint16_t        Enclosure;
      341 +        uint16_t        Slot;
      342 +        uint8_t         Led;
      343 +        uint8_t         LedStatus;
      344 +} mptsas_led_control_t;
      345 +
      346 +#define MPTSAS_LEDCTL_FLAG_SET          1
      347 +#define MPTSAS_LEDCTL_FLAG_GET          2
      348 +
      349 +#define MPTSAS_LEDCTL_LED_IDENT         1
      350 +#define MPTSAS_LEDCTL_LED_FAIL          2
      351 +#define MPTSAS_LEDCTL_LED_OK2RM         3
      352 +
 332  353  #ifdef  __cplusplus
 333  354  }
 334  355  #endif
 335  356  
 336  357  #endif  /* _MPTSAS_IOCTL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX