diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 362d9559f065..bdae70e128c4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |||
@@ -57,6 +57,7 @@ struct amdgpu_hpd; | |||
57 | #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base) | 57 | #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base) |
58 | #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base) | 58 | #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base) |
59 | #define to_amdgpu_framebuffer(x) container_of(x, struct amdgpu_framebuffer, base) | 59 | #define to_amdgpu_framebuffer(x) container_of(x, struct amdgpu_framebuffer, base) |
60 | #define to_amdgpu_plane(x) container_of(x, struct amdgpu_plane, base) | ||
60 | 61 | ||
61 | #define AMDGPU_MAX_HPD_PINS 6 | 62 | #define AMDGPU_MAX_HPD_PINS 6 |
62 | #define AMDGPU_MAX_CRTCS 6 | 63 | #define AMDGPU_MAX_CRTCS 6 |
@@ -439,6 +440,18 @@ struct amdgpu_crtc { | |||
439 | struct drm_pending_vblank_event *event; | 440 | struct drm_pending_vblank_event *event; |
440 | }; | 441 | }; |
441 | 442 | ||
443 | struct amdgpu_drm_plane_state { | ||
444 | struct drm_plane_state base; | ||
445 | unsigned int h_ratio; | ||
446 | unsigned int v_ratio; | ||
447 | }; | ||
448 | |||
449 | static inline struct amdgpu_drm_plane_state * | ||
450 | to_amdgpu_plane_state(struct drm_plane_state *state) | ||
451 | { | ||
452 | return container_of(state, struct amdgpu_drm_plane_state, base); | ||
453 | } | ||
454 | |||
442 | struct amdgpu_plane { | 455 | struct amdgpu_plane { |
443 | struct drm_plane base; | 456 | struct drm_plane base; |
444 | enum drm_plane_type plane_type; | 457 | enum drm_plane_type plane_type; |