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