summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_vdsc.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-04-29 15:29:32 +0300
committerJani Nikula <jani.nikula@intel.com>2019-04-30 15:04:44 +0300
commitb375d0ef25896eccef5a057fd283935c47e67949 (patch)
tree03e9301481daae31660d1172d80cc47e1dcb230b /drivers/gpu/drm/i915/intel_vdsc.h
parent05ca9306715c9fa80edc31c8c5a60d6c5328d795 (diff)
downloadlinux-b375d0ef25896eccef5a057fd283935c47e67949.tar.bz2
drm/i915: extract intel_vdsc.h from intel_drv.h and i915_drv.h
It used to be handy that we only had a couple of headers, but over time intel_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver. Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed. No functional changes. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/76d2719b462004ec6f6f5c302ee5d3876357c599.1556540890.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_vdsc.h')
-rw-r--r--drivers/gpu/drm/i915/intel_vdsc.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_vdsc.h b/drivers/gpu/drm/i915/intel_vdsc.h
new file mode 100644
index 000000000000..90d3f6017fcb
--- /dev/null
+++ b/drivers/gpu/drm/i915/intel_vdsc.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2019 Intel Corporation
+ */
+
+#ifndef __INTEL_VDSC_H__
+#define __INTEL_VDSC_H__
+
+struct intel_encoder;
+struct intel_crtc_state;
+struct intel_dp;
+
+void intel_dsc_enable(struct intel_encoder *encoder,
+ const struct intel_crtc_state *crtc_state);
+void intel_dsc_disable(const struct intel_crtc_state *crtc_state);
+int intel_dp_compute_dsc_params(struct intel_dp *intel_dp,
+ struct intel_crtc_state *pipe_config);
+enum intel_display_power_domain
+intel_dsc_power_domain(const struct intel_crtc_state *crtc_state);
+
+#endif /* __INTEL_VDSC_H__ */