drm_plane_init(9) Initialise a new plane object

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 priv);

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

priv

plane is private (hidden from userspace)?

DESCRIPTION

Inits a new object created as base part of a driver plane object.

RETURNS

Zero on success, error code on failure.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

COPYRIGHT