Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
zr364xx.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/highmem.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-event.h>
#include <media/videobuf-vmalloc.h>

Go to the source code of this file.

Data Structures

struct  zr364xx_framei
 
struct  zr364xx_bufferi
 
struct  zr364xx_dmaqueue
 
struct  zr364xx_pipeinfo
 
struct  zr364xx_fmt
 
struct  zr364xx_camera
 
struct  zr364xx_buffer
 
struct  message
 

Macros

#define DRIVER_VERSION   "0.7.4"
 
#define DRIVER_AUTHOR   "Antoine Jacquet, http://royale.zerezo.com/"
 
#define DRIVER_DESC   "Zoran 364xx"
 
#define FRAMES   1
 
#define MAX_FRAME_SIZE   200000
 
#define BUFFER_SIZE   0x1000
 
#define CTRL_TIMEOUT   500
 
#define ZR364XX_DEF_BUFS   4
 
#define ZR364XX_READ_IDLE   0
 
#define ZR364XX_READ_FRAME   1
 
#define DBG(fmt, args...)
 
#define _DBG(fmt, args...)
 
#define METHOD0   0
 
#define METHOD1   1
 
#define METHOD2   2
 
#define METHOD3   3
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Debug level")
 
 module_param (mode, int, 0644)
 
 MODULE_PARM_DESC (mode,"0 = 320x240, 1 = 160x120, 2 = 640x480")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (zr364xx_driver)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRIVER_VERSION)
 

Macro Definition Documentation

#define _DBG (   fmt,
  args... 
)

Definition at line 75 of file zr364xx.c.

#define BUFFER_SIZE   0x1000

Definition at line 56 of file zr364xx.c.

#define CTRL_TIMEOUT   500

Definition at line 57 of file zr364xx.c.

#define DBG (   fmt,
  args... 
)
Value:
do { \
if (debug) { \
printk(KERN_INFO KBUILD_MODNAME " " fmt, ##args); \
} \
} while (0)

Definition at line 64 of file zr364xx.c.

#define DRIVER_AUTHOR   "Antoine Jacquet, http://royale.zerezo.com/"

Definition at line 49 of file zr364xx.c.

#define DRIVER_DESC   "Zoran 364xx"

Definition at line 50 of file zr364xx.c.

#define DRIVER_VERSION   "0.7.4"

Definition at line 48 of file zr364xx.c.

#define FRAMES   1

Definition at line 54 of file zr364xx.c.

#define MAX_FRAME_SIZE   200000

Definition at line 55 of file zr364xx.c.

#define METHOD0   0

Definition at line 80 of file zr364xx.c.

#define METHOD1   1

Definition at line 81 of file zr364xx.c.

#define METHOD2   2

Definition at line 82 of file zr364xx.c.

#define METHOD3   3

Definition at line 83 of file zr364xx.c.

#define ZR364XX_DEF_BUFS   4

Definition at line 59 of file zr364xx.c.

#define ZR364XX_READ_FRAME   1

Definition at line 61 of file zr364xx.c.

#define ZR364XX_READ_IDLE   0

Definition at line 60 of file zr364xx.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( mode  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Debug level  
)
MODULE_PARM_DESC ( mode  ,
0 = 320x240,
= 160x120 
)
module_usb_driver ( zr364xx_driver  )
MODULE_VERSION ( DRIVER_VERSION  )