Print this page
4233 mptsas topo change buffer overflow

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_smhba.h
          +++ new/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_smhba.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  /*
  23   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  /*
  27   28   * SM-HBA interfaces/definitions for MPT SAS driver.
  28   29   */
  29   30  
  30   31  #ifndef _MPTSAS_SMHBA_H
  31   32  #define _MPTSAS_SMHBA_H
  32   33  #ifdef  __cplusplus
  33   34  extern "C" {
↓ open down ↓ 22 lines elided ↑ open up ↑
  56   57  #define DEVINFO_DIRECT_ATTACHED 0x0800
  57   58  
  58   59  /*
  59   60   * Interfaces to add properties required for SM-HBA
  60   61   *
  61   62   * _add_xxx_prop() interfaces add only 1 prop that is specified in the args.
  62   63   * _set_xxx_props() interfaces add more than 1 prop for a set of phys/devices.
  63   64   */
  64   65  int mptsas_smhba_setup(mptsas_t *);
  65   66  void mptsas_smhba_show_phy_info(mptsas_t *);
  66      -void mptsas_smhba_set_phy_props(mptsas_t *mpt, char *iport, dev_info_t *dip,
  67      -    uint8_t phy_nums, uint16_t *attached_devhdl);
       67 +void mptsas_smhba_set_all_phy_props(mptsas_t *mpt, dev_info_t *dip,
       68 +    uint8_t phy_nums, mptsas_phymask_t phy_mask, uint16_t *attached_devhdl);
       69 +void mptsas_smhba_set_one_phy_props(mptsas_t *mpt, dev_info_t *dip,
       70 +    uint8_t phy_id, uint16_t *attached_devhdl);
  68   71  void mptsas_smhba_log_sysevent(mptsas_t *mpt, char *subclass, char *etype,
  69   72      smhba_info_t *phyp);
  70   73  void
  71   74  mptsas_create_phy_stats(mptsas_t *mpt, char *iport, dev_info_t *dip);
  72   75  int mptsas_update_phy_stats(kstat_t *ks, int rw);
  73   76  void mptsas_destroy_phy_stats(mptsas_t *mpt);
  74   77  int mptsas_smhba_phy_init(mptsas_t *mpt);
  75   78  int mptsas_smhba_phy_state_update(mptsas_t *mpt, uint8_t phy);
  76   79  #ifdef  __cplusplus
  77   80  }
  78   81  #endif
  79   82  #endif  /* _MPTSAS_SMHBA_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX