Scroll to navigation

DRM_PLANE_INIT(9) DRM Core DRM_PLANE_INIT(9)

NAME

drm_plane_init - Initialize a legacy plane

SYNOPSIS

int drm_plane_init(struct drm_device * dev, struct drm_plane * plane, unsigned long possible_crtcs, const struct drm_plane_funcs * funcs, const uint32_t * formats, uint32_t format_count, bool is_primary);

ARGUMENTS

dev
DRM device
plane
plane object to init
possible_crtcs
bitmask of possible CRTCs
funcs
callbacks for the new plane
formats
array of supported formats (DRM_FORMAT_*)
format_count
number of elements in formats
is_primary
plane type (primary vs overlay)

DESCRIPTION

Legacy API to initialize a DRM plane.
New drivers should call drm_universal_plane_init instead.

RETURNS

Zero on success, error code on failure.

AUTHORS

Jesse Barnes <jesse.barnes@intel.com>
 
Intel Corporation,
Initial version
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 
Ideas on board SPRL,
Driver internals
Daniel Vetter <daniel.vetter@ffwll.ch>
 
Intel Corporation,
Contributions all over the place

COPYRIGHT

May 2018 Kernel Hackers Manual 3.16