1 /* 2 * Copyright 2016 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __RC_HAL_H__ 18 #define __RC_HAL_H__ 19 20 #include "mpp_platform.h" 21 22 #include "rc/rc_vepu.h" 23 #include "rc/rc_vepu540.h" 24 25 /* parameters to set to hardware */ 26 typedef struct RcHalSet_t { 27 /* unique sequential id */ 28 RK_S32 seq_id; 29 RK_S32 target_bit; 30 31 union { 32 RcVepuSet vepu; 33 RcVepu540Set vepu540; 34 }; 35 } RcHalSet; 36 37 /* parameters returned from hardware */ 38 typedef struct RcHalRet_t { 39 /* unique sequential id */ 40 RK_S32 seq_id; 41 RK_S32 stream_size; 42 43 union { 44 RcVepuRet vepu; 45 RcVepu540Ret vepu540; 46 }; 47 } RcHalRet; 48 49 #endif /* __RC_HAL_H__ */ 50