aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index e5d2ce48cb1e..362d9559f065 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -60,6 +60,7 @@ struct amdgpu_hpd;
60 60
61#define AMDGPU_MAX_HPD_PINS 6 61#define AMDGPU_MAX_HPD_PINS 6
62#define AMDGPU_MAX_CRTCS 6 62#define AMDGPU_MAX_CRTCS 6
63#define AMDGPU_MAX_PLANES 6
63#define AMDGPU_MAX_AFMT_BLOCKS 9 64#define AMDGPU_MAX_AFMT_BLOCKS 9
64 65
65enum amdgpu_rmx_type { 66enum amdgpu_rmx_type {
@@ -327,6 +328,7 @@ struct amdgpu_mode_info {
327 struct card_info *atom_card_info; 328 struct card_info *atom_card_info;
328 bool mode_config_initialized; 329 bool mode_config_initialized;
329 struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS]; 330 struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS];
331 struct amdgpu_plane *planes[AMDGPU_MAX_PLANES];
330 struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS]; 332 struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS];
331 /* DVI-I properties */ 333 /* DVI-I properties */
332 struct drm_property *coherent_mode_property; 334 struct drm_property *coherent_mode_property;
@@ -356,6 +358,7 @@ struct amdgpu_mode_info {
356 int num_dig; /* number of dig blocks */ 358 int num_dig; /* number of dig blocks */
357 int disp_priority; 359 int disp_priority;
358 const struct amdgpu_display_funcs *funcs; 360 const struct amdgpu_display_funcs *funcs;
361 enum drm_plane_type *plane_type;
359}; 362};
360 363
361#define AMDGPU_MAX_BL_LEVEL 0xFF 364#define AMDGPU_MAX_BL_LEVEL 0xFF
@@ -436,6 +439,11 @@ struct amdgpu_crtc {
436 struct drm_pending_vblank_event *event; 439 struct drm_pending_vblank_event *event;
437}; 440};
438 441
442struct amdgpu_plane {
443 struct drm_plane base;
444 enum drm_plane_type plane_type;
445};
446
439struct amdgpu_encoder_atom_dig { 447struct amdgpu_encoder_atom_dig {
440 bool linkb; 448 bool linkb;
441 /* atom dig */ 449 /* atom dig */