/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SYS_SCSI_IMPL_SCSI_SAS_H
#define _SYS_SCSI_IMPL_SCSI_SAS_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_KERNEL)
/*
* Phymap support
*/
typedef void (*sas_phymap_activate_cb_t)
typedef void (*sas_phymap_deactivate_cb_t)
int settle_usec,
void *mode_argument,
void *phymap_priv,
sas_phymap_t **phymapp);
int phy,
int phy);
char *ua);
int phy);
void sas_phymap_ua_free(char *);
char *ua);
char *ua);
#endif /* defined(_KERNEL) */
/*
* Format of the ks_name field for SAS Phy Stat
*
* driver_name.initiator_port_SAS_address.initiator_port_instance_number.phyid
* Example: pmcs.5000c50000d756aa.2.0
*
* driver_name:
* driver name from di_driver_name() on SAS initiator port devinfo node.
*
* initiator_port_SAS_address:
* SAS address of the initiator port that phy stat is reported for.
*
* initiator_port_instance_number:
* instance number of the initiator port that phy stat is reported for.
*
* phyid:
* prop phyIdentifier under initiator port node.
*/
/* Port Protocol - kstat structure definition */
typedef struct sas_port_protocol_stats {
/* Port - kstat structure definition */
typedef struct sas_port_stats {
/* PHY - kstat structure definition */
typedef struct sas_phy_stats {
/*
* Supported Protocol property
*/
/*
* Definition - Negotiated Physical Link Rate
* Based on Table 288 (Section 10.4.3.10) of the spec (SAS-2 r-15), these
* constants represent "Negotiated physical link rate"
* (and implicitly the State of the phy).
*/
/* Speed is unknown */
/* Speed is undefined */
/* Failed speed negotiation. */
/* Detected a SATA device and */
/* entered the SATA Spinup hold */
/* state */
/* The phy is attached to a */
/* Port Selector (SATA-2.6). */
/* Expander is performing SMP */
/* Unsupported phy settings */
/*
* Definition - "phy-info" property
*
* The property is an nvlist_array that represents an array of the
* nvlists on a per HBA basis. The individual elements of the array
* (the nvlists) represent the following properties for each phy of the HBA
*/
/*
* Phy-mask property names for the target port, attached port and receptacle
*/
/*
* Target port depth property names - Indicates the number of expanders
* between the initiator port and the target port
*/
/*
* Event definitions
*/
/* Event Class */
/* Event Sub-Class */
/* Event Types for above Subclass */
/* Event Sub-Class */
/* Event Types for above Subclass */
/* Event Payload Names */
/* SAS_PHY_ID - Defined Above */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_IMPL_SCSI_SAS_H */