112af29abSMarius Strobl /*- 2*7282444bSPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 3*7282444bSPedro F. Giffuni * 412af29abSMarius Strobl * Copyright (c) 2000-2010, LSI Logic Corporation and its contributors. 512af29abSMarius Strobl * All rights reserved. 612af29abSMarius Strobl * 712af29abSMarius Strobl * Redistribution and use in source and binary forms, with or without 812af29abSMarius Strobl * modification, are permitted provided that the following conditions are 912af29abSMarius Strobl * met: 1012af29abSMarius Strobl * 1. Redistributions of source code must retain the above copyright 1112af29abSMarius Strobl * notice, this list of conditions and the following disclaimer. 1212af29abSMarius Strobl * 2. Redistributions in binary form must reproduce at minimum a disclaimer 1312af29abSMarius Strobl * substantially similar to the "NO WARRANTY" disclaimer below 1412af29abSMarius Strobl * ("Disclaimer") and any redistribution must be conditioned upon including 1512af29abSMarius Strobl * a substantially similar Disclaimer requirement for further binary 1612af29abSMarius Strobl * redistribution. 1712af29abSMarius Strobl * 3. Neither the name of the LSI Logic Corporation nor the names of its 1812af29abSMarius Strobl * contributors may be used to endorse or promote products derived from 1912af29abSMarius Strobl * this software without specific prior written permission. 2012af29abSMarius Strobl * 2112af29abSMarius Strobl * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2212af29abSMarius Strobl * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2312af29abSMarius Strobl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2412af29abSMarius Strobl * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2512af29abSMarius Strobl * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2612af29abSMarius Strobl * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2712af29abSMarius Strobl * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2812af29abSMarius Strobl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2912af29abSMarius Strobl * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3012af29abSMarius Strobl * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 3112af29abSMarius Strobl * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3212af29abSMarius Strobl * 3312af29abSMarius Strobl * NAME: fc_log.h 3412af29abSMarius Strobl * SUMMARY: MPI IocLogInfo definitions for the SYMFC9xx chips 3512af29abSMarius Strobl * DESCRIPTION: Contains the enumerated list of values that may be returned 3612af29abSMarius Strobl * in the IOCLogInfo field of a MPI Default Reply Message. 3712af29abSMarius Strobl * 3812af29abSMarius Strobl * CREATION DATE: 6/02/2000 3912af29abSMarius Strobl * ID: $Id: fc_log.h,v 4.6 2001/07/26 14:41:33 sschremm Exp $ 4012af29abSMarius Strobl */ 4112af29abSMarius Strobl 4212af29abSMarius Strobl /* 4312af29abSMarius Strobl * MpiIocLogInfo_t enum 4412af29abSMarius Strobl * 4512af29abSMarius Strobl * These 32 bit values are used in the IOCLogInfo field of the MPI reply 4612af29abSMarius Strobl * messages. 4712af29abSMarius Strobl * The value is 0xabcccccc where 4812af29abSMarius Strobl * a = The type of log info as per the MPI spec. Since these codes are 4912af29abSMarius Strobl * all for Fibre Channel this value will always be 2. 5012af29abSMarius Strobl * b = Specifies a subclass of the firmware where 5112af29abSMarius Strobl * 0 = FCP Initiator 5212af29abSMarius Strobl * 1 = FCP Target 5312af29abSMarius Strobl * 2 = LAN 5412af29abSMarius Strobl * 3 = MPI Message Layer 5512af29abSMarius Strobl * 4 = FC Link 5612af29abSMarius Strobl * 5 = Context Manager 5712af29abSMarius Strobl * 6 = Invalid Field Offset 5812af29abSMarius Strobl * 7 = State Change Info 5912af29abSMarius Strobl * all others are reserved for future use 6012af29abSMarius Strobl * c = A specific value within the subclass. 6112af29abSMarius Strobl * 6212af29abSMarius Strobl * NOTE: Any new values should be added to the end of each subclass so that the 6312af29abSMarius Strobl * codes remain consistent across firmware releases. 6412af29abSMarius Strobl */ 6512af29abSMarius Strobl typedef enum _MpiIocLogInfoFc 6612af29abSMarius Strobl { 6712af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_BASE = 0x20000000, 6812af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_OUT_OF_ORDER_FRAME = 0x20000001, /* received an out of order frame - unsupported */ 69453130d9SPedro F. Giffuni MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primitive */ 70453130d9SPedro F. Giffuni MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primitive */ 7112af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_OVER_RUN = 0x20000004, /* Bad Rx Frame, overrun */ 7212af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OTHER = 0x20000005, /* Other errors caught by IOC which require retries */ 7312af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_SUBPROC_DEAD = 0x20000006, /* Main processor could not initialize sub-processor */ 7412af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OVERRUN = 0x20000007, /* Scatter Gather overrun */ 7512af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_RX_BAD_STATUS = 0x20000008, /* Receiver detected context mismatch via invalid header */ 7612af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_RX_UNEXPECTED_FRAME= 0x20000009, /* CtxMgr detected unsupported frame type */ 7712af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_LINK_FAILURE = 0x2000000A, /* Link failure occurred */ 7812af29abSMarius Strobl MPI_IOCLOGINFO_FC_INIT_ERROR_TX_TIMEOUT = 0x2000000B, /* Transmitter timeout error */ 7912af29abSMarius Strobl 8012af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_BASE = 0x21000000, 8112af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_NO_PDISC = 0x21000001, /* not sent because we are waiting for a PDISC from the initiator */ 8212af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_NO_LOGIN = 0x21000002, /* not sent because we are not logged in to the remote node */ 8312af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DOAR_KILLED_BY_LIP = 0x21000003, /* Data Out, Auto Response, not sent due to a LIP */ 8412af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DIAR_KILLED_BY_LIP = 0x21000004, /* Data In, Auto Response, not sent due to a LIP */ 8512af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DIAR_MISSING_DATA = 0x21000005, /* Data In, Auto Response, missing data frames */ 8612af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DONR_KILLED_BY_LIP = 0x21000006, /* Data Out, No Response, not sent due to a LIP */ 8712af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_WRSP_KILLED_BY_LIP = 0x21000007, /* Auto-response after a write not sent due to a LIP */ 8812af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DINR_KILLED_BY_LIP = 0x21000008, /* Data In, No Response, not completed due to a LIP */ 8912af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_DINR_MISSING_DATA = 0x21000009, /* Data In, No Response, missing data frames */ 9012af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_MRSP_KILLED_BY_LIP = 0x2100000a, /* Manual Response not sent due to a LIP */ 9112af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_NO_CLASS_3 = 0x2100000b, /* not sent because remote node does not support Class 3 */ 9212af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_LOGIN_NOT_VALID = 0x2100000c, /* not sent because login to remote node not validated */ 9312af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_FROM_OUTBOUND = 0x2100000e, /* cleared from the outbound queue after a logout */ 9412af29abSMarius Strobl MPI_IOCLOGINFO_FC_TARGET_WAITING_FOR_DATA_IN = 0x2100000f, /* cleared waiting for data after a logout */ 9512af29abSMarius Strobl 9612af29abSMarius Strobl MPI_IOCLOGINFO_FC_LAN_BASE = 0x22000000, 9712af29abSMarius Strobl MPI_IOCLOGINFO_FC_LAN_TRANS_SGL_MISSING = 0x22000001, /* Transaction Context Sgl Missing */ 9812af29abSMarius Strobl MPI_IOCLOGINFO_FC_LAN_TRANS_WRONG_PLACE = 0x22000002, /* Transaction Context found before an EOB */ 9912af29abSMarius Strobl MPI_IOCLOGINFO_FC_LAN_TRANS_RES_BITS_SET = 0x22000003, /* Transaction Context value has reserved bits set */ 10012af29abSMarius Strobl MPI_IOCLOGINFO_FC_LAN_WRONG_SGL_FLAG = 0x22000004, /* Invalid SGL Flags */ 10112af29abSMarius Strobl 10212af29abSMarius Strobl MPI_IOCLOGINFO_FC_MSG_BASE = 0x23000000, 10312af29abSMarius Strobl 10412af29abSMarius Strobl MPI_IOCLOGINFO_FC_LINK_BASE = 0x24000000, 10512af29abSMarius Strobl MPI_IOCLOGINFO_FC_LINK_LOOP_INIT_TIMEOUT = 0x24000001, /* Loop initialization timed out */ 10612af29abSMarius Strobl MPI_IOCLOGINFO_FC_LINK_ALREADY_INITIALIZED = 0x24000002, /* Another system controller already initialized the loop */ 10712af29abSMarius Strobl MPI_IOCLOGINFO_FC_LINK_LINK_NOT_ESTABLISHED = 0x24000003, /* Not synchronized to signal or still negotiating (possible cable problem) */ 10812af29abSMarius Strobl MPI_IOCLOGINFO_FC_LINK_CRC_ERROR = 0x24000004, /* CRC check detected error on received frame */ 10912af29abSMarius Strobl 11012af29abSMarius Strobl MPI_IOCLOGINFO_FC_CTX_BASE = 0x25000000, 11112af29abSMarius Strobl 11212af29abSMarius Strobl MPI_IOCLOGINFO_FC_INVALID_FIELD_BYTE_OFFSET = 0x26000000, /* The lower 24 bits give the byte offset of the field in the request message that is invalid */ 11312af29abSMarius Strobl MPI_IOCLOGINFO_FC_INVALID_FIELD_MAX_OFFSET = 0x26ffffff, 11412af29abSMarius Strobl 11512af29abSMarius Strobl MPI_IOCLOGINFO_FC_STATE_CHANGE = 0x27000000 /* The lower 24 bits give additional information concerning state change */ 11612af29abSMarius Strobl 11712af29abSMarius Strobl } MpiIocLogInfoFc_t; 118