1 /* 2 * Copyright 2017 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_H264E_DEBUG_H__ 18 #define __HAL_H264E_DEBUG_H__ 19 20 #include "mpp_debug.h" 21 22 #define HAL_H264E_DBG_SIMPLE (0x00000001) 23 #define HAL_H264E_DBG_FUNCTION (0x00000002) 24 #define HAL_H264E_DBG_FLOW (0x00000004) 25 #define HAL_H264E_DBG_DETAIL (0x00000008) 26 27 #define HAL_H264E_DBG_BUFFER (0x00000010) 28 #define HAL_H264E_DBG_REGS (0x00000020) 29 #define HAL_H264E_DBG_AMEND (0x00000040) 30 31 #define HAL_H264E_DBG_RC (0x00000100) 32 #define HAL_H264E_DBG_SMART_V3 (0x00000200) 33 34 #define hal_h264e_dbg(flag, fmt, ...) _mpp_dbg(hal_h264e_debug, flag, fmt, ## __VA_ARGS__) 35 #define hal_h264e_dbg_f(flag, fmt, ...) _mpp_dbg_f(hal_h264e_debug, flag, fmt, ## __VA_ARGS__) 36 37 #define hal_h264e_dbg_func(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_FUNCTION, fmt, ## __VA_ARGS__) 38 #define hal_h264e_dbg_flow(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_FLOW, fmt, ## __VA_ARGS__) 39 #define hal_h264e_dbg_detail(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_DETAIL, fmt, ## __VA_ARGS__) 40 41 #define hal_h264e_dbg_buffer(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_BUFFER, fmt, ## __VA_ARGS__) 42 #define hal_h264e_dbg_regs(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_REGS, fmt, ## __VA_ARGS__) 43 #define hal_h264e_dbg_amend(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_AMEND, fmt, ## __VA_ARGS__) 44 45 #define hal_h264e_dbg_rc(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_RC, fmt, ## __VA_ARGS__) 46 #define hal_h264e_dbg_smartv3(fmt, ...) hal_h264e_dbg_f(HAL_H264E_DBG_SMART_V3, fmt, ## __VA_ARGS__) 47 48 #define hal_h264e_enter() hal_h264e_dbg_func("enter\n"); 49 #define hal_h264e_leave() hal_h264e_dbg_func("leave\n"); 50 51 extern RK_U32 hal_h264e_debug; 52 53 #endif /* __HAL_H264E_DEBUG_H__ */ 54