Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
drm_fb_cma_helper.c File Reference
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_fb_cma_helper.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  drm_fb_cma
struct  drm_fbdev_cma


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

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 

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 

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 

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.

EXPORT_SYMBOL_GPL ( drm_fb_cma_create  )
EXPORT_SYMBOL_GPL ( drm_fb_cma_get_gem_obj  )
EXPORT_SYMBOL_GPL ( drm_fbdev_cma_init  )
EXPORT_SYMBOL_GPL ( drm_fbdev_cma_fini  )
EXPORT_SYMBOL_GPL ( drm_fbdev_cma_restore_mode  )
EXPORT_SYMBOL_GPL ( drm_fbdev_cma_hotplug_event  )