iPXE
mlx_utils_priv.h
Go to the documentation of this file.
00001 #ifndef SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_
00002 #define SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_
00003 
00004 /*
00005  * Copyright (C) 2015 Mellanox Technologies Ltd.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of the
00010  * License, or any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301, USA.
00021  */
00022 
00023 FILE_LICENCE ( GPL2_OR_LATER );
00024 
00025 #include "../../include/public/mlx_utils.h"
00026 
00027 mlx_status
00028 mlx_utils_delay_in_ms_priv(
00029                         IN mlx_uint32 msecs
00030                 );
00031 
00032 mlx_status
00033 mlx_utils_delay_in_us_priv(
00034                         IN mlx_uint32 usecs
00035                 );
00036 
00037 mlx_status
00038 mlx_utils_ilog2_priv(
00039                         IN mlx_uint32 i,
00040                         OUT mlx_uint32 *log
00041                 );
00042 
00043 mlx_status
00044 mlx_utils_init_lock_priv(
00045                         OUT void **lock
00046                 );
00047 
00048 mlx_status
00049 mlx_utils_free_lock_priv(
00050                         IN void *lock
00051                 );
00052 
00053 mlx_status
00054 mlx_utils_acquire_lock_priv (
00055                         IN void *lock
00056                 );
00057 
00058 mlx_status
00059 mlx_utils_release_lock_priv (
00060                         IN void *lock
00061                 );
00062 
00063 mlx_status
00064 mlx_utils_rand_priv (
00065                 IN mlx_utils *utils,
00066                 OUT mlx_uint32 *rand_num
00067                 );
00068 #endif /* SRC_DRIVERS_INFINIBAND_MLX_UTILS_INCLUDE_PRIVATE_MLX_UTILS_PRIV_H_ */