video: rockchip: vcodec: add log message in iommu drm
[firefly-linux-kernel-4.4.55.git] / drivers / video / rockchip / vcodec / vcodec_iommu_ops.h
index 86069985c13d30f539cdaf3eaa6bb4a089cd1e01..807ad2f83145bddcc19dbfdf49254732af0981d4 100644 (file)
 #include <linux/platform_device.h>
 #include "vcodec_service.h"
 
+#define BUFFER_LIST_MAX_NUMS   30
+
 #define ALLOCATOR_USE_ION              0x00000000
 #define ALLOCATOR_USE_DRM              0x00000001
 
 #define DEBUG_IOMMU_OPS_DUMP   0x00020000
+#define DEBUG_IOMMU_NORMAL     0x00040000
 
 #define vpu_iommu_debug_func(debug_level, type, fmt, args...)  \
        do {                                                    \
@@ -65,6 +68,7 @@ struct vcodec_iommu_ops {
 struct vcodec_iommu_session_info {
        struct list_head head;
        struct vpu_session *session;
+       int buffer_nums;
        struct list_head buffer_list;
        struct mutex list_mutex;
        int max_idx;