mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
![Noralf Trønnes](/assets/img/avatar_default.png)
GEM lookup failure can easily be triggered by userspace so make it a debug message, not an error message. Also remove unnecessary inner parentheses and fix alphabetical struct declaration order. Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/1505147865-18194-2-git-send-email-noralf@tronnes.org
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#ifndef __DRM_GEM_FB_HELPER_H__
|
|
#define __DRM_GEM_FB_HELPER_H__
|
|
|
|
struct drm_device;
|
|
struct drm_fb_helper_surface_size;
|
|
struct drm_file;
|
|
struct drm_framebuffer;
|
|
struct drm_framebuffer_funcs;
|
|
struct drm_gem_object;
|
|
struct drm_mode_fb_cmd2;
|
|
struct drm_plane;
|
|
struct drm_plane_state;
|
|
|
|
struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
|
|
unsigned int plane);
|
|
void drm_gem_fb_destroy(struct drm_framebuffer *fb);
|
|
int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file,
|
|
unsigned int *handle);
|
|
|
|
struct drm_framebuffer *
|
|
drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
|
|
const struct drm_mode_fb_cmd2 *mode_cmd,
|
|
const struct drm_framebuffer_funcs *funcs);
|
|
struct drm_framebuffer *
|
|
drm_gem_fb_create(struct drm_device *dev, struct drm_file *file,
|
|
const struct drm_mode_fb_cmd2 *mode_cmd);
|
|
|
|
int drm_gem_fb_prepare_fb(struct drm_plane *plane,
|
|
struct drm_plane_state *state);
|
|
|
|
struct drm_framebuffer *
|
|
drm_gem_fbdev_fb_create(struct drm_device *dev,
|
|
struct drm_fb_helper_surface_size *sizes,
|
|
unsigned int pitch_align, struct drm_gem_object *obj,
|
|
const struct drm_framebuffer_funcs *funcs);
|
|
|
|
#endif
|