Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
drm_fb_cma_helper.h File Reference

Go to the source code of this file.

Functions

struct drm_fbdev_cmadrm_fbdev_cma_init (struct drm_device *dev, unsigned int preferred_bpp, unsigned int num_crtc, unsigned int max_conn_count)
 
void drm_fbdev_cma_fini (struct drm_fbdev_cma *fbdev_cma)
 
void drm_fbdev_cma_restore_mode (struct drm_fbdev_cma *fbdev_cma)
 
void drm_fbdev_cma_hotplug_event (struct drm_fbdev_cma *fbdev_cma)
 
struct drm_framebufferdrm_fb_cma_create (struct drm_device *dev, struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd)
 
struct drm_gem_cma_objectdrm_fb_cma_get_gem_obj (struct drm_framebuffer *fb, unsigned int plane)
 

Function Documentation

struct drm_framebuffer* drm_fb_cma_create ( struct drm_device dev,
struct drm_file *  file_priv,
struct drm_mode_fb_cmd2 mode_cmd 
)
read

drm_fb_cma_create() - (struct drm_mode_config_funcs *)->fb_create callback function

If your hardware has special alignment or pitch requirements these should be checked before calling this function.

Definition at line 109 of file drm_fb_cma_helper.c.

struct drm_gem_cma_object* drm_fb_cma_get_gem_obj ( struct drm_framebuffer fb,
unsigned int  plane 
)
read

drm_fb_cma_get_gem_obj() - Get CMA GEM object for framebuffer : The framebuffer : Which plane

Return the CMA GEM object for given framebuffer.

This function will usually be called from the CRTC callback functions.

Definition at line 171 of file drm_fb_cma_helper.c.

void drm_fbdev_cma_fini ( struct drm_fbdev_cma fbdev_cma)

drm_fbdev_cma_fini() - Free drm_fbdev_cma struct : The drm_fbdev_cma struct

Definition at line 356 of file drm_fb_cma_helper.c.

void drm_fbdev_cma_hotplug_event ( struct drm_fbdev_cma fbdev_cma)

drm_fbdev_cma_hotplug_event() - Poll for hotpulug events : The drm_fbdev_cma struct, may be NULL

This function is usually called from the DRM drivers output_poll_changed callback.

Definition at line 401 of file drm_fb_cma_helper.c.

struct drm_fbdev_cma* drm_fbdev_cma_init ( struct drm_device dev,
unsigned int  preferred_bpp,
unsigned int  num_crtc,
unsigned int  max_conn_count 
)
read

drm_fbdev_cma_init() - Allocate and initializes a drm_fbdev_cma struct : DRM device : Preferred bits per pixel for the device : Number of CRTCs : Maximum number of connectors

Returns a newly allocated drm_fbdev_cma struct or a ERR_PTR.

Definition at line 305 of file drm_fb_cma_helper.c.

void drm_fbdev_cma_restore_mode ( struct drm_fbdev_cma fbdev_cma)

drm_fbdev_cma_restore_mode() - Restores initial framebuffer mode : The drm_fbdev_cma struct, may be NULL

This function is usually called from the DRM drivers lastclose callback.

Definition at line 387 of file drm_fb_cma_helper.c.