1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */ 2 /* 3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd. 4 */ 5 6 #ifndef __MPP_DMABUF_H__ 7 #define __MPP_DMABUF_H__ 8 9 #include "rk_type.h" 10 #include "mpp_err.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 MPP_RET mpp_dmabuf_sync_begin(RK_S32 fd, RK_S32 ro, const char *caller); 17 MPP_RET mpp_dmabuf_sync_end(RK_S32 fd, RK_S32 ro, const char *caller); 18 MPP_RET mpp_dmabuf_sync_partial_begin(RK_S32 fd, RK_S32 ro, RK_U32 offset, RK_U32 length, const char *caller); 19 MPP_RET mpp_dmabuf_sync_partial_end(RK_S32 fd, RK_S32 ro, RK_U32 offset, RK_U32 length, const char *caller); 20 MPP_RET mpp_dmabuf_set_name(RK_S32 fd, const char *name, const char *caller); 21 22 RK_U32 mpp_dmabuf_sync_partial_support(void); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif /* __MPP_DMABUF_H__ */