2 * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file
9 * COPYING in the main directory of this source tree, or the
10 * OpenIB.org BSD license below:
12 * Redistribution and use in source and binary forms, with or
13 * without modification, are permitted provided that the following
16 * - Redistributions of source code must retain the above
17 * copyright notice, this list of conditions and the following
20 * - Redistributions in binary form must reproduce the above
21 * copyright notice, this list of conditions and the following
22 * disclaimer in the documentation and/or other materials
23 * provided with the distribution.
25 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38 * Declaration of Dispatcher message values.
41 #ifndef _OSM_MSGDEF_H_
42 #define _OSM_MSGDEF_H_
45 # define BEGIN_C_DECLS extern "C" {
46 # define END_C_DECLS }
47 #else /* !__cplusplus */
48 # define BEGIN_C_DECLS
50 #endif /* __cplusplus */
53 /****h* OpenSM/Dispatcher Messages
58 * These constants define the messages sent between OpenSM controllers
59 * attached to the Dispatcher.
61 * Each message description contains the following information:
62 * Sent by: which controller(s) send this message
63 * Received by: which controller receives this message
64 * Delivery notice: Indicates if the sender requires confirmation
65 * that the message has been delivered. Typically a "yes" here
66 * means that some resources associated with sending the
67 * message must be freed.
73 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_NODE_INFO
75 * OSM_MSG_MAD_NODE_INFO
78 * Message for received NodeInfo MADs.
81 * Sent by: osm_mad_ctrl_t
82 * Received by: osm_ni_rcv_ctrl_t
83 * Delivery notice: yes
87 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_PORT_INFO
89 * OSM_MSG_MAD_PORT_INFO
92 * Message for received PortInfo MADs.
95 * Sent by: osm_mad_ctrl_t
96 * Received by: osm_pi_rcv_ctrl_t
97 * Delivery notice: yes
101 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_SWITCH_INFO
103 * OSM_MSG_MAD_SWITCH_INFO
106 * Message for received SwitchInfo MADs.
109 * Sent by: osm_mad_ctrl_t
110 * Received by: osm_si_rcv_ctrl_t
111 * Delivery notice: yes
114 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_NODE_DESC
116 * OSM_MSG_MAD_NODE_DESC
119 * Message for received NodeDescription MADs.
122 * Sent by: osm_mad_ctrl_t
123 * Received by: osm_nd_rcv_ctrl_t
124 * Delivery notice: yes
130 OSM_MSG_MAD_NODE_INFO,
131 OSM_MSG_MAD_PORT_INFO,
132 OSM_MSG_MAD_SWITCH_INFO,
133 OSM_MSG_MAD_NODE_DESC,
134 OSM_MSG_MAD_NODE_RECORD,
135 OSM_MSG_MAD_PORTINFO_RECORD,
136 OSM_MSG_MAD_SERVICE_RECORD,
137 OSM_MSG_MAD_PATH_RECORD,
138 OSM_MSG_MAD_MCMEMBER_RECORD,
139 OSM_MSG_MAD_LINK_RECORD,
140 OSM_MSG_MAD_SMINFO_RECORD,
141 OSM_MSG_MAD_CLASS_PORT_INFO,
142 OSM_MSG_MAD_INFORM_INFO,
143 OSM_MSG_MAD_LFT_RECORD,
147 OSM_MSG_LIGHT_SWEEP_FAIL,
149 OSM_MSG_MAD_PKEY_TBL_RECORD,
150 OSM_MSG_MAD_VL_ARB_RECORD,
151 OSM_MSG_MAD_SLVL_TBL_RECORD,
155 OSM_MSG_MAD_GUIDINFO_RECORD,
156 OSM_MSG_MAD_INFORM_INFO_RECORD,
157 OSM_MSG_MAD_SWITCH_INFO_RECORD,
158 OSM_MSG_MAD_MFT_RECORD,
159 #if defined (VENDOR_RMPP_SUPPORT) && defined (DUAL_SIDED_RMPP)
160 OSM_MSG_MAD_MULTIPATH_RECORD,
162 OSM_MSG_MAD_PORT_COUNTERS,
167 #endif /* _OSM_MSGDEF_H_ */