Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
uvc_driver.c File Reference
#include <linux/atomic.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/version.h>
#include <asm/unaligned.h>
#include <media/v4l2-common.h>
#include "uvcvideo.h"

Go to the source code of this file.

Macros

#define DRIVER_AUTHOR
 
#define DRIVER_DESC   "USB Video Class driver"
 

Functions

struct usb_host_endpoint * uvc_find_endpoint (struct usb_host_interface *alts, __u8 epaddr)
 
void uvc_simplify_fraction (uint32_t *numerator, uint32_t *denominator, unsigned int n_terms, unsigned int threshold)
 
uint32_t uvc_fraction_to_interval (uint32_t numerator, uint32_t denominator)
 
struct uvc_entityuvc_entity_by_id (struct uvc_device *dev, int id)
 
 module_param_call (clock, uvc_clock_param_set, uvc_clock_param_get,&uvc_clock_param, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (clock,"Video buffers timestamp clock")
 
 module_param_named (nodrop, uvc_no_drop_param, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (nodrop,"Don't drop incomplete frames")
 
 module_param_named (quirks, uvc_quirks_param, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (quirks,"Forced device quirks")
 
 module_param_named (trace, uvc_trace_param, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (trace,"Trace level bitmask")
 
 module_param_named (timeout, uvc_timeout_param, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (timeout,"Streaming control requests timeout")
 
 MODULE_DEVICE_TABLE (usb, uvc_ids)
 
 module_init (uvc_init)
 
 module_exit (uvc_cleanup)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRIVER_VERSION)
 

Variables

unsigned int uvc_clock_param = CLOCK_MONOTONIC
 
unsigned int uvc_no_drop_param
 
unsigned int uvc_trace_param
 
unsigned int uvc_timeout_param = UVC_CTRL_STREAMING_TIMEOUT
 
struct uvc_driver uvc_driver
 

Macro Definition Documentation

#define DRIVER_AUTHOR
Value:
"Laurent Pinchart " \

Definition at line 30 of file uvc_driver.c.

#define DRIVER_DESC   "USB Video Class driver"

Definition at line 32 of file uvc_driver.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
uvc_ids   
)
module_exit ( uvc_cleanup  )
module_init ( uvc_init  )
MODULE_LICENSE ( "GPL"  )
module_param_call ( clock  ,
uvc_clock_param_set  ,
uvc_clock_param_get  ,
uvc_clock_param,
S_IRUGO S_IWUSR 
)
module_param_named ( nodrop  ,
uvc_no_drop_param  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( quirks  ,
uvc_quirks_param  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( trace  ,
uvc_trace_param  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( timeout  ,
uvc_timeout_param  ,
uint  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( clock  ,
"Video buffers timestamp clock  
)
MODULE_PARM_DESC ( nodrop  ,
"Don't drop incomplete frames"   
)
MODULE_PARM_DESC ( quirks  ,
"Forced device quirks"   
)
MODULE_PARM_DESC ( trace  ,
"Trace level bitmask  
)
MODULE_PARM_DESC ( timeout  ,
"Streaming control requests timeout  
)
MODULE_VERSION ( DRIVER_VERSION  )
struct uvc_entity* uvc_entity_by_id ( struct uvc_device dev,
int  id 
)
read

Definition at line 260 of file uvc_driver.c.

struct usb_host_endpoint* uvc_find_endpoint ( struct usb_host_interface *  alts,
__u8  epaddr 
)
read

Definition at line 131 of file uvc_driver.c.

uint32_t uvc_fraction_to_interval ( uint32_t  numerator,
uint32_t  denominator 
)

Definition at line 234 of file uvc_driver.c.

void uvc_simplify_fraction ( uint32_t numerator,
uint32_t denominator,
unsigned int  n_terms,
unsigned int  threshold 
)

Definition at line 183 of file uvc_driver.c.

Variable Documentation

unsigned int uvc_clock_param = CLOCK_MONOTONIC

Definition at line 34 of file uvc_driver.c.

Initial value:
= {
.driver = {
.name = "uvcvideo",
.probe = uvc_probe,
.disconnect = uvc_disconnect,
.suspend = uvc_suspend,
.resume = uvc_resume,
.reset_resume = uvc_reset_resume,
.id_table = uvc_ids,
.supports_autosuspend = 1,
},
}

Definition at line 2420 of file uvc_driver.c.

unsigned int uvc_no_drop_param

Definition at line 35 of file uvc_driver.c.

unsigned int uvc_timeout_param = UVC_CTRL_STREAMING_TIMEOUT

Definition at line 38 of file uvc_driver.c.

unsigned int uvc_trace_param

Definition at line 37 of file uvc_driver.c.