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_priv.h 1.5KB

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_priv__h__
  20. #define __cmdif_priv__h__
  21. typedef enum {
  22. TRANS_NA,
  23. TRANS_IMMEDIATE,
  24. TRANS_MAILBOX
  25. } trans_type_t;
  26. typedef struct {
  27. __u32 *in_param; /* holds the virtually contigious buffer of the parameter block passed */
  28. unsigned int in_param_size;
  29. trans_type_t in_trans;
  30. __u32 input_modifier;
  31. __u32 *out_param; /* holds the virtually contigious buffer of the parameter block passed */
  32. unsigned int out_param_size;
  33. trans_type_t out_trans;
  34. __u32 opcode;
  35. __u8 opcode_modifier;
  36. } command_fields_t;
  37. typedef int XHH_cmd_status_t;
  38. static XHH_cmd_status_t cmd_invoke(command_fields_t * cmd_prms);
  39. #endif