Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
s3c-fb.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/fb.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include <video/samsung_fimd.h>
#include <mach/map.h>
#include <plat/fb.h>

Go to the source code of this file.

Data Structures

struct  s3c_fb_variant
 
struct  s3c_fb_win_variant
 
struct  s3c_fb_driverdata
 
struct  s3c_fb_palette
 
struct  s3c_fb_win
 
struct  s3c_fb_vsync
 
struct  s3c_fb
 

Macros

#define S3C_FB_VSYNC_IRQ_EN   0
 
#define VSYNC_TIMEOUT_MSEC   50
 
#define VALID_BPP(x)   (1 << ((x) - 1))
 
#define OSD_BASE(win, variant)   ((variant).osd + ((win) * (variant).osd_stride))
 
#define VIDOSD_A(win, variant)   (OSD_BASE(win, variant) + 0x00)
 
#define VIDOSD_B(win, variant)   (OSD_BASE(win, variant) + 0x04)
 
#define VIDOSD_C(win, variant)   (OSD_BASE(win, variant) + 0x08)
 
#define VIDOSD_D(win, variant)   (OSD_BASE(win, variant) + 0x0C)
 
#define VALID_BPP124   (VALID_BPP(1) | VALID_BPP(2) | VALID_BPP(4))
 
#define VALID_BPP1248   (VALID_BPP124 | VALID_BPP(8))
 

Functions

 MODULE_DEVICE_TABLE (platform, s3c_fb_driver_ids)
 
 module_platform_driver (s3c_fb_driver)
 
 MODULE_AUTHOR ("Ben Dooks <[email protected]>")
 
 MODULE_DESCRIPTION ("Samsung S3C SoC Framebuffer driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:s3c-fb")
 

Macro Definition Documentation

#define OSD_BASE (   win,
  variant 
)    ((variant).osd + ((win) * (variant).osd_stride))

Definition at line 64 of file s3c-fb.c.

#define S3C_FB_VSYNC_IRQ_EN   0

Definition at line 56 of file s3c-fb.c.

#define VALID_BPP (   x)    (1 << ((x) - 1))

Definition at line 62 of file s3c-fb.c.

#define VALID_BPP124   (VALID_BPP(1) | VALID_BPP(2) | VALID_BPP(4))

Definition at line 1669 of file s3c-fb.c.

#define VALID_BPP1248   (VALID_BPP124 | VALID_BPP(8))

Definition at line 1670 of file s3c-fb.c.

#define VIDOSD_A (   win,
  variant 
)    (OSD_BASE(win, variant) + 0x00)

Definition at line 65 of file s3c-fb.c.

#define VIDOSD_B (   win,
  variant 
)    (OSD_BASE(win, variant) + 0x04)

Definition at line 66 of file s3c-fb.c.

#define VIDOSD_C (   win,
  variant 
)    (OSD_BASE(win, variant) + 0x08)

Definition at line 67 of file s3c-fb.c.

#define VIDOSD_D (   win,
  variant 
)    (OSD_BASE(win, variant) + 0x0C)

Definition at line 68 of file s3c-fb.c.

#define VSYNC_TIMEOUT_MSEC   50

Definition at line 58 of file s3c-fb.c.

Function Documentation

MODULE_ALIAS ( "platform:s3c-fb )
MODULE_AUTHOR ( "Ben Dooks <[email protected]>"  )
MODULE_DESCRIPTION ( "Samsung S3C SoC Framebuffer driver )
MODULE_DEVICE_TABLE ( platform  ,
s3c_fb_driver_ids   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( s3c_fb_driver  )