drivers/gpu/drm/imagination/pvr_fw_trace.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imagination/pvr_fw_trace.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/imagination/pvr_fw_trace.h
Extension
.h
Size
1821 bytes
Lines
74
Domain
Driver Families
Bucket
drivers/gpu
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

struct pvr_fw_trace_buffer {
	/** @buf_obj: FW buffer object representing trace buffer. */
	struct pvr_fw_object *buf_obj;

	/** @buf: Pointer to CPU mapping of trace buffer. */
	u32 *buf;

	/**
	 * @tracebuf_space: Pointer to FW tracebuf_space structure for this
	 *                  trace buffer.
	 */
	struct rogue_fwif_tracebuf_space *tracebuf_space;
};

/**
 * struct pvr_fw_trace - Device firmware trace data
 */
struct pvr_fw_trace {
	/**
	 * @tracebuf_ctrl_obj: Object representing FW trace buffer control
	 *                     structure.
	 */
	struct pvr_fw_object *tracebuf_ctrl_obj;

	/**
	 * @tracebuf_ctrl: Pointer to CPU mapping of FW trace buffer control
	 *                 structure.
	 */
	struct rogue_fwif_tracebuf *tracebuf_ctrl;

	/**
	 * @buffers: Array representing the actual trace buffers owned by this
	 *           device.
	 */
	struct pvr_fw_trace_buffer buffers[ROGUE_FW_THREAD_MAX];

	/** @group_mask: Mask of enabled trace groups. */
	u32 group_mask;
};

int pvr_fw_trace_init(struct pvr_device *pvr_dev);
void pvr_fw_trace_fini(struct pvr_device *pvr_dev);

/* Forward declaration from <linux/dcache.h>. */
struct dentry;

void pvr_fw_trace_debugfs_init(struct pvr_device *pvr_dev, struct dentry *dir);

#endif /* PVR_FW_TRACE_H */

Annotation

Implementation Notes