Path: blob/master/drivers/infiniband/hw/amso1100/c2_ae.h
15112 views
/*1* Copyright (c) 2005 Ammasso, Inc. All rights reserved.2* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.3*4* This software is available to you under a choice of one of two5* licenses. You may choose to be licensed under the terms of the GNU6* General Public License (GPL) Version 2, available from the file7* COPYING in the main directory of this source tree, or the8* OpenIB.org BSD license below:9*10* Redistribution and use in source and binary forms, with or11* without modification, are permitted provided that the following12* conditions are met:13*14* - Redistributions of source code must retain the above15* copyright notice, this list of conditions and the following16* disclaimer.17*18* - Redistributions in binary form must reproduce the above19* copyright notice, this list of conditions and the following20* disclaimer in the documentation and/or other materials21* provided with the distribution.22*23* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,24* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF25* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND26* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS27* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN28* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN29* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE30* SOFTWARE.31*/32#ifndef _C2_AE_H_33#define _C2_AE_H_3435/*36* WARNING: If you change this file, also bump C2_IVN_BASE37* in common/include/clustercore/c2_ivn.h.38*/3940/*41* Asynchronous Event Identifiers42*43* These start at 0x80 only so it's obvious from inspection that44* they are not work-request statuses. This isn't critical.45*46* NOTE: these event id's must fit in eight bits.47*/48enum c2_event_id {49CCAE_REMOTE_SHUTDOWN = 0x80,50CCAE_ACTIVE_CONNECT_RESULTS,51CCAE_CONNECTION_REQUEST,52CCAE_LLP_CLOSE_COMPLETE,53CCAE_TERMINATE_MESSAGE_RECEIVED,54CCAE_LLP_CONNECTION_RESET,55CCAE_LLP_CONNECTION_LOST,56CCAE_LLP_SEGMENT_SIZE_INVALID,57CCAE_LLP_INVALID_CRC,58CCAE_LLP_BAD_FPDU,59CCAE_INVALID_DDP_VERSION,60CCAE_INVALID_RDMA_VERSION,61CCAE_UNEXPECTED_OPCODE,62CCAE_INVALID_DDP_QUEUE_NUMBER,63CCAE_RDMA_READ_NOT_ENABLED,64CCAE_RDMA_WRITE_NOT_ENABLED,65CCAE_RDMA_READ_TOO_SMALL,66CCAE_NO_L_BIT,67CCAE_TAGGED_INVALID_STAG,68CCAE_TAGGED_BASE_BOUNDS_VIOLATION,69CCAE_TAGGED_ACCESS_RIGHTS_VIOLATION,70CCAE_TAGGED_INVALID_PD,71CCAE_WRAP_ERROR,72CCAE_BAD_CLOSE,73CCAE_BAD_LLP_CLOSE,74CCAE_INVALID_MSN_RANGE,75CCAE_INVALID_MSN_GAP,76CCAE_IRRQ_OVERFLOW,77CCAE_IRRQ_MSN_GAP,78CCAE_IRRQ_MSN_RANGE,79CCAE_IRRQ_INVALID_STAG,80CCAE_IRRQ_BASE_BOUNDS_VIOLATION,81CCAE_IRRQ_ACCESS_RIGHTS_VIOLATION,82CCAE_IRRQ_INVALID_PD,83CCAE_IRRQ_WRAP_ERROR,84CCAE_CQ_SQ_COMPLETION_OVERFLOW,85CCAE_CQ_RQ_COMPLETION_ERROR,86CCAE_QP_SRQ_WQE_ERROR,87CCAE_QP_LOCAL_CATASTROPHIC_ERROR,88CCAE_CQ_OVERFLOW,89CCAE_CQ_OPERATION_ERROR,90CCAE_SRQ_LIMIT_REACHED,91CCAE_QP_RQ_LIMIT_REACHED,92CCAE_SRQ_CATASTROPHIC_ERROR,93CCAE_RNIC_CATASTROPHIC_ERROR94/* WARNING If you add more id's, make sure their values fit in eight bits. */95};9697/*98* Resource Indicators and Identifiers99*/100enum c2_resource_indicator {101C2_RES_IND_QP = 1,102C2_RES_IND_EP,103C2_RES_IND_CQ,104C2_RES_IND_SRQ,105};106107#endif /* _C2_AE_H_ */108109110