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.

mlx_utils_priv.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_
  2. #define SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_
  3. /*
  4. * Copyright (C) 2015 Mellanox Technologies Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301, USA.
  20. */
  21. FILE_LICENCE ( GPL2_OR_LATER );
  22. #include "../../include/public/mlx_utils.h"
  23. mlx_status
  24. mlx_utils_delay_in_ms_priv(
  25. IN mlx_uint32 msecs
  26. );
  27. mlx_status
  28. mlx_utils_delay_in_us_priv(
  29. IN mlx_uint32 usecs
  30. );
  31. mlx_status
  32. mlx_utils_ilog2_priv(
  33. IN mlx_uint32 i,
  34. OUT mlx_uint32 *log
  35. );
  36. mlx_status
  37. mlx_utils_init_lock_priv(
  38. OUT void **lock
  39. );
  40. mlx_status
  41. mlx_utils_free_lock_priv(
  42. IN void *lock
  43. );
  44. mlx_status
  45. mlx_utils_acquire_lock_priv (
  46. IN void *lock
  47. );
  48. mlx_status
  49. mlx_utils_release_lock_priv (
  50. IN void *lock
  51. );
  52. mlx_status
  53. mlx_utils_rand_priv (
  54. IN mlx_utils *utils,
  55. OUT mlx_uint32 *rand_num
  56. );
  57. #endif /* SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_ */