[Intel-gfx] [RFC 13/22] drm/i915/slpc: Add Display mode event related data structures

tom.orourke at intel.com tom.orourke at intel.com
Wed Jan 20 18:26:15 PST 2016


From: Sagar Arun Kamble <sagar.a.kamble at intel.com>

Signed-off-by: Sagar Arun Kamble <sagar.a.kamble at intel.com>
Acked-by: Tom O'Rourke <Tom.O'Rourke at intel.com>
---
 drivers/gpu/drm/i915/intel_slpc.h | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_slpc.h b/drivers/gpu/drm/i915/intel_slpc.h
index 7287c65..9673a63 100644
--- a/drivers/gpu/drm/i915/intel_slpc.h
+++ b/drivers/gpu/drm/i915/intel_slpc.h
@@ -103,8 +103,46 @@ struct slpc_shared_data {
 	u32 override_parameters_values[SLPC_MAX_OVERRIDE_PARAMETERS];
 } __packed;
 
+#ifndef MAX_INTEL_PIPES
+#define MAX_INTEL_PIPES		3
+#endif
+#ifndef MAX_PLANES_PER_PIPE
+#define MAX_PLANES_PER_PIPE	4
+#endif
+#ifndef MAX_NUM_OF_PIPE
+#define MAX_NUM_OF_PIPE     (MAX_INTEL_PIPES + 1)
+#endif
+
+struct intel_display_pipe_basic_info {
+	union {
+		u32 data;
+		struct {
+			u32 is_widi:1;
+			u32 refresh_rate:7;
+			u32 vsync_ft_usec:24;
+		};
+	};
+}__packed;
+
+struct intel_slpc_display_mode_event_params {
+	struct {
+		struct intel_display_pipe_basic_info per_pipe_info[MAX_NUM_OF_PIPE];
+		union {
+			u32 global_data;
+			struct {
+				u32 active_pipes_bitmask:MAX_NUM_OF_PIPE;
+				u32 fullscreen_pipes:MAX_NUM_OF_PIPE;
+				u32 vbi_sync_on_pipes:MAX_NUM_OF_PIPE;
+				u32 num_active_pipes:2;
+			};
+		};
+	};
+}__packed;
+
+
 struct intel_slpc {
 	struct drm_i915_gem_object *shared_data_obj;
+	struct intel_slpc_display_mode_event_params display_mode_params;
 };
 
 /* intel_slpc.c */
-- 
1.9.1



More information about the Intel-gfx mailing list