llib-lraidcfg revision 711890bc9379ceea66272dc8d4981812224ea86e
1008N/A/*
1008N/A * CDDL HEADER START
1008N/A *
1008N/A * The contents of this file are subject to the terms of the
1008N/A * Common Development and Distribution License (the "License").
1008N/A * You may not use this file except in compliance with the License.
1008N/A *
1008N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1008N/A * or http://www.opensolaris.org/os/licensing.
1008N/A * See the License for the specific language governing permissions
1008N/A * and limitations under the License.
1008N/A *
1008N/A * When distributing Covered Code, include this CDDL HEADER in each
1008N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1008N/A * If applicable, add the following below this CDDL HEADER, with the
1008N/A * fields enclosed by brackets "[]" replaced with your own identifying
1008N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1008N/A *
1008N/A * CDDL HEADER END
1008N/A */
1008N/A/*LINTLIBRARY*/
1008N/A/*PROTOLIB1*/
1008N/A
1008N/A/*
1008N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1008N/A * Use is subject to license terms.
1008N/A */
1008N/A
1008N/A#pragma ident "%Z%%M% %I% %E% SMI"
1008N/A
1008N/A#include <raidcfg.h>
1008N/A
1008N/Aconst char *
1008N/Araidcfg_errstr(
1008N/A int err_code);
1008N/A
1008N/Aint
1008N/Araidcfg_get_controller(
1008N/A uint32_t controller_id);
1008N/A
1008N/Aint
1008N/Araidcfg_get_array(
1008N/A int controller_handle,
1008N/A uint64_t target_id,
1008N/A uint64_t lun);
1008N/A
1008N/Aint
1008N/Araidcfg_get_disk(
1008N/A int controller_handle,
1008N/A disk_tag_t tag);
1008N/A
1008N/Aint
1008N/Araidcfg_open_controller(
1008N/A int handle,
1008N/A char **plugin_err_str);
1008N/A
1008N/Aint
1008N/Araidcfg_close_controller(
1008N/A int handle,
1008N/A char **plugin_err_str);
1008N/A
1008N/Aint
1008N/Araidcfg_get_type(
1008N/A int handle);
1008N/A
1008N/Aint
1008N/Araidcfg_get_attr(
1008N/A int handle,
1008N/A void *attr);
1008N/A
1008N/Aint
1128N/Araidcfg_get_container(
1128N/A int handle);
1128N/A
1128N/Aint
1128N/Araidcfg_list_head(
1884N/A int handle,
1884N/A raid_obj_type_id_t type);
1884N/A
1128N/Aint
1128N/Araidcfg_list_next(
1128N/A int handle);
1008N/A
1008N/Aint
1008N/Araidcfg_set_attr(
1008N/A int handle,
1008N/A uint32_t set_cmd,
1128N/A void *value,
char **plugin_err_str);
int
raidcfg_update_fw(
int handle,
char *file,
char **plugin_err_str);
int
raidcfg_create_array(
int num_of_comps,
int *disk_handles,
uint32_t raid_level,
uint64_t size,
uint32_t stripe_size,
char **plugin_err_str);
int
raidcfg_delete_array(
int array_handle,
char **plugin_err_str);
int
raidcfg_set_hsp(
int num,
raidcfg_hsp_relation_t *hsp_relations,
char **plugin_err_str);
int
raidcfg_unset_hsp(
int num,
raidcfg_hsp_relation_t *hsp_relations,
char **plugin_err_str);