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

Go to the source code of this file.

Data Structures

struct  crtc_cookie
 
struct  imx_drm_device
 
struct  imx_drm_crtc
 
struct  imx_drm_encoder
 
struct  imx_drm_connector
 

Macros

#define MAX_CRTC   4
 

Functions

int imx_drm_crtc_panel_format (struct drm_crtc *crtc, u32 encoder_type, u32 interface_pix_fmt)
 
 EXPORT_SYMBOL_GPL (imx_drm_crtc_panel_format)
 
int imx_drm_crtc_vblank_get (struct imx_drm_crtc *imx_drm_crtc)
 
 EXPORT_SYMBOL_GPL (imx_drm_crtc_vblank_get)
 
void imx_drm_crtc_vblank_put (struct imx_drm_crtc *imx_drm_crtc)
 
 EXPORT_SYMBOL_GPL (imx_drm_crtc_vblank_put)
 
void imx_drm_handle_vblank (struct imx_drm_crtc *imx_drm_crtc)
 
 EXPORT_SYMBOL_GPL (imx_drm_handle_vblank)
 
struct drm_deviceimx_drm_device_get (void)
 
 EXPORT_SYMBOL_GPL (imx_drm_device_get)
 
void imx_drm_device_put (void)
 
 EXPORT_SYMBOL_GPL (imx_drm_device_put)
 
int imx_drm_add_crtc (struct drm_crtc *crtc, struct imx_drm_crtc **new_crtc, const struct imx_drm_crtc_helper_funcs *imx_drm_helper_funcs, struct module *owner, void *cookie, int id)
 
 EXPORT_SYMBOL_GPL (imx_drm_add_crtc)
 
int imx_drm_remove_crtc (struct imx_drm_crtc *imx_drm_crtc)
 
 EXPORT_SYMBOL_GPL (imx_drm_remove_crtc)
 
int imx_drm_add_encoder (struct drm_encoder *encoder, struct imx_drm_encoder **newenc, struct module *owner)
 
 EXPORT_SYMBOL_GPL (imx_drm_add_encoder)
 
int imx_drm_encoder_add_possible_crtcs (struct imx_drm_encoder *imx_drm_encoder, struct device_node *np)
 
 EXPORT_SYMBOL_GPL (imx_drm_encoder_add_possible_crtcs)
 
int imx_drm_encoder_get_mux_id (struct imx_drm_encoder *imx_drm_encoder, struct drm_crtc *crtc)
 
int imx_drm_remove_encoder (struct imx_drm_encoder *imx_drm_encoder)
 
 EXPORT_SYMBOL_GPL (imx_drm_remove_encoder)
 
int imx_drm_add_connector (struct drm_connector *connector, struct imx_drm_connector **new_con, struct module *owner)
 
 EXPORT_SYMBOL_GPL (imx_drm_add_connector)
 
void imx_drm_fb_helper_set (struct drm_fbdev_cma *fbdev_helper)
 
 EXPORT_SYMBOL_GPL (imx_drm_fb_helper_set)
 
int imx_drm_remove_connector (struct imx_drm_connector *imx_drm_connector)
 
 EXPORT_SYMBOL_GPL (imx_drm_remove_connector)
 
 module_init (imx_drm_init)
 
 module_exit (imx_drm_exit)
 
 MODULE_AUTHOR ("Sascha Hauer <[email protected]>")
 
 MODULE_DESCRIPTION ("i.MX drm driver core")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX_CRTC   4

Definition at line 29 of file imx-drm-core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( imx_drm_crtc_panel_format  )
EXPORT_SYMBOL_GPL ( imx_drm_crtc_vblank_get  )
EXPORT_SYMBOL_GPL ( imx_drm_crtc_vblank_put  )
EXPORT_SYMBOL_GPL ( imx_drm_handle_vblank  )
EXPORT_SYMBOL_GPL ( imx_drm_device_get  )
EXPORT_SYMBOL_GPL ( imx_drm_device_put  )
EXPORT_SYMBOL_GPL ( imx_drm_add_crtc  )
EXPORT_SYMBOL_GPL ( imx_drm_remove_crtc  )
EXPORT_SYMBOL_GPL ( imx_drm_add_encoder  )
EXPORT_SYMBOL_GPL ( imx_drm_encoder_add_possible_crtcs  )
EXPORT_SYMBOL_GPL ( imx_drm_remove_encoder  )
EXPORT_SYMBOL_GPL ( imx_drm_add_connector  )
EXPORT_SYMBOL_GPL ( imx_drm_fb_helper_set  )
EXPORT_SYMBOL_GPL ( imx_drm_remove_connector  )
int imx_drm_add_connector ( struct drm_connector connector,
struct imx_drm_connector **  new_con,
struct module owner 
)

Definition at line 706 of file imx-drm-core.c.

int imx_drm_add_crtc ( struct drm_crtc crtc,
struct imx_drm_crtc **  new_crtc,
const struct imx_drm_crtc_helper_funcs imx_drm_helper_funcs,
struct module owner,
void cookie,
int  id 
)

Definition at line 478 of file imx-drm-core.c.

int imx_drm_add_encoder ( struct drm_encoder encoder,
struct imx_drm_encoder **  newenc,
struct module owner 
)

Definition at line 562 of file imx-drm-core.c.

int imx_drm_crtc_panel_format ( struct drm_crtc crtc,
u32  encoder_type,
u32  interface_pix_fmt 
)

Definition at line 115 of file imx-drm-core.c.

int imx_drm_crtc_vblank_get ( struct imx_drm_crtc imx_drm_crtc)

Definition at line 142 of file imx-drm-core.c.

void imx_drm_crtc_vblank_put ( struct imx_drm_crtc imx_drm_crtc)

Definition at line 148 of file imx-drm-core.c.

struct drm_device* imx_drm_device_get ( void  )
read

Definition at line 213 of file imx-drm-core.c.

void imx_drm_device_put ( void  )

Definition at line 269 of file imx-drm-core.c.

int imx_drm_encoder_add_possible_crtcs ( struct imx_drm_encoder imx_drm_encoder,
struct device_node np 
)

Definition at line 610 of file imx-drm-core.c.

int imx_drm_encoder_get_mux_id ( struct imx_drm_encoder imx_drm_encoder,
struct drm_crtc crtc 
)

Definition at line 653 of file imx-drm-core.c.

void imx_drm_fb_helper_set ( struct drm_fbdev_cma fbdev_helper)

Definition at line 752 of file imx-drm-core.c.

void imx_drm_handle_vblank ( struct imx_drm_crtc imx_drm_crtc)

Definition at line 154 of file imx-drm-core.c.

int imx_drm_remove_connector ( struct imx_drm_connector imx_drm_connector)

Definition at line 763 of file imx-drm-core.c.

int imx_drm_remove_crtc ( struct imx_drm_crtc imx_drm_crtc)

Definition at line 539 of file imx-drm-core.c.

int imx_drm_remove_encoder ( struct imx_drm_encoder imx_drm_encoder)

Definition at line 680 of file imx-drm-core.c.

MODULE_AUTHOR ( "Sascha Hauer <[email protected]>"  )
MODULE_DESCRIPTION ( "i.MX drm driver core )
module_exit ( imx_drm_exit  )
module_init ( imx_drm_init  )
MODULE_LICENSE ( "GPL"  )