diff options
author | Eric Moore <eric.moore@lsi.com> | 2007-01-19 20:46:17 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-27 10:25:29 -0500 |
commit | eae225eb5947825bc4e845c33ded9aedd74407cf (patch) | |
tree | a5068ea6c626d3fa5124bf896c88cd69ab814541 /drivers/message/fusion/lsi/mpi_ioc.h | |
parent | 86b9c4c16a1589d05959af2d96d52a4352c6306e (diff) |
[SCSI] fusion: mpi header update - version 1.05.14
Here are the lastest mpi headers for mpt fusion driver, which defines
the firmware to driver interface.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_ioc.h')
-rw-r--r-- | drivers/message/fusion/lsi/mpi_ioc.h | 75 |
1 files changed, 72 insertions, 3 deletions
diff --git a/drivers/message/fusion/lsi/mpi_ioc.h b/drivers/message/fusion/lsi/mpi_ioc.h index 18ba407fd39..6c33e335337 100644 --- a/drivers/message/fusion/lsi/mpi_ioc.h +++ b/drivers/message/fusion/lsi/mpi_ioc.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2005 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2006 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_ioc.h | 5 | * Name: mpi_ioc.h |
6 | * Title: MPI IOC, Port, Event, FW Download, and FW Upload messages | 6 | * Title: MPI IOC, Port, Event, FW Download, and FW Upload messages |
7 | * Creation Date: August 11, 2000 | 7 | * Creation Date: August 11, 2000 |
8 | * | 8 | * |
9 | * mpi_ioc.h Version: 01.05.11 | 9 | * mpi_ioc.h Version: 01.05.12 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -98,6 +98,14 @@ | |||
98 | * Added MPI_EVENT_SAS_INIT_TABLE_OVERFLOW and event | 98 | * Added MPI_EVENT_SAS_INIT_TABLE_OVERFLOW and event |
99 | * data structure. | 99 | * data structure. |
100 | * Added MPI_EXT_IMAGE_TYPE_INITIALIZATION. | 100 | * Added MPI_EXT_IMAGE_TYPE_INITIALIZATION. |
101 | * 10-11-06 01.05.12 Added MPI_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED. | ||
102 | * Added MaxInitiators field to PortFacts reply. | ||
103 | * Added SAS Device Status Change ReasonCode for | ||
104 | * asynchronous notificaiton. | ||
105 | * Added MPI_EVENT_SAS_EXPANDER_STATUS_CHANGE and event | ||
106 | * data structure. | ||
107 | * Added new ImageType values for FWDownload and FWUpload | ||
108 | * requests. | ||
101 | * -------------------------------------------------------------------------- | 109 | * -------------------------------------------------------------------------- |
102 | */ | 110 | */ |
103 | 111 | ||
@@ -264,6 +272,7 @@ typedef struct _MSG_IOC_FACTS_REPLY | |||
264 | #define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002) | 272 | #define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002) |
265 | #define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004) | 273 | #define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004) |
266 | #define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL (0x0008) | 274 | #define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL (0x0008) |
275 | #define MPI_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED (0x0010) | ||
267 | 276 | ||
268 | #define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT (0x01) | 277 | #define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT (0x01) |
269 | #define MPI_IOCFACTS_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02) | 278 | #define MPI_IOCFACTS_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02) |
@@ -328,7 +337,8 @@ typedef struct _MSG_PORT_FACTS_REPLY | |||
328 | U16 MaxPostedCmdBuffers; /* 1Ch */ | 337 | U16 MaxPostedCmdBuffers; /* 1Ch */ |
329 | U16 MaxPersistentIDs; /* 1Eh */ | 338 | U16 MaxPersistentIDs; /* 1Eh */ |
330 | U16 MaxLanBuckets; /* 20h */ | 339 | U16 MaxLanBuckets; /* 20h */ |
331 | U16 Reserved4; /* 22h */ | 340 | U8 MaxInitiators; /* 22h */ |
341 | U8 Reserved4; /* 23h */ | ||
332 | U32 Reserved5; /* 24h */ | 342 | U32 Reserved5; /* 24h */ |
333 | } MSG_PORT_FACTS_REPLY, MPI_POINTER PTR_MSG_PORT_FACTS_REPLY, | 343 | } MSG_PORT_FACTS_REPLY, MPI_POINTER PTR_MSG_PORT_FACTS_REPLY, |
334 | PortFactsReply_t, MPI_POINTER pPortFactsReply_t; | 344 | PortFactsReply_t, MPI_POINTER pPortFactsReply_t; |
@@ -487,6 +497,7 @@ typedef struct _MSG_EVENT_ACK_REPLY | |||
487 | #define MPI_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE (0x00000018) | 497 | #define MPI_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE (0x00000018) |
488 | #define MPI_EVENT_SAS_INIT_TABLE_OVERFLOW (0x00000019) | 498 | #define MPI_EVENT_SAS_INIT_TABLE_OVERFLOW (0x00000019) |
489 | #define MPI_EVENT_SAS_SMP_ERROR (0x0000001A) | 499 | #define MPI_EVENT_SAS_SMP_ERROR (0x0000001A) |
500 | #define MPI_EVENT_SAS_EXPANDER_STATUS_CHANGE (0x0000001B) | ||
490 | #define MPI_EVENT_LOG_ENTRY_ADDED (0x00000021) | 501 | #define MPI_EVENT_LOG_ENTRY_ADDED (0x00000021) |
491 | 502 | ||
492 | /* AckRequired field values */ | 503 | /* AckRequired field values */ |
@@ -593,6 +604,7 @@ typedef struct _EVENT_DATA_SAS_DEVICE_STATUS_CHANGE | |||
593 | #define MPI_EVENT_SAS_DEV_STAT_RC_ABORT_TASK_SET_INTERNAL (0x0A) | 604 | #define MPI_EVENT_SAS_DEV_STAT_RC_ABORT_TASK_SET_INTERNAL (0x0A) |
594 | #define MPI_EVENT_SAS_DEV_STAT_RC_CLEAR_TASK_SET_INTERNAL (0x0B) | 605 | #define MPI_EVENT_SAS_DEV_STAT_RC_CLEAR_TASK_SET_INTERNAL (0x0B) |
595 | #define MPI_EVENT_SAS_DEV_STAT_RC_QUERY_TASK_INTERNAL (0x0C) | 606 | #define MPI_EVENT_SAS_DEV_STAT_RC_QUERY_TASK_INTERNAL (0x0C) |
607 | #define MPI_EVENT_SAS_DEV_STAT_RC_ASYNC_NOTIFICATION (0x0D) | ||
596 | 608 | ||
597 | 609 | ||
598 | /* SCSI Event data for Queue Full event */ | 610 | /* SCSI Event data for Queue Full event */ |
@@ -895,6 +907,54 @@ typedef struct _EVENT_DATA_SAS_INIT_TABLE_OVERFLOW | |||
895 | MpiEventDataSasInitTableOverflow_t, | 907 | MpiEventDataSasInitTableOverflow_t, |
896 | MPI_POINTER pMpiEventDataSasInitTableOverflow_t; | 908 | MPI_POINTER pMpiEventDataSasInitTableOverflow_t; |
897 | 909 | ||
910 | /* SAS Expander Status Change Event data */ | ||
911 | |||
912 | typedef struct _EVENT_DATA_SAS_EXPANDER_STATUS_CHANGE | ||
913 | { | ||
914 | U8 ReasonCode; /* 00h */ | ||
915 | U8 Reserved1; /* 01h */ | ||
916 | U16 Reserved2; /* 02h */ | ||
917 | U8 PhysicalPort; /* 04h */ | ||
918 | U8 Reserved3; /* 05h */ | ||
919 | U16 EnclosureHandle; /* 06h */ | ||
920 | U64 SASAddress; /* 08h */ | ||
921 | U32 DiscoveryStatus; /* 10h */ | ||
922 | U16 DevHandle; /* 14h */ | ||
923 | U16 ParentDevHandle; /* 16h */ | ||
924 | U16 ExpanderChangeCount; /* 18h */ | ||
925 | U16 ExpanderRouteIndexes; /* 1Ah */ | ||
926 | U8 NumPhys; /* 1Ch */ | ||
927 | U8 SASLevel; /* 1Dh */ | ||
928 | U8 Flags; /* 1Eh */ | ||
929 | U8 Reserved4; /* 1Fh */ | ||
930 | } EVENT_DATA_SAS_EXPANDER_STATUS_CHANGE, | ||
931 | MPI_POINTER PTR_EVENT_DATA_SAS_EXPANDER_STATUS_CHANGE, | ||
932 | MpiEventDataSasExpanderStatusChange_t, | ||
933 | MPI_POINTER pMpiEventDataSasExpanderStatusChange_t; | ||
934 | |||
935 | /* values for ReasonCode field of SAS Expander Status Change Event data */ | ||
936 | #define MPI_EVENT_SAS_EXP_RC_ADDED (0x00) | ||
937 | #define MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING (0x01) | ||
938 | |||
939 | /* values for DiscoveryStatus field of SAS Expander Status Change Event data */ | ||
940 | #define MPI_EVENT_SAS_EXP_DS_LOOP_DETECTED (0x00000001) | ||
941 | #define MPI_EVENT_SAS_EXP_DS_UNADDRESSABLE_DEVICE (0x00000002) | ||
942 | #define MPI_EVENT_SAS_EXP_DS_MULTIPLE_PORTS (0x00000004) | ||
943 | #define MPI_EVENT_SAS_EXP_DS_EXPANDER_ERR (0x00000008) | ||
944 | #define MPI_EVENT_SAS_EXP_DS_SMP_TIMEOUT (0x00000010) | ||
945 | #define MPI_EVENT_SAS_EXP_DS_OUT_ROUTE_ENTRIES (0x00000020) | ||
946 | #define MPI_EVENT_SAS_EXP_DS_INDEX_NOT_EXIST (0x00000040) | ||
947 | #define MPI_EVENT_SAS_EXP_DS_SMP_FUNCTION_FAILED (0x00000080) | ||
948 | #define MPI_EVENT_SAS_EXP_DS_SMP_CRC_ERROR (0x00000100) | ||
949 | #define MPI_EVENT_SAS_EXP_DS_SUBTRACTIVE_LINK (0x00000200) | ||
950 | #define MPI_EVENT_SAS_EXP_DS_TABLE_LINK (0x00000400) | ||
951 | #define MPI_EVENT_SAS_EXP_DS_UNSUPPORTED_DEVICE (0x00000800) | ||
952 | |||
953 | /* values for Flags field of SAS Expander Status Change Event data */ | ||
954 | #define MPI_EVENT_SAS_EXP_FLAGS_ROUTE_TABLE_CONFIG (0x02) | ||
955 | #define MPI_EVENT_SAS_EXP_FLAGS_CONFIG_IN_PROGRESS (0x01) | ||
956 | |||
957 | |||
898 | 958 | ||
899 | /***************************************************************************** | 959 | /***************************************************************************** |
900 | * | 960 | * |
@@ -926,6 +986,10 @@ typedef struct _MSG_FW_DOWNLOAD | |||
926 | #define MPI_FW_DOWNLOAD_ITYPE_BIOS (0x02) | 986 | #define MPI_FW_DOWNLOAD_ITYPE_BIOS (0x02) |
927 | #define MPI_FW_DOWNLOAD_ITYPE_NVDATA (0x03) | 987 | #define MPI_FW_DOWNLOAD_ITYPE_NVDATA (0x03) |
928 | #define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER (0x04) | 988 | #define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER (0x04) |
989 | #define MPI_FW_DOWNLOAD_ITYPE_MANUFACTURING (0x06) | ||
990 | #define MPI_FW_DOWNLOAD_ITYPE_CONFIG_1 (0x07) | ||
991 | #define MPI_FW_DOWNLOAD_ITYPE_CONFIG_2 (0x08) | ||
992 | #define MPI_FW_DOWNLOAD_ITYPE_MEGARAID (0x09) | ||
929 | 993 | ||
930 | 994 | ||
931 | typedef struct _FWDownloadTCSGE | 995 | typedef struct _FWDownloadTCSGE |
@@ -980,6 +1044,11 @@ typedef struct _MSG_FW_UPLOAD | |||
980 | #define MPI_FW_UPLOAD_ITYPE_NVDATA (0x03) | 1044 | #define MPI_FW_UPLOAD_ITYPE_NVDATA (0x03) |
981 | #define MPI_FW_UPLOAD_ITYPE_BOOTLOADER (0x04) | 1045 | #define MPI_FW_UPLOAD_ITYPE_BOOTLOADER (0x04) |
982 | #define MPI_FW_UPLOAD_ITYPE_FW_BACKUP (0x05) | 1046 | #define MPI_FW_UPLOAD_ITYPE_FW_BACKUP (0x05) |
1047 | #define MPI_FW_UPLOAD_ITYPE_MANUFACTURING (0x06) | ||
1048 | #define MPI_FW_UPLOAD_ITYPE_CONFIG_1 (0x07) | ||
1049 | #define MPI_FW_UPLOAD_ITYPE_CONFIG_2 (0x08) | ||
1050 | #define MPI_FW_UPLOAD_ITYPE_MEGARAID (0x09) | ||
1051 | #define MPI_FW_UPLOAD_ITYPE_COMPLETE (0x0A) | ||
983 | 1052 | ||
984 | typedef struct _FWUploadTCSGE | 1053 | typedef struct _FWUploadTCSGE |
985 | { | 1054 | { |