File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -2186,14 +2186,19 @@ int drm_mode_set_config_internal(struct drm_mode_set *set)
2186
2186
}
2187
2187
EXPORT_SYMBOL (drm_mode_set_config_internal );
2188
2188
2189
- /*
2190
- * Checks that the framebuffer is big enough for the CRTC viewport
2191
- * (x, y, hdisplay, vdisplay)
2189
+ /**
2190
+ * drm_crtc_check_viewport - Checks that a framebuffer is big enough for the
2191
+ * CRTC viewport
2192
+ * @crtc: CRTC that framebuffer will be displayed on
2193
+ * @x: x panning
2194
+ * @y: y panning
2195
+ * @mode: mode that framebuffer will be displayed under
2196
+ * @fb: framebuffer to check size of
2192
2197
*/
2193
- static int drm_crtc_check_viewport (const struct drm_crtc * crtc ,
2194
- int x , int y ,
2195
- const struct drm_display_mode * mode ,
2196
- const struct drm_framebuffer * fb )
2198
+ int drm_crtc_check_viewport (const struct drm_crtc * crtc ,
2199
+ int x , int y ,
2200
+ const struct drm_display_mode * mode ,
2201
+ const struct drm_framebuffer * fb )
2197
2202
2198
2203
{
2199
2204
int hdisplay , vdisplay ;
@@ -2224,6 +2229,7 @@ static int drm_crtc_check_viewport(const struct drm_crtc *crtc,
2224
2229
2225
2230
return 0 ;
2226
2231
}
2232
+ EXPORT_SYMBOL (drm_crtc_check_viewport );
2227
2233
2228
2234
/**
2229
2235
* drm_mode_setcrtc - set CRTC configuration
Original file line number Diff line number Diff line change @@ -882,6 +882,10 @@ extern int drm_plane_init(struct drm_device *dev,
882
882
bool priv );
883
883
extern void drm_plane_cleanup (struct drm_plane * plane );
884
884
extern void drm_plane_force_disable (struct drm_plane * plane );
885
+ extern int drm_crtc_check_viewport (const struct drm_crtc * crtc ,
886
+ int x , int y ,
887
+ const struct drm_display_mode * mode ,
888
+ const struct drm_framebuffer * fb );
885
889
886
890
extern void drm_encoder_cleanup (struct drm_encoder * encoder );
887
891
You can’t perform that action at this time.
0 commit comments