| 1 |
/* |
| 2 |
* Copyright (c) 2006-2012. QLogic Corporation. All rights reserved. |
| 3 |
* Copyright (c) 2003-2006, PathScale, 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 |
|
| 34 |
/* |
| 35 |
* interface to InfiniPath Interconnect Protocol Stack |
| 36 |
* |
| 37 |
* This file contains the function prototypes of the interconnect protocol |
| 38 |
* stack. It should be included in all the clients of the stack, such as MPI. |
| 39 |
*/ |
| 40 |
|
| 41 |
#ifndef ipserror_h |
| 42 |
#define ipserror_h |
| 43 |
|
| 44 |
#ifdef __cplusplus |
| 45 |
extern "C" { |
| 46 |
#endif |
| 47 |
|
| 48 |
/* Return codes */ |
| 49 |
#define IPS_RC_OK 0 |
| 50 |
#define IPS_RC_ERROR (-1) |
| 51 |
#define IPS_RC_PENDING (-2) |
| 52 |
#define IPS_RC_EXIST (-3) |
| 53 |
#define IPS_RC_MAX_ENTRIES_EXCEEDED (-4) |
| 54 |
#define IPS_RC_NOT_ENOUGH_BUFFERS (-100) |
| 55 |
#define IPS_RC_NO_FREE_MEM (-101) |
| 56 |
#define IPS_RC_NAME_LOOKUP_FAILED (-102) |
| 57 |
#define IPS_RC_PARAM_ERROR (-103) |
| 58 |
#define IPS_RC_UNKNOWN_DEVICE (-104) |
| 59 |
#define IPS_RC_DEVICE_INIT_FAILED (-105) |
| 60 |
#define IPS_RC_DATA_TRUNCATED (-106) |
| 61 |
#define IPS_RC_INVALID_RANK (-107) |
| 62 |
#define IPS_RC_INVALID_OPCODE (-108) |
| 63 |
#define IPS_RC_PEER_NOT_READY (-109) |
| 64 |
#define IPS_RC_PEER_CLOSED (-110) |
| 65 |
#define IPS_RC_DEST_EQUAL_LOCAL_RANK (-111) |
| 66 |
#define IPS_RC_DEVICE_ERROR (-112) |
| 67 |
#define IPS_RC_NETWORK_DOWN (-113) |
| 68 |
#define IPS_RC_NOT_ENOUGH_FREE_TIDS (-114) |
| 69 |
#define IPS_RC_NO_RESOURCE_AVAILABLE (-115) |
| 70 |
#define IPS_RC_HW_UPDATE_FAILED (-116) |
| 71 |
#define IPS_RC_PARTITION_ERROR (-117) |
| 72 |
#define IPS_RC_RUN_ERROR (-118) |
| 73 |
#define IPS_RC_ALREADY_OPEN (-119) |
| 74 |
#define IPS_RC_WAS_CLOSED (-120) |
| 75 |
#define IPS_RC_DEST_EQUAL_LOCAL_LID (-121) |
| 76 |
#define IPS_RC_BUFFER_ALIGMENT_ERROR (-122) |
| 77 |
#define IPS_RC_LENGTH_ALIGMENT_ERROR (-123) |
| 78 |
#define IPS_RC_INVALID_DATA_LENGTH (-124) |
| 79 |
#define IPS_RC_BUSY (-125) |
| 80 |
#define IPS_RC_INIT_TIMEOUT_EXPIRED (-126) |
| 81 |
#define IPS_RC_NO_PORTS_AVAILABLE (-127) |
| 82 |
#define IPS_RC_TRANSFER_INCOMPLETE (-128) |
| 83 |
#define IPS_RC_SYSERR (-129) // errno has meaning, if no further errors since this error |
| 84 |
#define IPS_RC_STARTUP_ERR (-130) |
| 85 |
|
| 86 |
/* Performance Counters Error Codes */ |
| 87 |
#define IPS_RCPERF_INIT_FAILED (-200) |
| 88 |
#define IPS_RCPERF_EVENT_SETUP_FAILED (-201) |
| 89 |
#define IPS_RCPERF_REG_DEFAULT_SET (-202) |
| 90 |
#define IPS_RCPERF_UNSUPPORTED_CPU (-203) |
| 91 |
#define IPS_RCPERF_REG_GET_FAILED (-204) |
| 92 |
#define IPS_RCPERF_SET_EVENT_STR_FAILED (-205) |
| 93 |
#define IPS_RCPERF_INVALID_REGISTER (-206) |
| 94 |
|
| 95 |
char *ips_err_str(int); |
| 96 |
|
| 97 |
#ifdef __cplusplus |
| 98 |
} /* extern "C" */ |
| 99 |
#endif |
| 100 |
#endif |