Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mx2fb.c File Reference


Detailed Description

Frame buffer driver for MX27 ADS.

Definition in file mx2fb.c.

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/clk.h>
#include <linux/mxcfb.h>
#include <linux/uaccess.h>
#include <mach/hardware.h>
#include "mx2fb.h"

Go to the source code of this file.

Classes

struct  mx2fb_info
 Structure containing the MX2 specific framebuffer information. More...

Defines

#define CNVT_TOHW(val, width)   ((((val)<<(width))+0x7FFF-(val))>>16)
#define mx2fb_resume   0
#define mx2fb_suspend   0
#define MX2FB_TYPE_BG   0
#define MX2FB_TYPE_GW   1

Functions

static void _disable_graphic_window (struct fb_info *info)
 Disable graphic window.
static void _disable_lcdc (struct fb_info *info)
 Disable LCD controller.
static void _enable_graphic_window (struct fb_info *info)
 Enable graphic window.
static void _enable_lcdc (struct fb_info *info)
 Enable LCD controller.
static void _free_irq (void)
 Free LCDC interrupt handler.
static int __init _init_fbinfo (struct fb_info *info, struct platform_device *pdev)
 Initialize framebuffer information structure.
static int __init _install_fb (struct fb_info *info, struct platform_device *pdev)
 Install framebuffer into the system.
static int _map_video_memory (struct fb_info *info)
 Allocate memory for framebuffer.
static void _request_irq (void)
 Config and request LCDC interrupt.
static void _set_fix (struct fb_info *info)
 Set fixed framebuffer parameters based on variable settings.
static void __exit _uninstall_fb (struct fb_info *info)
 Uninstall framebuffer from the system.
static void _unmap_video_memory (struct fb_info *info)
 Release memory for framebuffer.
static void _update_lcdc (struct fb_info *info)
 Update LCDC registers.
static ATOMIC_NOTIFIER_HEAD (mx2fb_notifier_list)
void board_power_lcd (int on)
 EXPORT_SYMBOL (mx2fb_unregister_client)
 EXPORT_SYMBOL (mx2fb_register_client)
 EXPORT_SYMBOL (mx2_gw_set)
 EXPORT_SYMBOL (mx2fb_set_brightness)
void gpio_lcdc_active (void)
void gpio_lcdc_inactive (void)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MX2 framebuffer driver")
 module_exit (mx2fb_exit)
 module_init (mx2fb_init)
 MODULE_LICENSE ("GPL")
void mx2_gw_set (struct fb_gwinfo *gwinfo)
 Setup graphic window properties.
static int mx2fb_blank (int blank_mode, struct fb_info *info)
 Blanks the display.
static int mx2fb_check_var (struct fb_var_screeninfo *var, struct fb_info *info)
 Validates a var passed in.
void __exit mx2fb_exit (void)
 Cleanup.
int __init mx2fb_init (void)
 Initialization.
static int mx2fb_ioctl (struct fb_info *info, unsigned int cmd, unsigned long arg)
 Ioctl function to support customized ioctl operations.
static irqreturn_t mx2fb_isr (int irq, void *dev_id)
static int mx2fb_pan_display (struct fb_var_screeninfo *var, struct fb_info *info)
 Pans the display.
static int mx2fb_probe (struct platform_device *pdev)
 Probe routine for the framebuffer driver. It is called during the driver binding process.
int mx2fb_register_client (struct notifier_block *nb)
 Register a client notifier.
void mx2fb_set_brightness (uint8_t level)
 Set LCD brightness.
static int mx2fb_set_par (struct fb_info *info)
 Alters the hardware state.
static int mx2fb_setcolreg (unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *info)
 Sets a color register.
static int __init mx2fb_setup (char *options)
 Setup Parse user specified options Example: video=mxcfb:240x320,bpp=16,Sharp-QVGA.
int mx2fb_unregister_client (struct notifier_block *nb)
 Unregister a client notifier.

Variables

static unsigned long default_bpp = 16
static int fb_enabled = 0
static char * fb_mode = 0
static struct fb_gwinfo g_gwinfo
static struct clk * lcdc_clk
static struct platform_driver mx2fb_driver
 This structure contains pointers to the power management callback functions.
static struct fb_info mx2fb_info []
 Framebuffer information structures. There are up to 3 framebuffers: background, TVout, and graphic window. If graphic window is configured, it must be the last framebuffer.
static struct fb_ops mx2fb_ops
 Framebuffer file operations.
struct mx2fb_info mx2fbi_bg
static struct mx2fb_info mx2fbi_gw


Generated by  Doxygen 1.6.0   Back to index