drivers/media/platform/amd/isp4/isp4_debug.h

Source file repositories/reference/linux-study-clean/drivers/media/platform/amd/isp4/isp4_debug.h

File Facts

System
Linux kernel
Corpus path
drivers/media/platform/amd/isp4/isp4_debug.h
Extension
.h
Size
1198 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/media
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ISP4_DEBUG_H_
#define _ISP4_DEBUG_H_

#include <linux/dev_printk.h>
#include <linux/printk.h>

#include "isp4_subdev.h"

#ifdef CONFIG_DEBUG_FS
struct isp4_device;

void isp_debugfs_create(struct isp4_device *isp_dev);
void isp_debugfs_remove(struct isp4_device *isp_dev);
void isp_fw_log_print(struct isp4_subdev *isp);

#else

/* to avoid checkpatch warning */
#define isp_debugfs_create(cam) ((void)(cam))
#define isp_debugfs_remove(cam) ((void)(cam))
#define isp_fw_log_print(isp) ((void)(isp))

#endif /* CONFIG_DEBUG_FS */

void isp4dbg_show_bufmeta_info(struct device *dev, char *pre, void *p,
			       void *orig_buf /* struct sys_img_buf_handle */);
char *isp4dbg_get_img_fmt_str(int fmt /* enum _image_format_t */);
char *isp4dbg_get_out_ch_str(int ch /* enum _isp_pipe_out_ch_t */);
char *isp4dbg_get_cmd_str(u32 cmd);
char *isp4dbg_get_buf_type(u32 type);/* enum _buffer_type_t */
char *isp4dbg_get_resp_str(u32 resp);
char *isp4dbg_get_buf_src_str(u32 src);
char *isp4dbg_get_buf_done_str(u32 status);
char *isp4dbg_get_if_stream_str(u32 stream);

#endif /* _ISP4_DEBUG_H_ */

Annotation

Implementation Notes