Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2011-2013 Intel Corporation
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0020  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0021  * SOFTWARE.
0022  */
0023 
0024 #ifndef DRM_PLANE_HELPER_H
0025 #define DRM_PLANE_HELPER_H
0026 
0027 #include <drm/drm_rect.h>
0028 #include <drm/drm_crtc.h>
0029 #include <drm/drm_modeset_helper_vtables.h>
0030 #include <drm/drm_modeset_helper.h>
0031 
0032 /*
0033  * Drivers that don't allow primary plane scaling may pass this macro in place
0034  * of the min/max scale parameters of the update checker function.
0035  *
0036  * Due to src being in 16.16 fixed point and dest being in integer pixels,
0037  * 1<<16 represents no scaling.
0038  */
0039 #define DRM_PLANE_HELPER_NO_SCALING (1<<16)
0040 
0041 void drm_primary_helper_destroy(struct drm_plane *plane);
0042 extern const struct drm_plane_funcs drm_primary_helper_funcs;
0043 
0044 #endif