1 /* 2 * Copyright 2020 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 __HAL_VP9D_DEBUG_H__ 18 #define __HAL_VP9D_DEBUG_H__ 19 20 #include "mpp_debug.h" 21 22 #define HAL_VP9D_DBG_FUNC (0x00000001) 23 #define HAL_VP9D_DBG_PAR (0x00000002) 24 #define HAL_VP9D_DBG_REG (0x00000004) 25 26 #define hal_vp9d_dbg(flag, fmt, ...) _mpp_dbg(hal_vp9d_debug, flag, fmt, ## __VA_ARGS__) 27 #define hal_vp9d_dbg_f(flag, fmt, ...) _mpp_dbg_f(hal_vp9d_debug, flag, fmt, ## __VA_ARGS__) 28 29 #define hal_vp9d_dbg_func(fmt, ...) hal_vp9d_dbg_f(HAL_VP9D_DBG_FUNC, fmt, ## __VA_ARGS__) 30 #define hal_vp9d_dbg_par(fmt, ...) hal_vp9d_dbg(HAL_VP9D_DBG_PAR, fmt, ## __VA_ARGS__) 31 #define hal_vp9d_dbg_reg(fmt, ...) hal_vp9d_dbg(HAL_VP9D_DBG_REG, fmt, ## __VA_ARGS__) 32 33 #define hal_vp9d_enter() hal_vp9d_dbg_func("(%d) enter\n", __LINE__); 34 #define hal_vp9d_leave() hal_vp9d_dbg_func("(%d) leave\n", __LINE__); 35 36 extern RK_U32 hal_vp9d_debug; 37 38 #endif /* __HAL_VP9D_DEBUG_H__ */ 39