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