summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/i9xx_plane.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-12-21 13:09:57 +0200
committerJani Nikula <jani.nikula@intel.com>2020-12-22 10:09:50 +0200
commit00a16d02f4df8383e34d6ed81accc48b8f1b8143 (patch)
tree43876b31226b2006b3e9e51365c75771225757f2 /drivers/gpu/drm/i915/display/i9xx_plane.h
parent99ce270a1ec1540d2517bac646a552c0199ae226 (diff)
downloadlinux-00a16d02f4df8383e34d6ed81accc48b8f1b8143.tar.gz
linux-00a16d02f4df8383e34d6ed81accc48b8f1b8143.tar.bz2
linux-00a16d02f4df8383e34d6ed81accc48b8f1b8143.zip
drm/i915: refactor i915 plane code into separate file.
Ville suggested this as a good idea, let's move this before moving the crtc code. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [Jani: fixed i915xx_plane.h standalone build.] Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201221110957.18215-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/i9xx_plane.h')
-rw-r--r--drivers/gpu/drm/i915/display/i9xx_plane.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/i9xx_plane.h b/drivers/gpu/drm/i915/display/i9xx_plane.h
new file mode 100644
index 000000000000..bc2834a62735
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/i9xx_plane.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2020 Intel Corporation
+ */
+
+#ifndef _I9XX_PLANE_H_
+#define _I9XX_PLANE_H_
+
+#include <linux/types.h>
+
+enum pipe;
+struct drm_i915_private;
+struct intel_plane;
+struct intel_plane_state;
+
+unsigned int i9xx_plane_max_stride(struct intel_plane *plane,
+ u32 pixel_format, u64 modifier,
+ unsigned int rotation);
+int i9xx_check_plane_surface(struct intel_plane_state *plane_state);
+
+struct intel_plane *
+intel_primary_plane_create(struct drm_i915_private *dev_priv, enum pipe pipe);
+
+#endif