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.h 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_h_
  20. #define __cmdif_h_
  21. #include "ib_mad.h"
  22. static int cmd_init_hca(__u32 * inprm, __u32 in_prm_size);
  23. static int cmd_close_hca(int panic);
  24. static int cmd_sw2hw_eq(__u32 inprm_sz);
  25. static int cmd_hw2sw_eq(__u8 eqn);
  26. static int cmd_map_eq(__u8 eqn, __u32 mask, int map);
  27. static int cmd_sw2hw_mpt(__u32 * lkey, __u32 in_key, __u32 * inprm,
  28. __u32 inprm_sz);
  29. static int cmd_hw2sw_mpt(__u32 key);
  30. static int cmd_init_ib(__u32 port, __u32 * inprm, __u32 inprm_sz);
  31. static int cmd_close_ib(__u32 port);
  32. static int cmd_sw2hw_cq(__u32 cqn, __u32 * inprm, __u32 inprm_sz);
  33. static int cmd_hw2sw_cq(__u32 cqn);
  34. static int cmd_rst2init_qpee(__u32 qpn, __u32 * inprm, __u32 inprm_sz);
  35. static int cmd_init2rtr_qpee(__u32 qpn, __u32 * inprm, __u32 inprm_sz);
  36. static int cmd_rtr2rts_qpee(__u32 qpn, __u32 * inprm, __u32 inprm_sz);
  37. static int cmd_2rst_qpee(__u32 qpn);
  38. static int cmd_2err_qpee(__u32 qpn);
  39. static int cmd_post_doorbell(void *inprm, __u32 offset);
  40. static int cmd_mad_ifc(void *inprm, struct ib_mad_st *mad, __u8 port);
  41. static int cmd_write_mgm( /*struct mg_member_layout_st */ void *mg,
  42. __u16 index);
  43. static int cmd_mgid_hash(__u8 * gid, __u16 * mgid_hash_p);
  44. #endif /* __cmdif_h_ */