summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/armada/armada_plane.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/armada/armada_plane.h')
-rw-r--r--drivers/gpu/drm/armada/armada_plane.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/armada/armada_plane.h b/drivers/gpu/drm/armada/armada_plane.h
index ff4281ba7fad..049c593342eb 100644
--- a/drivers/gpu/drm/armada/armada_plane.h
+++ b/drivers/gpu/drm/armada/armada_plane.h
@@ -1,6 +1,10 @@
#ifndef ARMADA_PLANE_H
#define ARMADA_PLANE_H
+#define armada_src_hw(state) armada_rect_hw_fp(&(state)->src)
+#define armada_dst_yx(state) armada_rect_yx(&(state)->dst)
+#define armada_dst_hw(state) armada_rect_hw(&(state)->dst)
+
void armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3],
u16 pitches[3], bool interlaced);
int armada_drm_plane_prepare_fb(struct drm_plane *plane,