mpi_raid.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_MPI_RAID_H
#define _SYS_MPI_RAID_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* RAID Volume Request
*/
typedef struct msg_raid_action {
/* RAID Volume Action values */
#define MPI_RAID_ACTION_STATUS 0x00
#define MPI_RAID_ACTION_INDICATOR_STRUCT 0x01
#define MPI_RAID_ACTION_CREATE_VOLUME 0x02
#define MPI_RAID_ACTION_DELETE_VOLUME 0x03
#define MPI_RAID_ACTION_DISABLE_VOLUME 0x04
#define MPI_RAID_ACTION_ENABLE_VOLUME 0x05
#define MPI_RAID_ACTION_QUIESCE_PHYS_IO 0x06
#define MPI_RAID_ACTION_ENABLE_PHYS_IO 0x07
#define MPI_RAID_ACTION_CHANGE_VOLUME_SETTINGS 0x08
#define MPI_RAID_ACTION_PHYSDISK_OFFLINE 0x0A
#define MPI_RAID_ACTION_PHYSDISK_ONLINE 0x0B
#define MPI_RAID_ACTION_CHANGE_PHYSDISK_SETTINGS 0x0C
#define MPI_RAID_ACTION_CREATE_PHYSDISK 0x0D
#define MPI_RAID_ACTION_DELETE_PHYSDISK 0x0E
#define MPI_RAID_ACTION_FAIL_PHYSDISK 0x0F
#define MPI_RAID_ACTION_REPLACE_PHYSDISK 0x10
#define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC 0x00000001
#define MPI_RAID_ACTION_ADATA_KEEP_PHYS_DISKS 0x00000000
#define MPI_RAID_ACTION_ADATA_DEL_PHYS_DISKS 0x00000001
/* RAID Volume reply message */
typedef struct msg_raid_action_reply {
/* RAID Volume reply ActionStatus values */
#define MPI_RAID_VOL_ASTATUS_SUCCESS 0x0000
#define MPI_RAID_VOL_ASTATUS_INVALID_ACTION 0x0001
#define MPI_RAID_VOL_ASTATUS_FAILURE 0x0002
#define MPI_RAID_VOL_ASTATUS_IN_PROGRESS 0x0003
/* RAID Volume reply RAID Volume Indicator structure */
typedef struct mpi_raid_vol_indicator {
/*
* SCSI IO RAID Passthrough Request
*/
typedef struct msg_scsi_io_raid_pt_request {
/* SCSI IO RAID Passthrough reply structure */
typedef struct msg_scsi_io_raid_pt_reply {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MPI_RAID_H */