xref: /freebsd/contrib/ofed/opensm/include/opensm/osm_msgdef.h (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1 /*
2  * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
3  * Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved.
4  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
5  *
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:
11  *
12  *     Redistribution and use in source and binary forms, with or
13  *     without modification, are permitted provided that the following
14  *     conditions are met:
15  *
16  *      - Redistributions of source code must retain the above
17  *        copyright notice, this list of conditions and the following
18  *        disclaimer.
19  *
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.
24  *
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
32  * SOFTWARE.
33  *
34  */
35 
36 /*
37  * Abstract:
38  * 	Declaration of Dispatcher message values.
39  */
40 
41 #ifndef _OSM_MSGDEF_H_
42 #define _OSM_MSGDEF_H_
43 
44 #ifdef __cplusplus
45 #  define BEGIN_C_DECLS extern "C" {
46 #  define END_C_DECLS   }
47 #else				/* !__cplusplus */
48 #  define BEGIN_C_DECLS
49 #  define END_C_DECLS
50 #endif				/* __cplusplus */
51 
52 BEGIN_C_DECLS
53 /****h* OpenSM/Dispatcher Messages
54 * NAME
55 *	Dispatcher Messages
56 *
57 * DESCRIPTION
58 *	These constants define the messages sent between OpenSM controllers
59 *	attached to the Dispatcher.
60 *
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.
68 *
69 * AUTHOR
70 *	Steve King, Intel
71 *
72 *********/
73 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_NODE_INFO
74 * NAME
75 *	OSM_MSG_MAD_NODE_INFO
76 *
77 * DESCRIPTION
78 *	Message for received NodeInfo MADs.
79 *
80 * NOTES
81 *	Sent by:			osm_mad_ctrl_t
82 *	Received by:			osm_ni_rcv_ctrl_t
83 *	Delivery notice:		yes
84 *
85 *
86 ***********/
87 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_PORT_INFO
88 * NAME
89 *	OSM_MSG_MAD_PORT_INFO
90 *
91 * DESCRIPTION
92 *	Message for received PortInfo MADs.
93 *
94 * NOTES
95 *	Sent by:			osm_mad_ctrl_t
96 *	Received by:			osm_pi_rcv_ctrl_t
97 *	Delivery notice:		yes
98 *
99 *
100 ***********/
101 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_SWITCH_INFO
102 * NAME
103 *	OSM_MSG_MAD_SWITCH_INFO
104 *
105 * DESCRIPTION
106 *	Message for received SwitchInfo MADs.
107 *
108 * NOTES
109 *	Sent by:			osm_mad_ctrl_t
110 *	Received by:			osm_si_rcv_ctrl_t
111 *	Delivery notice:		yes
112 *
113 ***********/
114 /****s* OpenSM: Dispatcher Messages/OSM_MSG_MAD_NODE_DESC
115 * NAME
116 *	OSM_MSG_MAD_NODE_DESC
117 *
118 * DESCRIPTION
119 *	Message for received NodeDescription MADs.
120 *
121 * NOTES
122 *	Sent by:			osm_mad_ctrl_t
123 *	Received by:			osm_nd_rcv_ctrl_t
124 *	Delivery notice:		yes
125 *
126 * SOURCE
127 ***********/
128 enum {
129 	OSM_MSG_NONE = 0,
130 	OSM_MSG_MAD_NODE_INFO,
131 	OSM_MSG_MAD_PORT_INFO,
132 	OSM_MSG_MAD_SWITCH_INFO,
133 	OSM_MSG_MAD_GUID_INFO,
134 	OSM_MSG_MAD_NODE_DESC,
135 	OSM_MSG_MAD_NODE_RECORD,
136 	OSM_MSG_MAD_PORTINFO_RECORD,
137 	OSM_MSG_MAD_SERVICE_RECORD,
138 	OSM_MSG_MAD_PATH_RECORD,
139 	OSM_MSG_MAD_MCMEMBER_RECORD,
140 	OSM_MSG_MAD_LINK_RECORD,
141 	OSM_MSG_MAD_SMINFO_RECORD,
142 	OSM_MSG_MAD_CLASS_PORT_INFO,
143 	OSM_MSG_MAD_INFORM_INFO,
144 	OSM_MSG_MAD_LFT_RECORD,
145 	OSM_MSG_MAD_LFT,
146 	OSM_MSG_MAD_SM_INFO,
147 	OSM_MSG_MAD_NOTICE,
148 	OSM_MSG_LIGHT_SWEEP_FAIL,
149 	OSM_MSG_MAD_MFT,
150 	OSM_MSG_MAD_PKEY_TBL_RECORD,
151 	OSM_MSG_MAD_VL_ARB_RECORD,
152 	OSM_MSG_MAD_SLVL_TBL_RECORD,
153 	OSM_MSG_MAD_PKEY,
154 	OSM_MSG_MAD_VL_ARB,
155 	OSM_MSG_MAD_SLVL,
156 	OSM_MSG_MAD_GUIDINFO_RECORD,
157 	OSM_MSG_MAD_INFORM_INFO_RECORD,
158 	OSM_MSG_MAD_SWITCH_INFO_RECORD,
159 	OSM_MSG_MAD_MFT_RECORD,
160 #if defined (VENDOR_RMPP_SUPPORT) && defined (DUAL_SIDED_RMPP)
161 	OSM_MSG_MAD_MULTIPATH_RECORD,
162 #endif
163 	OSM_MSG_MAD_PORT_COUNTERS,
164 	OSM_MSG_MAD_MLNX_EXT_PORT_INFO,
165 	OSM_MSG_MAD_CC,
166 	OSM_MSG_MAX
167 };
168 
169 END_C_DECLS
170 #endif				/* _OSM_MSGDEF_H_ */
171