Tom Tucker | f94b533 | 2006-09-22 15:22:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2005 Ammasso, Inc. All rights reserved. |
| 3 | * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved. |
| 4 | * |
| 5 | * This software is available to you under a choice of one of two |
| 6 | * licenses. You may choose to be licensed under the terms of the GNU |
| 7 | * General Public License (GPL) Version 2, available from the file |
| 8 | * COPYING in the main directory of this source tree, or the |
| 9 | * OpenIB.org BSD license below: |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or |
| 12 | * without modification, are permitted provided that the following |
| 13 | * conditions are met: |
| 14 | * |
| 15 | * - Redistributions of source code must retain the above |
| 16 | * copyright notice, this list of conditions and the following |
| 17 | * disclaimer. |
| 18 | * |
| 19 | * - Redistributions in binary form must reproduce the above |
| 20 | * copyright notice, this list of conditions and the following |
| 21 | * disclaimer in the documentation and/or other materials |
| 22 | * provided with the distribution. |
| 23 | * |
| 24 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 25 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 26 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 27 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 28 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 29 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 30 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 31 | * SOFTWARE. |
| 32 | */ |
| 33 | #ifndef _C2_AE_H_ |
| 34 | #define _C2_AE_H_ |
| 35 | |
| 36 | /* |
| 37 | * WARNING: If you change this file, also bump C2_IVN_BASE |
| 38 | * in common/include/clustercore/c2_ivn.h. |
| 39 | */ |
| 40 | |
| 41 | /* |
| 42 | * Asynchronous Event Identifiers |
| 43 | * |
| 44 | * These start at 0x80 only so it's obvious from inspection that |
| 45 | * they are not work-request statuses. This isn't critical. |
| 46 | * |
| 47 | * NOTE: these event id's must fit in eight bits. |
| 48 | */ |
| 49 | enum c2_event_id { |
| 50 | CCAE_REMOTE_SHUTDOWN = 0x80, |
| 51 | CCAE_ACTIVE_CONNECT_RESULTS, |
| 52 | CCAE_CONNECTION_REQUEST, |
| 53 | CCAE_LLP_CLOSE_COMPLETE, |
| 54 | CCAE_TERMINATE_MESSAGE_RECEIVED, |
| 55 | CCAE_LLP_CONNECTION_RESET, |
| 56 | CCAE_LLP_CONNECTION_LOST, |
| 57 | CCAE_LLP_SEGMENT_SIZE_INVALID, |
| 58 | CCAE_LLP_INVALID_CRC, |
| 59 | CCAE_LLP_BAD_FPDU, |
| 60 | CCAE_INVALID_DDP_VERSION, |
| 61 | CCAE_INVALID_RDMA_VERSION, |
| 62 | CCAE_UNEXPECTED_OPCODE, |
| 63 | CCAE_INVALID_DDP_QUEUE_NUMBER, |
| 64 | CCAE_RDMA_READ_NOT_ENABLED, |
| 65 | CCAE_RDMA_WRITE_NOT_ENABLED, |
| 66 | CCAE_RDMA_READ_TOO_SMALL, |
| 67 | CCAE_NO_L_BIT, |
| 68 | CCAE_TAGGED_INVALID_STAG, |
| 69 | CCAE_TAGGED_BASE_BOUNDS_VIOLATION, |
| 70 | CCAE_TAGGED_ACCESS_RIGHTS_VIOLATION, |
| 71 | CCAE_TAGGED_INVALID_PD, |
| 72 | CCAE_WRAP_ERROR, |
| 73 | CCAE_BAD_CLOSE, |
| 74 | CCAE_BAD_LLP_CLOSE, |
| 75 | CCAE_INVALID_MSN_RANGE, |
| 76 | CCAE_INVALID_MSN_GAP, |
| 77 | CCAE_IRRQ_OVERFLOW, |
| 78 | CCAE_IRRQ_MSN_GAP, |
| 79 | CCAE_IRRQ_MSN_RANGE, |
| 80 | CCAE_IRRQ_INVALID_STAG, |
| 81 | CCAE_IRRQ_BASE_BOUNDS_VIOLATION, |
| 82 | CCAE_IRRQ_ACCESS_RIGHTS_VIOLATION, |
| 83 | CCAE_IRRQ_INVALID_PD, |
| 84 | CCAE_IRRQ_WRAP_ERROR, |
| 85 | CCAE_CQ_SQ_COMPLETION_OVERFLOW, |
| 86 | CCAE_CQ_RQ_COMPLETION_ERROR, |
| 87 | CCAE_QP_SRQ_WQE_ERROR, |
| 88 | CCAE_QP_LOCAL_CATASTROPHIC_ERROR, |
| 89 | CCAE_CQ_OVERFLOW, |
| 90 | CCAE_CQ_OPERATION_ERROR, |
| 91 | CCAE_SRQ_LIMIT_REACHED, |
| 92 | CCAE_QP_RQ_LIMIT_REACHED, |
| 93 | CCAE_SRQ_CATASTROPHIC_ERROR, |
| 94 | CCAE_RNIC_CATASTROPHIC_ERROR |
| 95 | /* WARNING If you add more id's, make sure their values fit in eight bits. */ |
| 96 | }; |
| 97 | |
| 98 | /* |
| 99 | * Resource Indicators and Identifiers |
| 100 | */ |
| 101 | enum c2_resource_indicator { |
| 102 | C2_RES_IND_QP = 1, |
| 103 | C2_RES_IND_EP, |
| 104 | C2_RES_IND_CQ, |
| 105 | C2_RES_IND_SRQ, |
| 106 | }; |
| 107 | |
| 108 | #endif /* _C2_AE_H_ */ |