1233425Smarius/* $FreeBSD: releng/10.2/sys/dev/mpt/mpilib/mpi_log_fc.h 233425 2012-03-24 16:23:21Z marius $ */ 2233425Smarius/*- 3233425Smarius * Copyright (c) 2000-2010, LSI Logic Corporation and its contributors. 4233425Smarius * All rights reserved. 5233425Smarius * 6233425Smarius * Redistribution and use in source and binary forms, with or without 7233425Smarius * modification, are permitted provided that the following conditions are 8233425Smarius * met: 9233425Smarius * 1. Redistributions of source code must retain the above copyright 10233425Smarius * notice, this list of conditions and the following disclaimer. 11233425Smarius * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12233425Smarius * substantially similar to the "NO WARRANTY" disclaimer below 13233425Smarius * ("Disclaimer") and any redistribution must be conditioned upon including 14233425Smarius * a substantially similar Disclaimer requirement for further binary 15233425Smarius * redistribution. 16233425Smarius * 3. Neither the name of the LSI Logic Corporation nor the names of its 17233425Smarius * contributors may be used to endorse or promote products derived from 18233425Smarius * this software without specific prior written permission. 19233425Smarius * 20233425Smarius * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21233425Smarius * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22233425Smarius * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23233425Smarius * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24233425Smarius * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25233425Smarius * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26233425Smarius * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27233425Smarius * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28233425Smarius * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29233425Smarius * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 30233425Smarius * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31233425Smarius * 32233425Smarius * NAME: fc_log.h 33233425Smarius * SUMMARY: MPI IocLogInfo definitions for the SYMFC9xx chips 34233425Smarius * DESCRIPTION: Contains the enumerated list of values that may be returned 35233425Smarius * in the IOCLogInfo field of a MPI Default Reply Message. 36233425Smarius * 37233425Smarius * CREATION DATE: 6/02/2000 38233425Smarius * ID: $Id: fc_log.h,v 4.6 2001/07/26 14:41:33 sschremm Exp $ 39233425Smarius */ 40233425Smarius 41233425Smarius 42233425Smarius/* 43233425Smarius * MpiIocLogInfo_t enum 44233425Smarius * 45233425Smarius * These 32 bit values are used in the IOCLogInfo field of the MPI reply 46233425Smarius * messages. 47233425Smarius * The value is 0xabcccccc where 48233425Smarius * a = The type of log info as per the MPI spec. Since these codes are 49233425Smarius * all for Fibre Channel this value will always be 2. 50233425Smarius * b = Specifies a subclass of the firmware where 51233425Smarius * 0 = FCP Initiator 52233425Smarius * 1 = FCP Target 53233425Smarius * 2 = LAN 54233425Smarius * 3 = MPI Message Layer 55233425Smarius * 4 = FC Link 56233425Smarius * 5 = Context Manager 57233425Smarius * 6 = Invalid Field Offset 58233425Smarius * 7 = State Change Info 59233425Smarius * all others are reserved for future use 60233425Smarius * c = A specific value within the subclass. 61233425Smarius * 62233425Smarius * NOTE: Any new values should be added to the end of each subclass so that the 63233425Smarius * codes remain consistent across firmware releases. 64233425Smarius */ 65233425Smariustypedef enum _MpiIocLogInfoFc 66233425Smarius{ 67233425Smarius MPI_IOCLOGINFO_FC_INIT_BASE = 0x20000000, 68233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_OUT_OF_ORDER_FRAME = 0x20000001, /* received an out of order frame - unsupported */ 69233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primative */ 70233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primative */ 71233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_OVER_RUN = 0x20000004, /* Bad Rx Frame, overrun */ 72233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OTHER = 0x20000005, /* Other errors caught by IOC which require retries */ 73233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_SUBPROC_DEAD = 0x20000006, /* Main processor could not initialize sub-processor */ 74233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OVERRUN = 0x20000007, /* Scatter Gather overrun */ 75233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_RX_BAD_STATUS = 0x20000008, /* Receiver detected context mismatch via invalid header */ 76233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_RX_UNEXPECTED_FRAME= 0x20000009, /* CtxMgr detected unsupported frame type */ 77233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_LINK_FAILURE = 0x2000000A, /* Link failure occurred */ 78233425Smarius MPI_IOCLOGINFO_FC_INIT_ERROR_TX_TIMEOUT = 0x2000000B, /* Transmitter timeout error */ 79233425Smarius 80233425Smarius MPI_IOCLOGINFO_FC_TARGET_BASE = 0x21000000, 81233425Smarius MPI_IOCLOGINFO_FC_TARGET_NO_PDISC = 0x21000001, /* not sent because we are waiting for a PDISC from the initiator */ 82233425Smarius MPI_IOCLOGINFO_FC_TARGET_NO_LOGIN = 0x21000002, /* not sent because we are not logged in to the remote node */ 83233425Smarius MPI_IOCLOGINFO_FC_TARGET_DOAR_KILLED_BY_LIP = 0x21000003, /* Data Out, Auto Response, not sent due to a LIP */ 84233425Smarius MPI_IOCLOGINFO_FC_TARGET_DIAR_KILLED_BY_LIP = 0x21000004, /* Data In, Auto Response, not sent due to a LIP */ 85233425Smarius MPI_IOCLOGINFO_FC_TARGET_DIAR_MISSING_DATA = 0x21000005, /* Data In, Auto Response, missing data frames */ 86233425Smarius MPI_IOCLOGINFO_FC_TARGET_DONR_KILLED_BY_LIP = 0x21000006, /* Data Out, No Response, not sent due to a LIP */ 87233425Smarius MPI_IOCLOGINFO_FC_TARGET_WRSP_KILLED_BY_LIP = 0x21000007, /* Auto-response after a write not sent due to a LIP */ 88233425Smarius MPI_IOCLOGINFO_FC_TARGET_DINR_KILLED_BY_LIP = 0x21000008, /* Data In, No Response, not completed due to a LIP */ 89233425Smarius MPI_IOCLOGINFO_FC_TARGET_DINR_MISSING_DATA = 0x21000009, /* Data In, No Response, missing data frames */ 90233425Smarius MPI_IOCLOGINFO_FC_TARGET_MRSP_KILLED_BY_LIP = 0x2100000a, /* Manual Response not sent due to a LIP */ 91233425Smarius MPI_IOCLOGINFO_FC_TARGET_NO_CLASS_3 = 0x2100000b, /* not sent because remote node does not support Class 3 */ 92233425Smarius MPI_IOCLOGINFO_FC_TARGET_LOGIN_NOT_VALID = 0x2100000c, /* not sent because login to remote node not validated */ 93233425Smarius MPI_IOCLOGINFO_FC_TARGET_FROM_OUTBOUND = 0x2100000e, /* cleared from the outbound queue after a logout */ 94233425Smarius MPI_IOCLOGINFO_FC_TARGET_WAITING_FOR_DATA_IN = 0x2100000f, /* cleared waiting for data after a logout */ 95233425Smarius 96233425Smarius MPI_IOCLOGINFO_FC_LAN_BASE = 0x22000000, 97233425Smarius MPI_IOCLOGINFO_FC_LAN_TRANS_SGL_MISSING = 0x22000001, /* Transaction Context Sgl Missing */ 98233425Smarius MPI_IOCLOGINFO_FC_LAN_TRANS_WRONG_PLACE = 0x22000002, /* Transaction Context found before an EOB */ 99233425Smarius MPI_IOCLOGINFO_FC_LAN_TRANS_RES_BITS_SET = 0x22000003, /* Transaction Context value has reserved bits set */ 100233425Smarius MPI_IOCLOGINFO_FC_LAN_WRONG_SGL_FLAG = 0x22000004, /* Invalid SGL Flags */ 101233425Smarius 102233425Smarius MPI_IOCLOGINFO_FC_MSG_BASE = 0x23000000, 103233425Smarius 104233425Smarius MPI_IOCLOGINFO_FC_LINK_BASE = 0x24000000, 105233425Smarius MPI_IOCLOGINFO_FC_LINK_LOOP_INIT_TIMEOUT = 0x24000001, /* Loop initialization timed out */ 106233425Smarius MPI_IOCLOGINFO_FC_LINK_ALREADY_INITIALIZED = 0x24000002, /* Another system controller already initialized the loop */ 107233425Smarius MPI_IOCLOGINFO_FC_LINK_LINK_NOT_ESTABLISHED = 0x24000003, /* Not synchronized to signal or still negotiating (possible cable problem) */ 108233425Smarius MPI_IOCLOGINFO_FC_LINK_CRC_ERROR = 0x24000004, /* CRC check detected error on received frame */ 109233425Smarius 110233425Smarius MPI_IOCLOGINFO_FC_CTX_BASE = 0x25000000, 111233425Smarius 112233425Smarius 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 */ 113233425Smarius MPI_IOCLOGINFO_FC_INVALID_FIELD_MAX_OFFSET = 0x26ffffff, 114233425Smarius 115233425Smarius MPI_IOCLOGINFO_FC_STATE_CHANGE = 0x27000000 /* The lower 24 bits give additional information concerning state change */ 116233425Smarius 117233425Smarius} MpiIocLogInfoFc_t; 118