f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China/*
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * CDDL HEADER START
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China *
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * The contents of this file are subject to the terms of the
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * Common Development and Distribution License (the "License").
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * You may not use this file except in compliance with the License.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China *
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * or http://www.opensolaris.org/os/licensing.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * See the License for the specific language governing permissions
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * and limitations under the License.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China *
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * When distributing Covered Code, include this CDDL HEADER in each
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * If applicable, add the following below this CDDL HEADER, with the
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * fields enclosed by brackets "[]" replaced with your own identifying
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * information: Portions Copyright [yyyy] [name of copyright owner]
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China *
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * CDDL HEADER END
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China */
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China/*
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
8b1f072cdb7c7ae7c166fc48e2f1988fc5fbb3f4Hans Rosenfeld * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China */
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China/*
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * SM-HBA interfaces/definitions for MPT SAS driver.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China */
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#ifndef _MPTSAS_SMHBA_H
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define _MPTSAS_SMHBA_H
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#ifdef __cplusplus
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinaextern "C" {
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#endif
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China/* Leverage definition of data_type_t in nvpair.h */
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#include <sys/nvpair.h>
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#include <sys/scsi/adapters/mpt_sas/mptsas_var.h>
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_NUM_PHYS "num-phys"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_NUM_PHYS_HBA "num-phys-hba"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_SMHBA_SUPPORTED "sm-hba-supported"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_DRV_VERSION "driver-version"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_HWARE_VERSION "hardware-version"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_FWARE_VERSION "firmware-version"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_SUPPORTED_PROTOCOL "supported-protocol"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_VIRTUAL_PORT "virtual-port"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_MANUFACTURER "Manufacturer"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_SERIAL_NUMBER "SerialNumber"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_MODEL_NAME "ModelName"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define MPTSAS_VARIANT "variant"
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define IS_ATAPI_DEVICE(x) ((x) & 0x2000)
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define IS_SATA_DEVICE(x) ((x) & 0x80)
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#define DEVINFO_DIRECT_ATTACHED 0x0800
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China/*
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * Interfaces to add properties required for SM-HBA
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China *
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * _add_xxx_prop() interfaces add only 1 prop that is specified in the args.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China * _set_xxx_props() interfaces add more than 1 prop for a set of phys/devices.
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China */
a9b510629bb89d580bb11ce66254ff44bf4959d1Adaint mptsas_smhba_setup(mptsas_t *);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinavoid mptsas_smhba_show_phy_info(mptsas_t *);
8b1f072cdb7c7ae7c166fc48e2f1988fc5fbb3f4Hans Rosenfeldvoid mptsas_smhba_set_all_phy_props(mptsas_t *mpt, dev_info_t *dip,
8b1f072cdb7c7ae7c166fc48e2f1988fc5fbb3f4Hans Rosenfeld uint8_t phy_nums, mptsas_phymask_t phy_mask, uint16_t *attached_devhdl);
8b1f072cdb7c7ae7c166fc48e2f1988fc5fbb3f4Hans Rosenfeldvoid mptsas_smhba_set_one_phy_props(mptsas_t *mpt, dev_info_t *dip,
8b1f072cdb7c7ae7c166fc48e2f1988fc5fbb3f4Hans Rosenfeld uint8_t phy_id, uint16_t *attached_devhdl);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinavoid mptsas_smhba_log_sysevent(mptsas_t *mpt, char *subclass, char *etype,
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China smhba_info_t *phyp);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinavoid
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinamptsas_create_phy_stats(mptsas_t *mpt, char *iport, dev_info_t *dip);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinaint mptsas_update_phy_stats(kstat_t *ks, int rw);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinavoid mptsas_destroy_phy_stats(mptsas_t *mpt);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinaint mptsas_smhba_phy_init(mptsas_t *mpt);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing Chinaint mptsas_smhba_phy_state_update(mptsas_t *mpt, uint8_t phy);
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#ifdef __cplusplus
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China}
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#endif
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China#endif /* _MPTSAS_SMHBA_H */