/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_RAIDCFG_SPI_H
#define _SYS_RAIDCFG_SPI_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Controller capabilities
*/
/*
* General constants
*/
/*
* Array RAID level definition
*/
/*
* Array cache write policy
*/
#define CACHE_WR_OFF 0
/*
* Array cache read policy
*/
#define CACHE_RD_OFF 0
/*
* Array activation action
*/
#define ARRAY_ACT_ACTIVATE 0
/*
* Array status
*/
#define ARRAY_STATE_OPTIMAL 0
/*
* Array activation state
*/
/*
* Disk state
*/
#define DISK_STATE_GOOD 0
/*
* Array part state
*/
#define ARRAYPART_STATE_GOOD 0
/*
* Disk segment state
*/
/*
* Controller connection type
*/
#define TYPE_UNKNOWN 0
#define RAID_TASK_SUSPEND 0
#define HSP_TYPE_GLOBAL 0
/*
* Sub-command of set attribute
*/
#define SET_CACHE_WR_PLY 0
/*
* Sub-commands for act method of object
*/
#define ACT_CONTROLLER_OPEN 0
/*
* Some definitions
*/
/*
* Mininum array part size: 256M
*/
/*
* Return code
*/
#define SUCCESS 0
/*
* Raid object types
*/
typedef enum {
/*
* Task functions
*/
typedef enum {
/*
* Task state
*/
typedef enum {
/*
* Properties
*/
typedef enum {
/*
* Attributes of all RAID objects
*/
typedef union {
struct {
} idl;
} array_tag_t;
typedef union {
struct {
} cidl;
} disk_tag_t;
typedef struct {
typedef struct {
} array_attr_t;
typedef struct {
/* ASCII data not terminated by null */
} disk_attr_t;
typedef struct {
} hsp_attr_t;
typedef struct {
typedef struct {
typedef struct {
} task_attr_t;
typedef struct {
typedef struct {
/*
* Structure used to register plug-in modules
*/
typedef struct raid_lib_type {
void *lib_handle;
const char *name;
raid_obj_type_id_t, int, void *);
void *);
arraypart_attr_t *, char **);
} raid_lib_t;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_RAIDCFG_SPI_H */