2 This software is available to you under a choice of one of two
3 licenses. You may choose to be licensed under the terms of the GNU
4 General Public License (GPL) Version 2, available at
5 <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
6 license, available in the LICENSE.TXT file accompanying this
7 software. These details are also available at
8 <http://openib.org/license.html>.
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
11 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
12 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
13 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
14 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
15 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
22 #ifndef __cmdif_comm_h__
23 #define __cmdif_comm_h__
25 /* initialization and general commands */
26 #define XDEV_CMD_INIT_HCA 0x7
27 #define XDEV_CMD_CLOSE_HCA 0x8
28 #define XDEV_CMD_INIT_IB 0x9
29 #define XDEV_CMD_CLOSE_IB 0xa
32 #define XDEV_CMD_SW2HW_MPT 0xd
33 #define XDEV_CMD_HW2SW_MPT 0xf
36 #define XDEV_CMD_MAP_EQ 0x12
37 #define XDEV_CMD_SW2HW_EQ 0x13
38 #define XDEV_CMD_HW2SW_EQ 0x14
41 #define XDEV_CMD_SW2HW_CQ 0x16
42 #define XDEV_CMD_HW2SW_CQ 0x17
45 #define XDEV_CMD_RST2INIT_QPEE 0x19
46 #define XDEV_CMD_INIT2RTR_QPEE 0x1a
47 #define XDEV_CMD_RTR2RTS_QPEE 0x1b
48 #define XDEV_CMD_2ERR_QPEE 0x1e
49 #define XDEV_CMD_ERR2RST_QPEE 0x21
51 /* special QPs and management commands */
52 #define XDEV_CMD_MAD_IFC 0x24
54 /* multicast commands */
55 #define XDEV_CMD_READ_MGM 0x25
56 #define XDEV_CMD_MGID_HASH 0x27
58 #define XDEV_CMD_POST_DOORBELL 0x41
60 #endif /* __cmdif_comm_h__ */