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

mxc_v4l2_capture.c File Reference

Detailed Description

Mxc Video For Linux 2 driver.

Definition in file mxc_v4l2_capture.c.

#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/io.h>
#include <linux/semaphore.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
#include <linux/types.h>
#include <linux/fb.h>
#include <linux/dma-mapping.h>
#include <linux/mxcfb.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-int-device.h>
#include "mxc_v4l2_capture.h"
#include "ipu_prp_sw.h"

Go to the source code of this file.


struct  video_fmt_t


#define TV_STD_MAX   (TV_NOT_LOCKED + 1)


enum  video_fmt_idx {
  ADV7180_NTSC = 0, ADV7180_PAL, ADV7180_NOT_LOCKED, TV_NTSC = 0,


static void camera_callback (u32 mask, void *dev)
static void __exit camera_exit (void)
static __init int camera_init (void)
static void camera_platform_release (struct device *device)
static u8 camera_power (cam_data *cam, bool cameraOn)
static void init_camera_struct (cam_data *cam)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("V4L2 capture driver for Mxc based cameras")
 module_exit (camera_exit)
 module_init (camera_init)
 module_param (video_nr, int, 0444)
static int mxc_allocate_frame_buf (cam_data *cam, int count)
static int mxc_free_frame_buf (cam_data *cam)
static void mxc_free_frames (cam_data *cam)
static int mxc_mmap (struct file *file, struct vm_area_struct *vma)
static unsigned int mxc_poll (struct file *file, struct poll_table_struct *wait)
static int mxc_streamoff (cam_data *cam)
static int mxc_streamon (cam_data *cam)
static int mxc_v4l2_buffer_status (cam_data *cam, struct v4l2_buffer *buf)
static int mxc_v4l2_g_ctrl (cam_data *cam, struct v4l2_control *c)
static int mxc_v4l2_g_fmt (cam_data *cam, struct v4l2_format *f)
static int mxc_v4l2_g_std (cam_data *cam, v4l2_std_id *e)
static int mxc_v4l2_master_attach (struct v4l2_int_device *slave)
static void mxc_v4l2_master_detach (struct v4l2_int_device *slave)
static int mxc_v4l2_resume (struct platform_device *pdev)
static int mxc_v4l2_s_ctrl (cam_data *cam, struct v4l2_control *c)
static int mxc_v4l2_s_fmt (cam_data *cam, struct v4l2_format *f)
static int mxc_v4l2_s_param (cam_data *cam, struct v4l2_streamparm *parm)
static int mxc_v4l2_s_std (cam_data *cam, v4l2_std_id e)
static int mxc_v4l2_suspend (struct platform_device *pdev, pm_message_t state)
static int mxc_v4l_close (struct file *file)
static long mxc_v4l_do_ioctl (struct file *file, unsigned int ioctlnr, void *arg)
static int mxc_v4l_dqueue (cam_data *cam, struct v4l2_buffer *buf)
static long mxc_v4l_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
static int mxc_v4l_open (struct file *file)
static int start_preview (cam_data *cam)
static int stop_preview (cam_data *cam)
static int valid_mode (u32 palette)
static int verify_preview (cam_data *cam, struct v4l2_window *win)


static cam_datag_cam
static struct v4l2_input mxc_capture_inputs [MXC_V4L2_CAPTURE_NUM_INPUTS]
static struct v4l2_output mxc_capture_outputs [MXC_V4L2_CAPTURE_NUM_OUTPUTS]
static struct platform_device mxc_v4l2_devices
static struct platform_driver mxc_v4l2_driver
static struct v4l2_int_device mxc_v4l2_int_device
static struct v4l2_int_master mxc_v4l2_master
static struct v4l2_file_operations mxc_v4l_fops
static struct video_device mxc_v4l_template
static video_fmt_t video_fmts []
static video_fmt_idx video_index = TV_NOT_LOCKED
static int video_nr = -1

Generated by  Doxygen 1.6.0   Back to index