xref: /onnv-gate/usr/src/lib/libraidcfg/common/llib-lraidcfg (revision 3457:95f0a08d05e5)
1*3457Sjc156560/*
2*3457Sjc156560 * CDDL HEADER START
3*3457Sjc156560 *
4*3457Sjc156560 * The contents of this file are subject to the terms of the
5*3457Sjc156560 * Common Development and Distribution License (the "License").
6*3457Sjc156560 * You may not use this file except in compliance with the License.
7*3457Sjc156560 *
8*3457Sjc156560 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3457Sjc156560 * or http://www.opensolaris.org/os/licensing.
10*3457Sjc156560 * See the License for the specific language governing permissions
11*3457Sjc156560 * and limitations under the License.
12*3457Sjc156560 *
13*3457Sjc156560 * When distributing Covered Code, include this CDDL HEADER in each
14*3457Sjc156560 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3457Sjc156560 * If applicable, add the following below this CDDL HEADER, with the
16*3457Sjc156560 * fields enclosed by brackets "[]" replaced with your own identifying
17*3457Sjc156560 * information: Portions Copyright [yyyy] [name of copyright owner]
18*3457Sjc156560 *
19*3457Sjc156560 * CDDL HEADER END
20*3457Sjc156560 */
21*3457Sjc156560/*LINTLIBRARY*/
22*3457Sjc156560/*PROTOLIB1*/
23*3457Sjc156560
24*3457Sjc156560/*
25*3457Sjc156560 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
26*3457Sjc156560 * Use is subject to license terms.
27*3457Sjc156560 */
28*3457Sjc156560
29*3457Sjc156560#pragma ident	"%Z%%M%	%I%	%E% SMI"
30*3457Sjc156560
31*3457Sjc156560#include <raidcfg.h>
32*3457Sjc156560
33*3457Sjc156560const char *
34*3457Sjc156560raidcfg_errstr(
35*3457Sjc156560	int err_code);
36*3457Sjc156560
37*3457Sjc156560int
38*3457Sjc156560raidcfg_get_controller(
39*3457Sjc156560	uint32_t controller_id);
40*3457Sjc156560
41*3457Sjc156560int
42*3457Sjc156560raidcfg_get_array(
43*3457Sjc156560	int controller_handle,
44*3457Sjc156560	uint64_t target_id,
45*3457Sjc156560	uint64_t lun);
46*3457Sjc156560
47*3457Sjc156560int
48*3457Sjc156560raidcfg_get_disk(
49*3457Sjc156560	int controller_handle,
50*3457Sjc156560	disk_tag_t tag);
51*3457Sjc156560
52*3457Sjc156560int
53*3457Sjc156560raidcfg_open_controller(
54*3457Sjc156560	int handle,
55*3457Sjc156560	char **plugin_err_str);
56*3457Sjc156560
57*3457Sjc156560int
58*3457Sjc156560raidcfg_close_controller(
59*3457Sjc156560	int handle,
60*3457Sjc156560	char **plugin_err_str);
61*3457Sjc156560
62*3457Sjc156560int
63*3457Sjc156560raidcfg_get_type(
64*3457Sjc156560	int handle);
65*3457Sjc156560
66*3457Sjc156560int
67*3457Sjc156560raidcfg_get_attr(
68*3457Sjc156560	int handle,
69*3457Sjc156560	void *attr);
70*3457Sjc156560
71*3457Sjc156560int
72*3457Sjc156560raidcfg_get_container(
73*3457Sjc156560	int handle);
74*3457Sjc156560
75*3457Sjc156560int
76*3457Sjc156560raidcfg_list_head(
77*3457Sjc156560	int handle,
78*3457Sjc156560	raid_obj_type_id_t type);
79*3457Sjc156560
80*3457Sjc156560int
81*3457Sjc156560raidcfg_list_next(
82*3457Sjc156560	int handle);
83*3457Sjc156560
84*3457Sjc156560int
85*3457Sjc156560raidcfg_set_attr(
86*3457Sjc156560	int handle,
87*3457Sjc156560	uint32_t set_cmd,
88*3457Sjc156560	void *value,
89*3457Sjc156560	char **plugin_err_str);
90*3457Sjc156560
91*3457Sjc156560int
92*3457Sjc156560raidcfg_update_fw(
93*3457Sjc156560	int handle,
94*3457Sjc156560	char *file,
95*3457Sjc156560	char **plugin_err_str);
96*3457Sjc156560
97*3457Sjc156560int
98*3457Sjc156560raidcfg_create_array(
99*3457Sjc156560	int num_of_comps,
100*3457Sjc156560	int *disk_handles,
101*3457Sjc156560	uint32_t raid_level,
102*3457Sjc156560	uint64_t size,
103*3457Sjc156560	uint32_t stripe_size,
104*3457Sjc156560	char **plugin_err_str);
105*3457Sjc156560
106*3457Sjc156560int
107*3457Sjc156560raidcfg_delete_array(
108*3457Sjc156560	int array_handle,
109*3457Sjc156560	char **plugin_err_str);
110*3457Sjc156560
111*3457Sjc156560int
112*3457Sjc156560raidcfg_set_hsp(
113*3457Sjc156560	int num,
114*3457Sjc156560	raidcfg_hsp_relation_t *hsp_relations,
115*3457Sjc156560	char **plugin_err_str);
116*3457Sjc156560
117*3457Sjc156560int
118*3457Sjc156560raidcfg_unset_hsp(
119*3457Sjc156560	int num,
120*3457Sjc156560	raidcfg_hsp_relation_t *hsp_relations,
121*3457Sjc156560	char **plugin_err_str);
122*3457Sjc156560
123