#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/uaccess.h>
#include <linux/vmalloc.h>
#include <linux/spinlock.h>
#include <sysdev/fsl_soc.h>
#include <linux/fsl-diu-fb.h>
#include "edid.h"
Go to the source code of this file.
|
#define | NUM_AOIS 5 /* 1 for plane 0, 2 for planes 1 & 2 each */ |
|
#define | MAX_CURS 32 |
|
#define | INT_VSYNC 0x01 /* Vsync interrupt */ |
|
#define | INT_VSYNC_WB 0x02 /* Vsync interrupt for write back operation */ |
|
#define | INT_UNDRUN 0x04 /* Under run exception interrupt */ |
|
#define | INT_PARERR 0x08 /* Display parameters error interrupt */ |
|
#define | INT_LS_BF_VS 0x10 /* Lines before vsync. interrupt */ |
|
#define | DMA_ADDR(p, f) ((p)->dma_addr + offsetof(struct fsl_diu_data, f)) |
|
#define | PF_BYTE_F 0x10000000 |
|
#define | PF_ALPHA_C_MASK 0x0E000000 |
|
#define | PF_ALPHA_C_SHIFT 25 |
|
#define | PF_BLUE_C_MASK 0x01800000 |
|
#define | PF_BLUE_C_SHIFT 23 |
|
#define | PF_GREEN_C_MASK 0x00600000 |
|
#define | PF_GREEN_C_SHIFT 21 |
|
#define | PF_RED_C_MASK 0x00180000 |
|
#define | PF_RED_C_SHIFT 19 |
|
#define | PF_PALETTE 0x00040000 |
|
#define | PF_PIXEL_S_MASK 0x00030000 |
|
#define | PF_PIXEL_S_SHIFT 16 |
|
#define | PF_COMP_3_MASK 0x0000F000 |
|
#define | PF_COMP_3_SHIFT 12 |
|
#define | PF_COMP_2_MASK 0x00000F00 |
|
#define | PF_COMP_2_SHIFT 8 |
|
#define | PF_COMP_1_MASK 0x000000F0 |
|
#define | PF_COMP_1_SHIFT 4 |
|
#define | PF_COMP_0_MASK 0x0000000F |
|
#define | PF_COMP_0_SHIFT 0 |
|
#define | MAKE_PF(alpha, red, blue, green, size, c0, c1, c2, c3) |
|
#define | fsl_diu_suspend NULL |
|
#define | fsl_diu_resume NULL |
|
|
struct fsl_diu_data | __aligned (32) |
|
struct diu_ad dummy_ad | __aligned (8) |
|
void | wr_reg_wa (u32 *reg, u32 val) |
|
| MODULE_DEVICE_TABLE (of, fsl_diu_match) |
|
| module_init (fsl_diu_init) |
|
| module_exit (fsl_diu_exit) |
|
| MODULE_AUTHOR ("York Sun <[email protected]>") |
|
| MODULE_DESCRIPTION ("Freescale DIU framebuffer driver") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param_named (mode, fb_mode, charp, 0) |
|
| MODULE_PARM_DESC (mode,"Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ") |
|
| module_param_named (bpp, default_bpp, ulong, 0) |
|
| MODULE_PARM_DESC (bpp,"Specify bit-per-pixel if not specified in 'mode'") |
|
| module_param_named (monitor, monitor_string, charp, 0) |
|
| MODULE_PARM_DESC (monitor,"Specify the monitor port ""(\"dvi\", \"lvds\", or \"dlvds\") if supported by the platform") |
|
#define fsl_diu_resume NULL |
#define fsl_diu_suspend NULL |
#define INT_LS_BF_VS 0x10 /* Lines before vsync. interrupt */ |
#define INT_PARERR 0x08 /* Display parameters error interrupt */ |
#define INT_UNDRUN 0x04 /* Under run exception interrupt */ |
#define INT_VSYNC 0x01 /* Vsync interrupt */ |
#define INT_VSYNC_WB 0x02 /* Vsync interrupt for write back operation */ |
Value:
(
blue << PF_BLUE_C_SHIFT) | (
green << PF_GREEN_C_SHIFT) | \
(
red << PF_RED_C_SHIFT) | (c3 << PF_COMP_3_SHIFT) | \
(c2 << PF_COMP_2_SHIFT) | (c1 << PF_COMP_1_SHIFT) | \
(c0 << PF_COMP_0_SHIFT) | (
size << PF_PIXEL_S_SHIFT))
#define NUM_AOIS 5 /* 1 for plane 0, 2 for planes 1 & 2 each */ |
#define PF_ALPHA_C_MASK 0x0E000000 |
#define PF_ALPHA_C_SHIFT 25 |
#define PF_BLUE_C_MASK 0x01800000 |
#define PF_BLUE_C_SHIFT 23 |
#define PF_BYTE_F 0x10000000 |
#define PF_COMP_0_MASK 0x0000000F |
#define PF_COMP_0_SHIFT 0 |
#define PF_COMP_1_MASK 0x000000F0 |
#define PF_COMP_1_SHIFT 4 |
#define PF_COMP_2_MASK 0x00000F00 |
#define PF_COMP_2_SHIFT 8 |
#define PF_COMP_3_MASK 0x0000F000 |
#define PF_COMP_3_SHIFT 12 |
#define PF_GREEN_C_MASK 0x00600000 |
#define PF_GREEN_C_SHIFT 21 |
#define PF_PALETTE 0x00040000 |
#define PF_PIXEL_S_MASK 0x00030000 |
#define PF_PIXEL_S_SHIFT 16 |
#define PF_RED_C_MASK 0x00180000 |
#define PF_RED_C_SHIFT 19 |
- Enumerator:
PLANE0 |
|
PLANE1_AOI0 |
|
PLANE1_AOI1 |
|
PLANE2_AOI0 |
|
PLANE2_AOI1 |
|
Definition at line 326 of file fsl-diu-fb.c.
struct diu_ad dummy_ad __aligned::__aligned |
( |
8 |
| ) |
|
|
read |
MODULE_DESCRIPTION |
( |
"Freescale DIU framebuffer driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
fsl_diu_match |
|
|
) |
| |
module_exit |
( |
fsl_diu_exit |
| ) |
|
module_init |
( |
fsl_diu_init |
| ) |
|
module_param_named |
( |
mode |
, |
|
|
fb_mode |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |
module_param_named |
( |
bpp |
, |
|
|
default_bpp |
, |
|
|
ulong |
, |
|
|
0 |
|
|
) |
| |
module_param_named |
( |
monitor |
, |
|
|
monitor_string |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
mode |
, |
|
|
"Specify resolution as \"<xres>x<yres>\" " |
[-< bpp >][@< refresh >] |
|
) |
| |
MODULE_PARM_DESC |
( |
monitor |
, |
|
|
"Specify the monitor port ""(\"dvi\", \"lvds\", or \"dlvds\") if supported by the platform" |
|
|
) |
| |