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

mx27_v4l2_output.c File Reference


Detailed Description

MX27 V4L2 Video Output Driver.

Video4Linux2 Output Device using MX27 eMMA Post-processing functionality.

Definition in file mx27_v4l2_output.c.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/semaphore.h>
#include <linux/poll.h>
#include <media/v4l2-dev.h>
#include <media/v4l2-ioctl.h>
#include "mxc_v4l2_output.h"
#include "mx27_pp.h"
#include "../drivers/video/mxc/mx2fb.h"

Go to the source code of this file.

Defines

#define QUEUE_SIZE   (MAX_FRAME_NUM + 1)
#define SDC_FG_FB_FORMAT   V4L2_PIX_FMT_RGB565

Functions

static void camera_platform_release (struct device *device)
static __inline int dequeue_buf (v4l_queue *q)
static u32 fmt_to_bpp (u32 pixelformat)
static __inline unsigned long get_jiffies (struct timeval *t)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("V4L2-driver for MXC video output")
 module_exit (mxc_v4l2out_clean)
 module_init (mxc_v4l2out_init)
 MODULE_LICENSE ("GPL")
 module_param (video_nr, int, 0444)
 MODULE_SUPPORTED_DEVICE ("video")
static int mxc_allocate_buffers (dma_addr_t bufs_paddr[], void *bufs_vaddr[], int num_buf, int size)
static int mxc_free_buffers (dma_addr_t bufs_paddr[], void *bufs_vaddr[], int num_buf, int size)
static int mxc_get_v42lout_control (vout_data *vout, struct v4l2_control *c)
static int mxc_set_v42lout_control (vout_data *vout, struct v4l2_control *c)
static void mxc_v4l2out_clean (void)
static int mxc_v4l2out_close (struct inode *inode, struct file *file)
static int mxc_v4l2out_do_ioctl (struct inode *inode, struct file *file, unsigned int ioctlnr, void *arg)
static int mxc_v4l2out_g_fmt (vout_data *vout, struct v4l2_format *f)
static int mxc_v4l2out_init (void)
static int mxc_v4l2out_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
static int mxc_v4l2out_mmap (struct file *file, struct vm_area_struct *vma)
static int mxc_v4l2out_open (struct inode *inode, struct file *file)
static unsigned int mxc_v4l2out_poll (struct file *file, poll_table *wait)
irqreturn_t mxc_v4l2out_pp_in_irq_handler (int irq, void *dev_id)
static int mxc_v4l2out_probe (struct platform_device *pdev)
static int mxc_v4l2out_s_fmt (vout_data *vout, struct v4l2_format *f)
static int mxc_v4l2out_streamoff (vout_data *vout)
static int mxc_v4l2out_streamon (vout_data *vout)
static void mxc_v4l2out_timer_handler (unsigned long arg)
static __inline int peek_next_buf (v4l_queue *q)
static __inline int queue_buf (v4l_queue *q, int idx)
static __inline int queue_size (v4l_queue *q)
static int valid_mode (u32 palette)

Variables

uint32_t g_buf_dq_cnt
uint32_t g_buf_output_cnt
uint32_t g_buf_q_cnt
uint32_t g_irq_cnt
static spinlock_t g_lock = SPIN_LOCK_UNLOCKED
vout_data * g_vout
struct v4l2_output mxc_outputs [1]
static struct platform_device mxc_v4l2out_device
static struct platform_driver mxc_v4l2out_driver
static struct file_operations mxc_v4l2out_fops
static struct video_device mxc_v4l2out_template
static int video_nr = 16


Generated by  Doxygen 1.6.0   Back to index