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

mx27_prpsw.c File Reference

Detailed Description

MX27 Video For Linux 2 capture driver.

Definition in file mx27_prpsw.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/fb.h>
#include <linux/pci.h>
#include <asm/cacheflush.h>
#include <asm/io.h>
#include <asm/irq.h>
#include "mxc_v4l2_capture.h"
#include "mx27_prp.h"
#include "mx27_csi.h"
#include "../drivers/video/mxc/mx2fb.h"
#include "../opl/opl.h"

Go to the source code of this file.


#define MEAN_COEF   (SZ_COEF >> 1)
#define PRP_DUMP(val)   pr_debug("%s\t = 0x%08X\t%d\n", #val, val, val)


static int check_simple (scale_t *scale, int input, int output)
static int check_simple_retry (scale_t *scale, int input, int output)
static void prp_cfg_dump (emma_prp_cfg *cfg)
 Dump PrP configuration parameters.
int prp_enc_deselect (void *private)
 Uninstall encoding functions.
static int prp_enc_disable (void *private)
 Disable PrP for encoding.
static int prp_enc_enable (void *private)
 Enable PrP for encoding.
int prp_enc_select (void *private)
 Setup encoding functions.
static int prp_enc_update_eba (u32 eba, int *buffer_num)
 Update PrP channel 2 output buffer address.
void prp_exit (void *dev_id)
 PrP initialization.
int prp_init (void *dev_id)
 PrP initialization.
static irqreturn_t prp_isr (int irq, void *dev_id)
 PrP interrupt handler.
static int prp_resize_check_ch1 (emma_prp_cfg *cfg)
 Check if the resize ratio is supported by PrP channel 1.
static int prp_resize_check_ch2 (emma_prp_cfg *cfg)
 Check if the resize ratio is supported by PrP channel 2.
static int prp_rot_mem_alloc (cam_data *cam)
 Allocate intermediate memory for overlay rotation/mirroring.
static void prp_rot_mem_free (cam_data *cam)
 Free intermedaite memory for overlay rotation/mirroring.
int prp_still_deselect (void *private)
 Uninstall functions for still picture capture.
int prp_still_select (void *private)
 Setup functions for still picture capture.
static int prp_still_start (void *private)
 Start still picture capture.
static int prp_still_stop (void *private)
 Stop still picture capture.
static int prp_v4l2_cfg (emma_prp_cfg *cfg, cam_data *cam)
 Setup PrP configuration parameters.
int prp_vf_deselect (void *private)
 Uninstall overlay functions.
static int prp_vf_mem_alloc (cam_data *cam)
 Allocate memory for overlay.
static void prp_vf_mem_free (cam_data *cam)
 Free memory for overlay.
int prp_vf_select (void *private)
 Setup overlay functions.
static int prp_vf_start (void *private)
 Start overlay (view finder).
static int prp_vf_stop (void *private)
 Stop overlay (view finder).
static void rotation (unsigned long private)
 Perform software rotation or mirroring.
static int set_ch1_addr (emma_prp_cfg *cfg, cam_data *cam)
 Set PrP channel 1 output address.


static emma_prp_cfg g_prp_cfg
static int g_rotbuf
static int g_still_on = 0
static char * g_vaddr_fb = 0
static char * g_vaddr_rotbuf [2] = { 0, 0 }
static char * g_vaddr_vfbuf [2] = { 0, 0 }
static int g_vfbuf
static char prp_dev [] = "emma_prp"
static struct tasklet_struct prp_vf_tasklet

Generated by  Doxygen 1.6.0   Back to index