dadpriv.h revision a4aa671e336d5c717aff15808ab91a6bee5e6e41
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_DADA_TARGET_DADPRIV_H
#define _SYS_DADA_TARGET_DADPRIV_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* dadkio_rwcmd cmd
*/
/*
* dadkio_rwcmd flags
*/
/* generate any warning */
/* or error console msgs */
#define DADKIO_ERROR_INFO_LEN 128
/*
* dadkio_status status value.
*/
struct dadkio_status {
int status;
int failed_blk_is_valid;
int fru_code_is_valid;
int fru_code;
};
struct dadkio_status32 {
int status;
int failed_blk_is_valid;
int fru_code_is_valid;
int fru_code;
};
/*
*/
struct dadkio_rwcmd {
int cmd;
int flags;
struct dadkio_status status;
};
struct dadkio_rwcmd32 {
int cmd;
int flags;
struct dadkio_status32 status;
};
/*
* dadkio_status status values
*/
#define DADKIO_STAT_NO_ERROR 0 /* cmd was successful */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DADA_TARGET_DADPRIV_H */