Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xilinxfb.c File Reference
#include <linux/device.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include <linux/xilinxfb.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  xilinxfb_drvdata
 

Macros

#define DRIVER_NAME   "xilinxfb"
 
#define NUM_REGS   2
 
#define REG_FB_ADDR   0
 
#define REG_CTRL   1
 
#define REG_CTRL_ENABLE   0x0001
 
#define REG_CTRL_ROTATE   0x0002
 
#define BYTES_PER_PIXEL   4
 
#define BITS_PER_PIXEL   (BYTES_PER_PIXEL * 8)
 
#define RED_SHIFT   16
 
#define GREEN_SHIFT   8
 
#define BLUE_SHIFT   0
 
#define PALETTE_ENTRIES_NO   16 /* passed to fb_alloc_cmap() */
 
#define PLB_ACCESS_FLAG   0x1 /* 1 = PLB, 0 = DCR */
 
#define to_xilinxfb_drvdata(_info)   container_of(_info, struct xilinxfb_drvdata, info)
 

Functions

 MODULE_DEVICE_TABLE (of, xilinxfb_of_match)
 
 module_platform_driver (xilinxfb_of_driver)
 
 MODULE_AUTHOR ("MontaVista Software, Inc. <source@mvista.com>")
 
 MODULE_DESCRIPTION ("Xilinx TFT frame buffer driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BITS_PER_PIXEL   (BYTES_PER_PIXEL * 8)

Definition at line 79 of file xilinxfb.c.

#define BLUE_SHIFT   0

Definition at line 83 of file xilinxfb.c.

#define BYTES_PER_PIXEL   4

Definition at line 78 of file xilinxfb.c.

#define DRIVER_NAME   "xilinxfb"

Definition at line 43 of file xilinxfb.c.

#define GREEN_SHIFT   8

Definition at line 82 of file xilinxfb.c.

#define NUM_REGS   2

Definition at line 63 of file xilinxfb.c.

#define PALETTE_ENTRIES_NO   16 /* passed to fb_alloc_cmap() */

Definition at line 85 of file xilinxfb.c.

#define PLB_ACCESS_FLAG   0x1 /* 1 = PLB, 0 = DCR */

Definition at line 119 of file xilinxfb.c.

#define RED_SHIFT   16

Definition at line 81 of file xilinxfb.c.

#define REG_CTRL   1

Definition at line 65 of file xilinxfb.c.

#define REG_CTRL_ENABLE   0x0001

Definition at line 66 of file xilinxfb.c.

#define REG_CTRL_ROTATE   0x0002

Definition at line 67 of file xilinxfb.c.

#define REG_FB_ADDR   0

Definition at line 64 of file xilinxfb.c.

#define to_xilinxfb_drvdata (   _info)    container_of(_info, struct xilinxfb_drvdata, info)

Definition at line 145 of file xilinxfb.c.

Function Documentation

MODULE_AUTHOR ( "MontaVista  Software,
Inc.< source @mvista.com >"   
)
MODULE_DESCRIPTION ( "Xilinx TFT frame buffer driver )
MODULE_DEVICE_TABLE ( of  ,
xilinxfb_of_match   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( xilinxfb_of_driver  )