From: Sagar Arun Kamble <sagar.a.kamble@xxxxxxxxx> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@xxxxxxxxx> Acked-by: Tom O'Rourke <Tom.O'Rourke@xxxxxxxxx> --- 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx