diff options
author | Moore, Eric <Eric.Moore@lsil.com> | 2006-01-13 18:25:23 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-14 11:55:08 -0500 |
commit | 4b915a73663fe0951077ebcdaf02337ff2bddcfc (patch) | |
tree | 7a088360af29db0e2454ca324a8cf3c0e4e3e5d1 /drivers/message/fusion/lsi/mpi_log_sas.h | |
parent | 816aa907b909177bdf6e6e6b0d00c5e5a6e2be8c (diff) |
[SCSI] fusion - mpi header udpate
This updates mpi headers in fusion drivers to version 1.5.12.
Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_log_sas.h')
-rw-r--r-- | drivers/message/fusion/lsi/mpi_log_sas.h | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/drivers/message/fusion/lsi/mpi_log_sas.h b/drivers/message/fusion/lsi/mpi_log_sas.h new file mode 100644 index 000000000000..9259d1ad6e6e --- /dev/null +++ b/drivers/message/fusion/lsi/mpi_log_sas.h | |||
@@ -0,0 +1,162 @@ | |||
1 | |||
2 | /*************************************************************************** | ||
3 | * * | ||
4 | * Copyright 2003 LSI Logic Corporation. All rights reserved. * | ||
5 | * * | ||
6 | * This file is confidential and a trade secret of LSI Logic. The * | ||
7 | * receipt of or possession of this file does not convey any rights to * | ||
8 | * reproduce or disclose its contents or to manufacture, use, or sell * | ||
9 | * anything it may describe, in whole, or in part, without the specific * | ||
10 | * written consent of LSI Logic Corporation. * | ||
11 | * * | ||
12 | *************************************************************************** | ||
13 | * | ||
14 | * Name: iopiIocLogInfo.h | ||
15 | * Title: SAS Firmware IOP Interface IOC Log Info Definitions | ||
16 | * Programmer: Guy Kendall | ||
17 | * Creation Date: September 24, 2003 | ||
18 | * | ||
19 | * Version History | ||
20 | * --------------- | ||
21 | * | ||
22 | * Last Updated | ||
23 | * ------------- | ||
24 | * Version %version: 22 % | ||
25 | * Date Updated %date_modified: % | ||
26 | * Programmer %created_by: nperucca % | ||
27 | * | ||
28 | * Date Who Description | ||
29 | * -------- --- ------------------------------------------------------- | ||
30 | * 09/24/03 GWK Initial version | ||
31 | * | ||
32 | * | ||
33 | * Description | ||
34 | * ------------ | ||
35 | * This include file contains SAS firmware interface IOC Log Info codes | ||
36 | * | ||
37 | *------------------------------------------------------------------------- | ||
38 | */ | ||
39 | |||
40 | #ifndef IOPI_IOCLOGINFO_H_INCLUDED | ||
41 | #define IOPI_IOCLOGINFO_H_INCLUDED | ||
42 | |||
43 | |||
44 | /****************************************************************************/ | ||
45 | /* IOC LOGINFO defines, 0x00000000 - 0x0FFFFFFF */ | ||
46 | /* Format: */ | ||
47 | /* Bits 31-28: MPI_IOCLOGINFO_TYPE_SAS (3) */ | ||
48 | /* Bits 27-24: IOC_LOGINFO_ORIGINATOR: 0=IOP, 1=PL, 2=IR */ | ||
49 | /* Bits 23-16: LOGINFO_CODE */ | ||
50 | /* Bits 15-0: LOGINFO_CODE Specific */ | ||
51 | /****************************************************************************/ | ||
52 | |||
53 | /****************************************************************************/ | ||
54 | /* IOC_LOGINFO_ORIGINATOR defines */ | ||
55 | /****************************************************************************/ | ||
56 | #define IOC_LOGINFO_ORIGINATOR_IOP (0x00000000) | ||
57 | #define IOC_LOGINFO_ORIGINATOR_PL (0x01000000) | ||
58 | #define IOC_LOGINFO_ORIGINATOR_IR (0x02000000) | ||
59 | |||
60 | /****************************************************************************/ | ||
61 | /* LOGINFO_CODE defines */ | ||
62 | /****************************************************************************/ | ||
63 | #define IOC_LOGINFO_CODE_MASK (0x00FF0000) | ||
64 | #define IOC_LOGINFO_CODE_SHIFT (16) | ||
65 | |||
66 | /****************************************************************************/ | ||
67 | /* IOP LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = IOP */ | ||
68 | /****************************************************************************/ | ||
69 | #define IOP_LOGINFO_CODE_INVALID_SAS_ADDRESS (0x00010000) | ||
70 | #define IOP_LOGINFO_CODE_UNUSED2 (0x00020000) | ||
71 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x00030000) | ||
72 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_RT (0x00030100) /* Route Table Entry not found */ | ||
73 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PN (0x00030200) /* Invalid Page Number */ | ||
74 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x00030300) /* Invalid FORM */ | ||
75 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x00030400) /* Invalid Page Type */ | ||
76 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DNM (0x00030500) /* Device Not Mapped */ | ||
77 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PERSIST (0x00030600) /* Persistent Page not found */ | ||
78 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DEFAULT (0x00030700) /* Default Page not found */ | ||
79 | #define IOP_LOGINFO_CODE_TASK_TERMINATED (0x00050000) | ||
80 | |||
81 | |||
82 | /****************************************************************************/ | ||
83 | /* PL LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = PL */ | ||
84 | /****************************************************************************/ | ||
85 | #define PL_LOGINFO_CODE_OPEN_FAILURE (0x00010000) | ||
86 | #define PL_LOGINFO_CODE_INVALID_SGL (0x00020000) | ||
87 | #define PL_LOGINFO_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00030000) | ||
88 | #define PL_LOGINFO_CODE_FRAME_XFER_ERROR (0x00040000) | ||
89 | #define PL_LOGINFO_CODE_TX_FM_CONNECTED_LOW (0x00050000) | ||
90 | #define PL_LOGINFO_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00060000) | ||
91 | #define PL_LOGINFO_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00070000) | ||
92 | #define PL_LOGINFO_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00080000) | ||
93 | #define PL_LOGINFO_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00090000) | ||
94 | #define PL_LOGINFO_CODE_RX_FM_INVALID_MESSAGE (0x000A0000) | ||
95 | #define PL_LOGINFO_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x000B0000) | ||
96 | #define PL_LOGINFO_CODE_RX_FM_CURRENT_FRAME_ERROR (0x000C0000) | ||
97 | #define PL_LOGINFO_CODE_SATA_LINK_DOWN (0x000D0000) | ||
98 | #define PL_LOGINFO_CODE_DISCOVERY_SATA_INIT_W_IOS (0x000E0000) | ||
99 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x000F0000) | ||
100 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x000F0100) /* Invalid Page Type */ | ||
101 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NUM_PHYS (0x000F0200) /* Invalid Number of Phys */ | ||
102 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NOT_IMP (0x000F0300) /* Case Not Handled */ | ||
103 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_DEV (0x000F0400) /* No Device Found */ | ||
104 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x000F0500) /* Invalid FORM */ | ||
105 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PHY (0x000F0600) /* Invalid Phy */ | ||
106 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_OWNER (0x000F0700) /* No Owner Found */ | ||
107 | #define PL_LOGINFO_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00100000) | ||
108 | #define PL_LOGINFO_CODE_RESET (0x00110000) | ||
109 | #define PL_LOGINFO_CODE_ABORT (0x00120000) | ||
110 | #define PL_LOGINFO_CODE_IO_NOT_YET_EXECUTED (0x00130000) | ||
111 | #define PL_LOGINFO_CODE_IO_EXECUTED (0x00140000) | ||
112 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE (0x00000100) | ||
113 | #define PL_LOGINFO_SUB_CODE_INVALID_SGL (0x00000200) | ||
114 | #define PL_LOGINFO_SUB_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00000300) | ||
115 | #define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400) | ||
116 | #define PL_LOGINFO_SUB_CODE_TX_FM_CONNECTED_LOW (0x00000500) | ||
117 | #define PL_LOGINFO_SUB_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00000600) | ||
118 | #define PL_LOGINFO_SUB_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00000700) | ||
119 | #define PL_LOGINFO_SUB_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00000800) | ||
120 | #define PL_LOGINFO_SUB_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00000900) | ||
121 | #define PL_LOGINFO_SUB_CODE_RX_FM_INVALID_MESSAGE (0x00000A00) | ||
122 | #define PL_LOGINFO_SUB_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x00000B00) | ||
123 | #define PL_LOGINFO_SUB_CODE_RX_FM_CURRENT_FRAME_ERROR (0x00000C00) | ||
124 | #define PL_LOGINFO_SUB_CODE_SATA_LINK_DOWN (0x00000D00) | ||
125 | #define PL_LOGINFO_SUB_CODE_DISCOVERY_SATA_INIT_W_IOS (0x00000E00) | ||
126 | #define PL_LOGINFO_SUB_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00001000) | ||
127 | |||
128 | |||
129 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000) /* Can't get SMP Frame */ | ||
130 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200001) /* Error occured on SMP Read */ | ||
131 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200002) /* Error occured on SMP Write */ | ||
132 | #define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200004) /* Encl Mgmt services not available for this WWID */ | ||
133 | #define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200005) /* Address Mode not suppored */ | ||
134 | #define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200006) /* Invalid Slot Number in SEP Msg */ | ||
135 | #define PL_LOGINFO_CODE_ENCL_MGMT_SGPIO_NOT_PRESENT (0x00200007) /* SGPIO not present/enabled */ | ||
136 | |||
137 | #define PL_LOGINFO_DA_SEP_NOT_PRESENT (0x00200100) /* SEP not present when msg received */ | ||
138 | #define PL_LOGINFO_DA_SEP_SINGLE_THREAD_ERROR (0x00200101) /* Can only accept 1 msg at a time */ | ||
139 | #define PL_LOGINFO_DA_SEP_ISTWI_INTR_IN_IDLE_STATE (0x00200102) /* ISTWI interrupt recvd. while IDLE */ | ||
140 | #define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103) /* SEP NACK'd, it is busy */ | ||
141 | #define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200104) /* SEP stopped or sent bad chksum in Hdr */ | ||
142 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200105) /* SEP returned unknown scsi status */ | ||
143 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200106) /* SEP returned unknown scsi status */ | ||
144 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x00200107) /* SEP returned bad chksum after STOP */ | ||
145 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP_GETDATA (0x00200108) /* SEP returned bad chksum after STOP while gettin data*/ | ||
146 | |||
147 | |||
148 | /****************************************************************************/ | ||
149 | /* IR LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = IR */ | ||
150 | /****************************************************************************/ | ||
151 | #define IR_LOGINFO_CODE_UNUSED1 (0x00010000) | ||
152 | #define IR_LOGINFO_CODE_UNUSED2 (0x00020000) | ||
153 | |||
154 | /****************************************************************************/ | ||
155 | /* Defines for convienence */ | ||
156 | /****************************************************************************/ | ||
157 | #define IOC_LOGINFO_PREFIX_IOP ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IOP) | ||
158 | #define IOC_LOGINFO_PREFIX_PL ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_PL) | ||
159 | #define IOC_LOGINFO_PREFIX_IR ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IR) | ||
160 | |||
161 | #endif /* end of file */ | ||
162 | |||