Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vrfb.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/bitops.h>
#include <linux/mutex.h>
#include <plat/vrfb.h>
#include <plat/sdrc.h>

Go to the source code of this file.

Macros

#define DBG(format,...)
 
#define SMS_ROT_VIRT_BASE(context, rot)
 
#define OMAP_VRFB_SIZE   (2048 * 2048 * 4)
 
#define VRFB_PAGE_WIDTH_EXP   5 /* Assuming SDRAM pagesize= 1024 */
 
#define VRFB_PAGE_HEIGHT_EXP   5 /* 1024 = 2^5 * 2^5 */
 
#define VRFB_PAGE_WIDTH   (1 << VRFB_PAGE_WIDTH_EXP)
 
#define VRFB_PAGE_HEIGHT   (1 << VRFB_PAGE_HEIGHT_EXP)
 
#define SMS_IMAGEHEIGHT_OFFSET   16
 
#define SMS_IMAGEWIDTH_OFFSET   0
 
#define SMS_PH_OFFSET   8
 
#define SMS_PW_OFFSET   4
 
#define SMS_PS_OFFSET   0
 
#define VRFB_NUM_CTXS   12
 

Functions

void omap_vrfb_restore_context (void)
 
void omap_vrfb_adjust_size (u16 *width, u16 *height, u8 bytespp)
 
 EXPORT_SYMBOL (omap_vrfb_adjust_size)
 
u32 omap_vrfb_min_phys_size (u16 width, u16 height, u8 bytespp)
 
 EXPORT_SYMBOL (omap_vrfb_min_phys_size)
 
u16 omap_vrfb_max_height (u32 phys_size, u16 width, u8 bytespp)
 
 EXPORT_SYMBOL (omap_vrfb_max_height)
 
void omap_vrfb_setup (struct vrfb *vrfb, unsigned long paddr, u16 width, u16 height, unsigned bytespp, bool yuv_mode)
 
 EXPORT_SYMBOL (omap_vrfb_setup)
 
int omap_vrfb_map_angle (struct vrfb *vrfb, u16 height, u8 rot)
 
 EXPORT_SYMBOL (omap_vrfb_map_angle)
 
void omap_vrfb_release_ctx (struct vrfb *vrfb)
 
 EXPORT_SYMBOL (omap_vrfb_release_ctx)
 
int omap_vrfb_request_ctx (struct vrfb *vrfb)
 
 EXPORT_SYMBOL (omap_vrfb_request_ctx)
 

Macro Definition Documentation

#define DBG (   format,
  ... 
)

Definition at line 36 of file vrfb.c.

#define OMAP_VRFB_SIZE   (2048 * 2048 * 4)

Definition at line 44 of file vrfb.c.

#define SMS_IMAGEHEIGHT_OFFSET   16

Definition at line 50 of file vrfb.c.

#define SMS_IMAGEWIDTH_OFFSET   0

Definition at line 51 of file vrfb.c.

#define SMS_PH_OFFSET   8

Definition at line 52 of file vrfb.c.

#define SMS_PS_OFFSET   0

Definition at line 54 of file vrfb.c.

#define SMS_PW_OFFSET   4

Definition at line 53 of file vrfb.c.

#define SMS_ROT_VIRT_BASE (   context,
  rot 
)
Value:
(((context >= 4) ? 0xD0000000 : 0x70000000) \
+ (0x4000000 * (context)) \
+ (0x1000000 * (rot)))

Definition at line 39 of file vrfb.c.

#define VRFB_NUM_CTXS   12

Definition at line 56 of file vrfb.c.

#define VRFB_PAGE_HEIGHT   (1 << VRFB_PAGE_HEIGHT_EXP)

Definition at line 49 of file vrfb.c.

#define VRFB_PAGE_HEIGHT_EXP   5 /* 1024 = 2^5 * 2^5 */

Definition at line 47 of file vrfb.c.

#define VRFB_PAGE_WIDTH   (1 << VRFB_PAGE_WIDTH_EXP)

Definition at line 48 of file vrfb.c.

#define VRFB_PAGE_WIDTH_EXP   5 /* Assuming SDRAM pagesize= 1024 */

Definition at line 46 of file vrfb.c.

Function Documentation

EXPORT_SYMBOL ( omap_vrfb_adjust_size  )
EXPORT_SYMBOL ( omap_vrfb_min_phys_size  )
EXPORT_SYMBOL ( omap_vrfb_max_height  )
EXPORT_SYMBOL ( omap_vrfb_setup  )
EXPORT_SYMBOL ( omap_vrfb_map_angle  )
EXPORT_SYMBOL ( omap_vrfb_release_ctx  )
EXPORT_SYMBOL ( omap_vrfb_request_ctx  )
void omap_vrfb_adjust_size ( u16 width,
u16 height,
u8  bytespp 
)

Definition at line 114 of file vrfb.c.

int omap_vrfb_map_angle ( struct vrfb vrfb,
u16  height,
u8  rot 
)

Definition at line 219 of file vrfb.c.

u16 omap_vrfb_max_height ( u32  phys_size,
u16  width,
u8  bytespp 
)

Definition at line 135 of file vrfb.c.

u32 omap_vrfb_min_phys_size ( u16  width,
u16  height,
u8  bytespp 
)

Definition at line 122 of file vrfb.c.

void omap_vrfb_release_ctx ( struct vrfb vrfb)

Definition at line 237 of file vrfb.c.

int omap_vrfb_request_ctx ( struct vrfb vrfb)

Definition at line 266 of file vrfb.c.

void omap_vrfb_restore_context ( void  )

Definition at line 101 of file vrfb.c.

void omap_vrfb_setup ( struct vrfb vrfb,
unsigned long  paddr,
u16  width,
u16  height,
unsigned  bytespp,
bool  yuv_mode 
)

Definition at line 157 of file vrfb.c.

Variable Documentation

u32 control

Definition at line 70 of file vrfb.c.

u32 physical_ba

Definition at line 69 of file vrfb.c.

u32 size

Definition at line 71 of file vrfb.c.