summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-12-12 17:14:06 +0300
committerJani Nikula <jani.nikula@intel.com>2025-12-15 11:49:30 +0300
commit07d46ada28813393af461d9b739995d00368b93b (patch)
tree5af30adec2799bd7cb5af52948897b91a097f1ee /include
parent8c88104ac6b8bdf5099a22165ff79348f84a0d77 (diff)
downloadlinux-07d46ada28813393af461d9b739995d00368b93b.tar.xz
drm/intel: sort parent interface struct definitions and members
Sort the parent interface struct definitions and members to improve clarity on where to add new stuff. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/7f2e45d030e78928ebc8cf0a6d0fb47a3aa13c48.1765548786.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/intel/display_parent_interface.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/include/drm/intel/display_parent_interface.h b/include/drm/intel/display_parent_interface.h
index 5d4b9dc837d9..55d4df714645 100644
--- a/include/drm/intel/display_parent_interface.h
+++ b/include/drm/intel/display_parent_interface.h
@@ -14,21 +14,7 @@ struct intel_panic;
struct intel_stolen_node;
struct ref_tracker;
-struct intel_display_rpm_interface {
- struct ref_tracker *(*get)(const struct drm_device *drm);
- struct ref_tracker *(*get_raw)(const struct drm_device *drm);
- struct ref_tracker *(*get_if_in_use)(const struct drm_device *drm);
- struct ref_tracker *(*get_noresume)(const struct drm_device *drm);
-
- void (*put)(const struct drm_device *drm, struct ref_tracker *wakeref);
- void (*put_raw)(const struct drm_device *drm, struct ref_tracker *wakeref);
- void (*put_unchecked)(const struct drm_device *drm);
-
- bool (*suspended)(const struct drm_device *drm);
- void (*assert_held)(const struct drm_device *drm);
- void (*assert_block)(const struct drm_device *drm);
- void (*assert_unblock)(const struct drm_device *drm);
-};
+/* Keep struct definitions sorted */
struct intel_display_hdcp_interface {
ssize_t (*gsc_msg_send)(struct intel_hdcp_gsc_context *gsc_context,
@@ -50,6 +36,22 @@ struct intel_display_panic_interface {
void (*finish)(struct intel_panic *panic);
};
+struct intel_display_rpm_interface {
+ struct ref_tracker *(*get)(const struct drm_device *drm);
+ struct ref_tracker *(*get_raw)(const struct drm_device *drm);
+ struct ref_tracker *(*get_if_in_use)(const struct drm_device *drm);
+ struct ref_tracker *(*get_noresume)(const struct drm_device *drm);
+
+ void (*put)(const struct drm_device *drm, struct ref_tracker *wakeref);
+ void (*put_raw)(const struct drm_device *drm, struct ref_tracker *wakeref);
+ void (*put_unchecked)(const struct drm_device *drm);
+
+ bool (*suspended)(const struct drm_device *drm);
+ void (*assert_held)(const struct drm_device *drm);
+ void (*assert_block)(const struct drm_device *drm);
+ void (*assert_unblock)(const struct drm_device *drm);
+};
+
struct intel_display_rps_interface {
void (*boost_if_not_started)(struct dma_fence *fence);
void (*mark_interactive)(struct drm_device *drm, bool interactive);
@@ -88,15 +90,15 @@ struct intel_display_parent_interface {
/** @hdcp: HDCP GSC interface */
const struct intel_display_hdcp_interface *hdcp;
- /** @rpm: Runtime PM functions */
- const struct intel_display_rpm_interface *rpm;
-
/** @irq: IRQ interface */
const struct intel_display_irq_interface *irq;
/** @panic: Panic interface */
const struct intel_display_panic_interface *panic;
+ /** @rpm: Runtime PM functions */
+ const struct intel_display_rpm_interface *rpm;
+
/** @rps: RPS interface. Optional. */
const struct intel_display_rps_interface *rps;
@@ -105,17 +107,17 @@ struct intel_display_parent_interface {
/* Generic independent functions */
struct {
- /** @vgpu_active: Is vGPU active? Optional. */
- bool (*vgpu_active)(struct drm_device *drm);
-
- /** @has_fenced_regions: Support legacy fencing? Optional. */
- bool (*has_fenced_regions)(struct drm_device *drm);
-
/** @fence_priority_display: Set display priority. Optional. */
void (*fence_priority_display)(struct dma_fence *fence);
/** @has_auxccs: Are AuxCCS formats supported by the parent. Optional. */
bool (*has_auxccs)(struct drm_device *drm);
+
+ /** @has_fenced_regions: Support legacy fencing? Optional. */
+ bool (*has_fenced_regions)(struct drm_device *drm);
+
+ /** @vgpu_active: Is vGPU active? Optional. */
+ bool (*vgpu_active)(struct drm_device *drm);
};
};