aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_mode.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index 04db2fdd8692..390db897f322 100644
--- a/drivers/gpu/drm/radeon/radeon_mode.h
+++ b/drivers/gpu/drm/radeon/radeon_mode.h
@@ -321,6 +321,10 @@ struct radeon_crtc {
321 uint32_t crtc_offset; 321 uint32_t crtc_offset;
322 struct drm_gem_object *cursor_bo; 322 struct drm_gem_object *cursor_bo;
323 uint64_t cursor_addr; 323 uint64_t cursor_addr;
324 int cursor_x;
325 int cursor_y;
326 int cursor_hot_x;
327 int cursor_hot_y;
324 int cursor_width; 328 int cursor_width;
325 int cursor_height; 329 int cursor_height;
326 int max_cursor_width; 330 int max_cursor_width;
@@ -462,6 +466,7 @@ struct radeon_gpio_rec {
462 u8 id; 466 u8 id;
463 u32 reg; 467 u32 reg;
464 u32 mask; 468 u32 mask;
469 u32 shift;
465}; 470};
466 471
467struct radeon_hpd { 472struct radeon_hpd {
@@ -748,6 +753,8 @@ extern bool radeon_atombios_get_ppll_ss_info(struct radeon_device *rdev,
748extern bool radeon_atombios_get_asic_ss_info(struct radeon_device *rdev, 753extern bool radeon_atombios_get_asic_ss_info(struct radeon_device *rdev,
749 struct radeon_atom_ss *ss, 754 struct radeon_atom_ss *ss,
750 int id, u32 clock); 755 int id, u32 clock);
756extern struct radeon_gpio_rec radeon_atombios_lookup_gpio(struct radeon_device *rdev,
757 u8 id);
751 758
752extern void radeon_compute_pll_legacy(struct radeon_pll *pll, 759extern void radeon_compute_pll_legacy(struct radeon_pll *pll,
753 uint64_t freq, 760 uint64_t freq,
@@ -802,13 +809,16 @@ extern int radeon_crtc_set_base_atomic(struct drm_crtc *crtc,
802extern int radeon_crtc_do_set_base(struct drm_crtc *crtc, 809extern int radeon_crtc_do_set_base(struct drm_crtc *crtc,
803 struct drm_framebuffer *fb, 810 struct drm_framebuffer *fb,
804 int x, int y, int atomic); 811 int x, int y, int atomic);
805extern int radeon_crtc_cursor_set(struct drm_crtc *crtc, 812extern int radeon_crtc_cursor_set2(struct drm_crtc *crtc,
806 struct drm_file *file_priv, 813 struct drm_file *file_priv,
807 uint32_t handle, 814 uint32_t handle,
808 uint32_t width, 815 uint32_t width,
809 uint32_t height); 816 uint32_t height,
817 int32_t hot_x,
818 int32_t hot_y);
810extern int radeon_crtc_cursor_move(struct drm_crtc *crtc, 819extern int radeon_crtc_cursor_move(struct drm_crtc *crtc,
811 int x, int y); 820 int x, int y);
821extern void radeon_cursor_reset(struct drm_crtc *crtc);
812 822
813extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, int crtc, 823extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, int crtc,
814 unsigned int flags, 824 unsigned int flags,