iPXE
mlx_utils_priv.h
Go to the documentation of this file.
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
23FILE_LICENCE ( GPL2_OR_LATER );
24
26
29 IN mlx_uint32 msecs
30 );
31
34 IN mlx_uint32 usecs
35 );
36
39 IN mlx_uint32 i,
40 OUT mlx_uint32 *log
41 );
42
45 OUT void **lock
46 );
47
50 IN void *lock
51 );
52
55 IN void *lock
56 );
57
60 IN void *lock
61 );
62
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_ */
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
uint32_t mlx_uint32
int mlx_status
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
mlx_status mlx_utils_delay_in_ms_priv(IN mlx_uint32 msecs)
mlx_status mlx_utils_free_lock_priv(IN void *lock)
mlx_status mlx_utils_release_lock_priv(IN void *lock)
mlx_status mlx_utils_init_lock_priv(OUT void **lock)
mlx_status mlx_utils_acquire_lock_priv(IN void *lock)
mlx_status mlx_utils_delay_in_us_priv(IN mlx_uint32 usecs)
mlx_status mlx_utils_rand_priv(IN mlx_utils *utils, OUT mlx_uint32 *rand_num)
mlx_status mlx_utils_ilog2_priv(IN mlx_uint32 i, OUT mlx_uint32 *log)