video: driver: Add support to debugfs
Add debugfs support. Change-Id: I78b66048cc7a0d9e74bf0e0b13b5ab15ec77c17b Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
@@ -65,7 +65,9 @@ struct msm_vidc_core {
|
||||
struct v4l2_device v4l2_dev;
|
||||
struct list_head instances;
|
||||
struct list_head dangling_instances;
|
||||
struct dentry *debugfs_parent;
|
||||
struct dentry *debugfs_root;
|
||||
char fw_version[MAX_NAME_LENGTH];
|
||||
enum msm_vidc_core_state state;
|
||||
struct mutex lock;
|
||||
struct msm_vidc_dt *dt;
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/time.h>
|
||||
|
||||
void do_gettimeofday(struct timeval *__ddl_tv);
|
||||
|
||||
#ifndef VIDC_DBG_LABEL
|
||||
#define VIDC_DBG_LABEL "msm_vidc"
|
||||
#endif
|
||||
@@ -103,4 +105,19 @@ enum vidc_msg_prio {
|
||||
|
||||
const char *level_str(u32 level);
|
||||
|
||||
enum msm_vidc_debugfs_event {
|
||||
MSM_VIDC_DEBUGFS_EVENT_ETB,
|
||||
MSM_VIDC_DEBUGFS_EVENT_EBD,
|
||||
MSM_VIDC_DEBUGFS_EVENT_FTB,
|
||||
MSM_VIDC_DEBUGFS_EVENT_FBD,
|
||||
};
|
||||
|
||||
struct dentry *msm_vidc_debugfs_init_drv(void);
|
||||
struct dentry *msm_vidc_debugfs_init_core(void *core);
|
||||
struct dentry *msm_vidc_debugfs_init_inst(void *inst,
|
||||
struct dentry *parent);
|
||||
void msm_vidc_debugfs_deinit_inst(void *inst);
|
||||
void msm_vidc_debugfs_update(void *inst,
|
||||
enum msm_vidc_debugfs_event e);
|
||||
|
||||
#endif
|
||||
|
@@ -132,6 +132,7 @@ struct msm_vidc_inst {
|
||||
bool opsc_properties_set;
|
||||
struct dentry *debugfs_root;
|
||||
struct msm_vidc_debug debug;
|
||||
struct debug_buf_count debug_count;
|
||||
struct msm_vidc_inst_capability *capabilities;
|
||||
struct completion completions[MAX_SIGNAL];
|
||||
bool active;
|
||||
|
@@ -17,6 +17,7 @@
|
||||
#include <media/videobuf2-v4l2.h>
|
||||
|
||||
#define MAX_NAME_LENGTH 128
|
||||
#define VENUS_VERSION_LENGTH 128
|
||||
#define MAX_MATRIX_COEFFS 9
|
||||
#define MAX_BIAS_COEFFS 3
|
||||
#define MAX_LIMIT_COEFFS 6
|
||||
@@ -406,6 +407,13 @@ struct msm_vidc_inst_cap_entry {
|
||||
enum msm_vidc_inst_capability_type cap_id;
|
||||
};
|
||||
|
||||
struct debug_buf_count {
|
||||
int etb;
|
||||
int ftb;
|
||||
int fbd;
|
||||
int ebd;
|
||||
};
|
||||
|
||||
enum efuse_purpose {
|
||||
SKU_VERSION = 0,
|
||||
};
|
||||
|
Reference in New Issue
Block a user