mpi_raid.h (102599) | mpi_raid.h (115778) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_raid.h 102599 2002-08-30 03:36:50Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_raid.h 115778 2003-06-03 17:47:48Z mjacob $ */ |
2/* 3 * Copyright (c) 2000, 2001 by LSI Logic Corporation 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice immediately at the beginning of the file, without modification, --- 13 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * 27 * Name: MPI_RAID.H 28 * Title: MPI RAID message and structures 29 * Creation Date: February 27, 2001 30 * | 2/* 3 * Copyright (c) 2000, 2001 by LSI Logic Corporation 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice immediately at the beginning of the file, without modification, --- 13 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * 27 * Name: MPI_RAID.H 28 * Title: MPI RAID message and structures 29 * Creation Date: February 27, 2001 30 * |
31 * MPI Version: 01.02.04 | 31 * MPI_RAID.H Version: 01.02.09 |
32 * 33 * Version History 34 * --------------- 35 * 36 * Date Version Description 37 * -------- -------- ------------------------------------------------------ 38 * 02-27-01 01.01.01 Original release for this file. 39 * 03-27-01 01.01.02 Added structure offset comments. 40 * 08-08-01 01.02.01 Original release for v1.2 work. 41 * 09-28-01 01.02.02 Major rework for MPI v1.2 Integrated RAID changes. 42 * 10-04-01 01.02.03 Added ActionData defines for 43 * MPI_RAID_ACTION_DELETE_VOLUME action. 44 * 11-01-01 01.02.04 Added define for MPI_RAID_ACTION_ADATA_DO_NOT_SYNC. | 32 * 33 * Version History 34 * --------------- 35 * 36 * Date Version Description 37 * -------- -------- ------------------------------------------------------ 38 * 02-27-01 01.01.01 Original release for this file. 39 * 03-27-01 01.01.02 Added structure offset comments. 40 * 08-08-01 01.02.01 Original release for v1.2 work. 41 * 09-28-01 01.02.02 Major rework for MPI v1.2 Integrated RAID changes. 42 * 10-04-01 01.02.03 Added ActionData defines for 43 * MPI_RAID_ACTION_DELETE_VOLUME action. 44 * 11-01-01 01.02.04 Added define for MPI_RAID_ACTION_ADATA_DO_NOT_SYNC. |
45 * 03-14-02 01.02.05 Added define for MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT. 46 * 05-07-02 01.02.06 Added define for MPI_RAID_ACTION_ACTIVATE_VOLUME, 47 * MPI_RAID_ACTION_INACTIVATE_VOLUME, and 48 * MPI_RAID_ACTION_ADATA_INACTIVATE_ALL. 49 * 07-12-02 01.02.07 Added structures for Mailbox request and reply. 50 * 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST. 51 * 04-01-03 01.02.09 New action data option flag for 52 * MPI_RAID_ACTION_DELETE_VOLUME. |
|
45 * -------------------------------------------------------------------------- 46 */ 47 48#ifndef MPI_RAID_H 49#define MPI_RAID_H 50 51 52/****************************************************************************** --- 38 unchanged lines hidden (view full) --- 91#define MPI_RAID_ACTION_CHANGE_VOLUME_SETTINGS (0x08) 92#define MPI_RAID_ACTION_PHYSDISK_OFFLINE (0x0A) 93#define MPI_RAID_ACTION_PHYSDISK_ONLINE (0x0B) 94#define MPI_RAID_ACTION_CHANGE_PHYSDISK_SETTINGS (0x0C) 95#define MPI_RAID_ACTION_CREATE_PHYSDISK (0x0D) 96#define MPI_RAID_ACTION_DELETE_PHYSDISK (0x0E) 97#define MPI_RAID_ACTION_FAIL_PHYSDISK (0x0F) 98#define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10) | 53 * -------------------------------------------------------------------------- 54 */ 55 56#ifndef MPI_RAID_H 57#define MPI_RAID_H 58 59 60/****************************************************************************** --- 38 unchanged lines hidden (view full) --- 99#define MPI_RAID_ACTION_CHANGE_VOLUME_SETTINGS (0x08) 100#define MPI_RAID_ACTION_PHYSDISK_OFFLINE (0x0A) 101#define MPI_RAID_ACTION_PHYSDISK_ONLINE (0x0B) 102#define MPI_RAID_ACTION_CHANGE_PHYSDISK_SETTINGS (0x0C) 103#define MPI_RAID_ACTION_CREATE_PHYSDISK (0x0D) 104#define MPI_RAID_ACTION_DELETE_PHYSDISK (0x0E) 105#define MPI_RAID_ACTION_FAIL_PHYSDISK (0x0F) 106#define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10) |
107#define MPI_RAID_ACTION_ACTIVATE_VOLUME (0x11) 108#define MPI_RAID_ACTION_INACTIVATE_VOLUME (0x12) |
|
99 100/* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */ 101#define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001) | 109 110/* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */ 111#define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001) |
112#define MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT (0x00000002) |
|
102 103/* ActionDataWord defines for use with MPI_RAID_ACTION_DELETE_VOLUME action */ 104#define MPI_RAID_ACTION_ADATA_KEEP_PHYS_DISKS (0x00000000) 105#define MPI_RAID_ACTION_ADATA_DEL_PHYS_DISKS (0x00000001) 106 | 113 114/* ActionDataWord defines for use with MPI_RAID_ACTION_DELETE_VOLUME action */ 115#define MPI_RAID_ACTION_ADATA_KEEP_PHYS_DISKS (0x00000000) 116#define MPI_RAID_ACTION_ADATA_DEL_PHYS_DISKS (0x00000001) 117 |
118#define MPI_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000) 119#define MPI_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000002) |
|
107 | 120 |
121/* ActionDataWord defines for use with MPI_RAID_ACTION_ACTIVATE_VOLUME action */ 122#define MPI_RAID_ACTION_ADATA_INACTIVATE_ALL (0x00000001) 123 124 |
|
108/* RAID Action reply message */ 109 110typedef struct _MSG_RAID_ACTION_REPLY 111{ 112 U8 Action; /* 00h */ 113 U8 Reserved; /* 01h */ 114 U8 MsgLength; /* 02h */ 115 U8 Function; /* 03h */ --- 73 unchanged lines hidden (view full) --- 189 U32 IOCLogInfo; /* 10h */ 190 U32 TransferCount; /* 14h */ 191 U32 SenseCount; /* 18h */ 192 U32 ResponseInfo; /* 1Ch */ 193} MSG_SCSI_IO_RAID_PT_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REPLY, 194 SCSIIORaidPassthroughReply_t, MPI_POINTER pSCSIIORaidPassthroughReply_t; 195 196 | 125/* RAID Action reply message */ 126 127typedef struct _MSG_RAID_ACTION_REPLY 128{ 129 U8 Action; /* 00h */ 130 U8 Reserved; /* 01h */ 131 U8 MsgLength; /* 02h */ 132 U8 Function; /* 03h */ --- 73 unchanged lines hidden (view full) --- 206 U32 IOCLogInfo; /* 10h */ 207 U32 TransferCount; /* 14h */ 208 U32 SenseCount; /* 18h */ 209 U32 ResponseInfo; /* 1Ch */ 210} MSG_SCSI_IO_RAID_PT_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REPLY, 211 SCSIIORaidPassthroughReply_t, MPI_POINTER pSCSIIORaidPassthroughReply_t; 212 213 |
214/****************************************************************************/ 215/* Mailbox reqeust structure */ 216/****************************************************************************/ 217 218typedef struct _MSG_MAILBOX_REQUEST 219{ 220 U16 Reserved1; 221 U8 ChainOffset; 222 U8 Function; 223 U16 Reserved2; 224 U8 Reserved3; 225 U8 MsgFlags; 226 U32 MsgContext; 227 U8 Command[10]; 228 U16 Reserved4; 229 SGE_IO_UNION SGL; 230} MSG_MAILBOX_REQUEST, MPI_POINTER PTR_MSG_MAILBOX_REQUEST, 231 MailboxRequest_t, MPI_POINTER pMailboxRequest_t; 232 233 234/* Mailbox reply structure */ 235typedef struct _MSG_MAILBOX_REPLY 236{ 237 U16 Reserved1; /* 00h */ 238 U8 MsgLength; /* 02h */ 239 U8 Function; /* 03h */ 240 U16 Reserved2; /* 04h */ 241 U8 Reserved3; /* 06h */ 242 U8 MsgFlags; /* 07h */ 243 U32 MsgContext; /* 08h */ 244 U16 MailboxStatus; /* 0Ch */ 245 U16 IOCStatus; /* 0Eh */ 246 U32 IOCLogInfo; /* 10h */ 247 U32 Reserved4; /* 14h */ 248} MSG_MAILBOX_REPLY, MPI_POINTER PTR_MSG_MAILBOX_REPLY, 249 MailboxReply_t, MPI_POINTER pMailboxReply_t; 250 |
|
197#endif 198 199 200 | 251#endif 252 253 254 |