/* * 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 * or http://www.opensolaris.org/os/licensing. * 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 */ /*LINTLIBRARY*/ /*PROTOLIB1*/ /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #pragma ident "%Z%%M% %I% %E% SMI" #include const char * raidcfg_errstr( int err_code); int raidcfg_get_controller( uint32_t controller_id); int raidcfg_get_array( int controller_handle, uint64_t target_id, uint64_t lun); int raidcfg_get_disk( int controller_handle, disk_tag_t tag); int raidcfg_open_controller( int handle, char **plugin_err_str); int raidcfg_close_controller( int handle, char **plugin_err_str); int raidcfg_get_type( int handle); int raidcfg_get_attr( int handle, void *attr); int raidcfg_get_container( int handle); int raidcfg_list_head( int handle, raid_obj_type_id_t type); int raidcfg_list_next( int handle); int raidcfg_set_attr( int handle, uint32_t set_cmd, 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);