18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2000-2008 LSI Corporation. All rights reserved. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * NAME: fc_log.h 68c2ecf20Sopenharmony_ci * SUMMARY: MPI IocLogInfo definitions for the SYMFC9xx chips 78c2ecf20Sopenharmony_ci * DESCRIPTION: Contains the enumerated list of values that may be returned 88c2ecf20Sopenharmony_ci * in the IOCLogInfo field of a MPI Default Reply Message. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * CREATION DATE: 6/02/2000 118c2ecf20Sopenharmony_ci * ID: $Id: fc_log.h,v 4.6 2001/07/26 14:41:33 sschremm Exp $ 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* 168c2ecf20Sopenharmony_ci * MpiIocLogInfo_t enum 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * These 32 bit values are used in the IOCLogInfo field of the MPI reply 198c2ecf20Sopenharmony_ci * messages. 208c2ecf20Sopenharmony_ci * The value is 0xabcccccc where 218c2ecf20Sopenharmony_ci * a = The type of log info as per the MPI spec. Since these codes are 228c2ecf20Sopenharmony_ci * all for Fibre Channel this value will always be 2. 238c2ecf20Sopenharmony_ci * b = Specifies a subclass of the firmware where 248c2ecf20Sopenharmony_ci * 0 = FCP Initiator 258c2ecf20Sopenharmony_ci * 1 = FCP Target 268c2ecf20Sopenharmony_ci * 2 = LAN 278c2ecf20Sopenharmony_ci * 3 = MPI Message Layer 288c2ecf20Sopenharmony_ci * 4 = FC Link 298c2ecf20Sopenharmony_ci * 5 = Context Manager 308c2ecf20Sopenharmony_ci * 6 = Invalid Field Offset 318c2ecf20Sopenharmony_ci * 7 = State Change Info 328c2ecf20Sopenharmony_ci * all others are reserved for future use 338c2ecf20Sopenharmony_ci * c = A specific value within the subclass. 348c2ecf20Sopenharmony_ci * 358c2ecf20Sopenharmony_ci * NOTE: Any new values should be added to the end of each subclass so that the 368c2ecf20Sopenharmony_ci * codes remain consistent across firmware releases. 378c2ecf20Sopenharmony_ci */ 388c2ecf20Sopenharmony_citypedef enum _MpiIocLogInfoFc 398c2ecf20Sopenharmony_ci{ 408c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_BASE = 0x20000000, 418c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_OUT_OF_ORDER_FRAME = 0x20000001, /* received an out of order frame - unsupported */ 428c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primitive */ 438c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primitive */ 448c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_OVER_RUN = 0x20000004, /* Bad Rx Frame, overrun */ 458c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OTHER = 0x20000005, /* Other errors caught by IOC which require retries */ 468c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_SUBPROC_DEAD = 0x20000006, /* Main processor could not initialize sub-processor */ 478c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OVERRUN = 0x20000007, /* Scatter Gather overrun */ 488c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_RX_BAD_STATUS = 0x20000008, /* Receiver detected context mismatch via invalid header */ 498c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_RX_UNEXPECTED_FRAME= 0x20000009, /* CtxMgr detected unsupported frame type */ 508c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_LINK_FAILURE = 0x2000000A, /* Link failure occurred */ 518c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INIT_ERROR_TX_TIMEOUT = 0x2000000B, /* Transmitter timeout error */ 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_BASE = 0x21000000, 548c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_NO_PDISC = 0x21000001, /* not sent because we are waiting for a PDISC from the initiator */ 558c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_NO_LOGIN = 0x21000002, /* not sent because we are not logged in to the remote node */ 568c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DOAR_KILLED_BY_LIP = 0x21000003, /* Data Out, Auto Response, not sent due to a LIP */ 578c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DIAR_KILLED_BY_LIP = 0x21000004, /* Data In, Auto Response, not sent due to a LIP */ 588c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DIAR_MISSING_DATA = 0x21000005, /* Data In, Auto Response, missing data frames */ 598c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DONR_KILLED_BY_LIP = 0x21000006, /* Data Out, No Response, not sent due to a LIP */ 608c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_WRSP_KILLED_BY_LIP = 0x21000007, /* Auto-response after a write not sent due to a LIP */ 618c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DINR_KILLED_BY_LIP = 0x21000008, /* Data In, No Response, not completed due to a LIP */ 628c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_DINR_MISSING_DATA = 0x21000009, /* Data In, No Response, missing data frames */ 638c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_MRSP_KILLED_BY_LIP = 0x2100000a, /* Manual Response not sent due to a LIP */ 648c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_NO_CLASS_3 = 0x2100000b, /* not sent because remote node does not support Class 3 */ 658c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_LOGIN_NOT_VALID = 0x2100000c, /* not sent because login to remote node not validated */ 668c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_FROM_OUTBOUND = 0x2100000e, /* cleared from the outbound queue after a logout */ 678c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_TARGET_WAITING_FOR_DATA_IN = 0x2100000f, /* cleared waiting for data after a logout */ 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LAN_BASE = 0x22000000, 708c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LAN_TRANS_SGL_MISSING = 0x22000001, /* Transaction Context Sgl Missing */ 718c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LAN_TRANS_WRONG_PLACE = 0x22000002, /* Transaction Context found before an EOB */ 728c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LAN_TRANS_RES_BITS_SET = 0x22000003, /* Transaction Context value has reserved bits set */ 738c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LAN_WRONG_SGL_FLAG = 0x22000004, /* Invalid SGL Flags */ 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_MSG_BASE = 0x23000000, 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LINK_BASE = 0x24000000, 788c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LINK_LOOP_INIT_TIMEOUT = 0x24000001, /* Loop initialization timed out */ 798c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LINK_ALREADY_INITIALIZED = 0x24000002, /* Another system controller already initialized the loop */ 808c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LINK_LINK_NOT_ESTABLISHED = 0x24000003, /* Not synchronized to signal or still negotiating (possible cable problem) */ 818c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_LINK_CRC_ERROR = 0x24000004, /* CRC check detected error on received frame */ 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_CTX_BASE = 0x25000000, 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci 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 */ 868c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_INVALID_FIELD_MAX_OFFSET = 0x26ffffff, 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci MPI_IOCLOGINFO_FC_STATE_CHANGE = 0x27000000 /* The lower 24 bits give additional information concerning state change */ 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci} MpiIocLogInfoFc_t; 91