smp_transport.h revision 499cfd156ad653fc27397c5f021047c091dd12c5
/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SCSI_IMPL_SMP_TRANSPORT_H
#define _SYS_SCSI_IMPL_SMP_TRANSPORT_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_KERNEL)
/*
* Properties for smp device
*/
#define SMP_PROP "smp-device"
#define SMP_WWN "smp-wwn"
#define SMP_PROP_REPORT_MANUFACTURER "report-manufacturer"
typedef struct smp_hba_tran smp_hba_tran_t;
typedef struct smp_address {
typedef struct smp_device {
void *smp_sd_hba_private;
void *smp_sd_private;
} smp_device_t;
typedef struct smp_pkt {
int smp_pkt_timeout;
} smp_pkt_t;
struct smp_hba_tran {
void *smp_tran_hba_private;
int (*smp_tran_init)(
smp_device_t *smp);
void (*smp_tran_free)(
smp_device_t *smp);
int (*smp_tran_start)(
};
/* interfaces target driver (and framework) */
/* ==== The following interfaces are private (currently) ==== */
/*
* smp_device_prop_*() property interfaces: flags
*
* SMP_DEVICE_PROP_DEVICE: property of device.
* The property is always associated with the smp_sd_dev devinfo
* node. Implementation uses ndi_prop_*() interfaces applied
* dev_info_t (smp_sd_dev) nodes.
*/
#define SMP_DEVICE_PROP_TYPE_MSK 0xF
int defvalue);
int **, uint_t *);
char **);
int64_t);
int *, uint_t);
char *);
#endif /* defined(_KERNEL) */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_IMPL_SMP_TRANSPORT_H */