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.

nodnic_prm.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2015 Mellanox Technologies Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of the
  7. * License, or any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. * 02110-1301, USA.
  18. */
  19. FILE_LICENCE ( GPL2_OR_LATER );
  20. #ifndef SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
  21. #define SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
  22. #include "mlx_bitops.h"
  23. struct nodnic_wqe_segment_data_ptr_st { /* Little Endian */
  24. pseudo_bit_t byte_count[0x0001f];
  25. pseudo_bit_t always0[0x00001];
  26. /* -------------- */
  27. pseudo_bit_t l_key[0x00020];
  28. /* -------------- */
  29. pseudo_bit_t local_address_h[0x00020];
  30. /* -------------- */
  31. pseudo_bit_t local_address_l[0x00020];
  32. /* -------------- */
  33. };
  34. struct MLX_DECLARE_STRUCT ( nodnic_wqe_segment_data_ptr );
  35. #define HERMON_MAX_SCATTER 1
  36. struct nodnic_recv_wqe {
  37. struct nodnic_wqe_segment_data_ptr data[HERMON_MAX_SCATTER];
  38. } __attribute__ (( packed ));
  39. #endif /* SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_ */