/*
* 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 (c) 2013, Joyent, Inc. All rights reserved.
*/
#ifndef _DISK_H
#define _DISK_H
#include <fm/topo_mod.h>
#include <libdevinfo.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Topo plugin version */
/* Max. number of devices for thumper */
/* Properties added to the "storage" pgroup: */
/*
* Properties for binding group: The binding group required in platform
* specific xml that describes 'bay' nodes containing internal disks.
*/
/*
* The binding group required in platform specific xml that describes 'bay'
* nodes containing disks attached to an HBA using the 'mpt_sas' driver.
*/
/*
* device node information.
*/
typedef struct dev_di_node {
/* the following two fields are always defined */
/*
* the ppath count also indicates number of target port and
* possible number of attached port and bridge port.
*/
int ddn_ppath_count;
char *ddn_model;
char *ddn_serial;
char *ddn_firm;
char *ddn_cap;
struct topo_list;
/* Methods shared with the ses module (disk_common.c) */
struct topo_list *, const char *);
extern char *disk_auth_clean(topo_mod_t *, const char *);
#ifdef __cplusplus
}
#endif
#endif /* _DISK_H */