xref: /rockchip-linux_mpp/osal/inc/mpp_eventfd.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */
2 /*
3  * Copyright (c) 2015 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef __MPP_EVENTFD_H__
7 #define __MPP_EVENTFD_H__
8 
9 #include "rk_type.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 RK_S32 mpp_eventfd_get(RK_U32 init);
16 RK_S32 mpp_eventfd_put(RK_S32 fd);
17 
18 RK_S32 mpp_eventfd_read(RK_S32 fd, RK_U64 *val, RK_S64 timeout);
19 RK_S32 mpp_eventfd_write(RK_S32 fd, RK_U64 val);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif /*__MPP_EVENTFD_H__*/
26 
27