drivers/gpu/drm/i915/display/intel_hdcp.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_hdcp.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/display/intel_hdcp.c
Extension
.c
Size
83079 bytes
Lines
2892
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: operation-table or driver-model contract
Status
pattern 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

static const struct file_operations intel_hdcp_force_14_fops = {
	.owner = THIS_MODULE,
	.open = intel_hdcp_force_14_open,
	.read = seq_read,
	.llseek = seq_lseek,
	.release = single_release,
	.write = intel_hdcp_force_14_write
};

void intel_hdcp_connector_debugfs_add(struct intel_connector *connector)
{
	struct dentry *root = connector->base.debugfs_entry;
	int connector_type = connector->base.connector_type;

	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
	    connector_type == DRM_MODE_CONNECTOR_HDMIA ||
	    connector_type == DRM_MODE_CONNECTOR_HDMIB) {
		debugfs_create_file("i915_hdcp_sink_capability", 0444, root,
				    connector, &intel_hdcp_sink_capability_fops);
		debugfs_create_file("i915_force_hdcp14", 0644, root,
				    connector, &intel_hdcp_force_14_fops);
	}
}

Annotation

Implementation Notes