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

csi_v4l2_capture.c File Reference

Detailed Description

MX25 Video For Linux 2 driver.

This file is derived from mxc_v4l2_capture.c

Definition in file csi_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 <media/v4l2-ioctl.h>
#include <media/v4l2-int-device.h>
#include <linux/mxcfb.h>
#include "mxc_v4l2_capture.h"
#include "fsl_csi.h"

Go to the source code of this file.


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 int csi_allocate_frame_buf (cam_data *cam, int count)
static int csi_cap_image (cam_data *cam)
static int csi_free_frame_buf (cam_data *cam)
static void csi_free_frames (cam_data *cam)
static int csi_mmap (struct file *file, struct vm_area_struct *vma)
static int csi_streamoff (cam_data *cam)
static int csi_streamon (cam_data *cam)
static int csi_v4l2_buffer_status (cam_data *cam, struct v4l2_buffer *buf)
static int csi_v4l2_g_fmt (cam_data *cam, struct v4l2_format *f)
static int csi_v4l2_master_attach (struct v4l2_int_device *slave)
static void csi_v4l2_master_detach (struct v4l2_int_device *slave)
static int csi_v4l2_resume (struct platform_device *pdev)
static int csi_v4l2_s_fmt (cam_data *cam, struct v4l2_format *f)
static int csi_v4l2_s_param (cam_data *cam, struct v4l2_streamparm *parm)
static int csi_v4l2_suspend (struct platform_device *pdev, pm_message_t state)
static int csi_v4l_close (struct file *file)
static long csi_v4l_do_ioctl (struct file *file, unsigned int ioctlnr, void *arg)
static int csi_v4l_dqueue (cam_data *cam, struct v4l2_buffer *buf)
static long csi_v4l_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
static int csi_v4l_open (struct file *file)
static ssize_t csi_v4l_read (struct file *file, char *buf, size_t count, loff_t *ppos)
static void init_camera_struct (cam_data *cam)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("V4L2 capture driver for Mx25 based cameras")
 module_exit (camera_exit)
 module_init (camera_init)
 module_param (video_nr, int, 0444)
static int start_preview (cam_data *cam)
static int stop_preview (cam_data *cam)
static int valid_mode (u32 palette)


static struct platform_device csi_v4l2_devices
static struct platform_driver csi_v4l2_driver
static struct v4l2_int_device csi_v4l2_int_device
static struct v4l2_int_master csi_v4l2_master
static struct v4l2_file_operations csi_v4l_fops
static struct video_device csi_v4l_template
static cam_datag_cam
static int video_nr = -1

Generated by  Doxygen 1.6.0   Back to index