You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmdif_comm.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  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>.
  9. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  10. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  12. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  13. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  14. ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. SOFTWARE.
  17. Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
  18. */
  19. #ifndef __cmdif_comm_h__
  20. #define __cmdif_comm_h__
  21. /* initialization and general commands */
  22. #define XDEV_CMD_INIT_HCA 0x7
  23. #define XDEV_CMD_CLOSE_HCA 0x8
  24. #define XDEV_CMD_INIT_IB 0x9
  25. #define XDEV_CMD_CLOSE_IB 0xa
  26. /* TPT commands */
  27. #define XDEV_CMD_SW2HW_MPT 0xd
  28. #define XDEV_CMD_HW2SW_MPT 0xf
  29. /* EQ commands */
  30. #define XDEV_CMD_MAP_EQ 0x12
  31. #define XDEV_CMD_SW2HW_EQ 0x13
  32. #define XDEV_CMD_HW2SW_EQ 0x14
  33. /* CQ commands */
  34. #define XDEV_CMD_SW2HW_CQ 0x16
  35. #define XDEV_CMD_HW2SW_CQ 0x17
  36. /* QP/EE commands */
  37. #define XDEV_CMD_RST2INIT_QPEE 0x19
  38. #define XDEV_CMD_INIT2RTR_QPEE 0x1a
  39. #define XDEV_CMD_RTR2RTS_QPEE 0x1b
  40. #define XDEV_CMD_2ERR_QPEE 0x1e
  41. #define XDEV_CMD_ERR2RST_QPEE 0x21
  42. /* special QPs and management commands */
  43. #define XDEV_CMD_MAD_IFC 0x24
  44. /* multicast commands */
  45. #define XDEV_CMD_READ_MGM 0x25
  46. #define XDEV_CMD_MGID_HASH 0x27
  47. #define XDEV_CMD_POST_DOORBELL 0x41
  48. #endif /* __cmdif_comm_h__ */