Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
em28xx-core.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/vmalloc.h>
#include <sound/ac97_codec.h>
#include <media/v4l2-common.h>
#include "em28xx.h"

Go to the source code of this file.

Data Structures

struct  em28xx_vol_itable
 
struct  em28xx_vol_otable
 

Macros

#define em28xx_coredbg(fmt, arg...)
 
#define em28xx_regdbg(fmt, arg...)
 
#define em28xx_isocdbg(fmt, arg...)
 

Functions

 module_param (core_debug, int, 0644)
 
 MODULE_PARM_DESC (core_debug,"enable debug messages [core]")
 
 module_param (reg_debug, int, 0644)
 
 MODULE_PARM_DESC (reg_debug,"enable debug messages [URB reg]")
 
 module_param (alt, int, 0644)
 
 MODULE_PARM_DESC (alt,"alternate setting to use for video endpoint")
 
 module_param (disable_vbi, int, 0644)
 
 MODULE_PARM_DESC (disable_vbi,"disable vbi support")
 
int em28xx_read_reg_req_len (struct em28xx *dev, u8 req, u16 reg, char *buf, int len)
 
int em28xx_read_reg_req (struct em28xx *dev, u8 req, u16 reg)
 
int em28xx_read_reg (struct em28xx *dev, u16 reg)
 
 EXPORT_SYMBOL_GPL (em28xx_read_reg)
 
int em28xx_write_regs_req (struct em28xx *dev, u8 req, u16 reg, char *buf, int len)
 
int em28xx_write_regs (struct em28xx *dev, u16 reg, char *buf, int len)
 
 EXPORT_SYMBOL_GPL (em28xx_write_regs)
 
int em28xx_write_reg (struct em28xx *dev, u16 reg, u8 val)
 
 EXPORT_SYMBOL_GPL (em28xx_write_reg)
 
int em28xx_write_reg_bits (struct em28xx *dev, u16 reg, u8 val, u8 bitmask)
 
 EXPORT_SYMBOL_GPL (em28xx_write_reg_bits)
 
int em28xx_read_ac97 (struct em28xx *dev, u8 reg)
 
 EXPORT_SYMBOL_GPL (em28xx_read_ac97)
 
int em28xx_write_ac97 (struct em28xx *dev, u8 reg, u16 val)
 
 EXPORT_SYMBOL_GPL (em28xx_write_ac97)
 
int em28xx_audio_analog_set (struct em28xx *dev)
 
 EXPORT_SYMBOL_GPL (em28xx_audio_analog_set)
 
int em28xx_audio_setup (struct em28xx *dev)
 
 EXPORT_SYMBOL_GPL (em28xx_audio_setup)
 
int em28xx_colorlevels_set_default (struct em28xx *dev)
 
int em28xx_capture_start (struct em28xx *dev, int start)
 
int em28xx_vbi_supported (struct em28xx *dev)
 
int em28xx_set_outfmt (struct em28xx *dev)
 
int em28xx_resolution_set (struct em28xx *dev)
 
int em28xx_set_alternate (struct em28xx *dev)
 
int em28xx_gpio_set (struct em28xx *dev, struct em28xx_reg_seq *gpio)
 
 EXPORT_SYMBOL_GPL (em28xx_gpio_set)
 
int em28xx_set_mode (struct em28xx *dev, enum em28xx_mode set_mode)
 
 EXPORT_SYMBOL_GPL (em28xx_set_mode)
 
void em28xx_uninit_isoc (struct em28xx *dev, enum em28xx_mode mode)
 
 EXPORT_SYMBOL_GPL (em28xx_uninit_isoc)
 
void em28xx_stop_urbs (struct em28xx *dev)
 
 EXPORT_SYMBOL_GPL (em28xx_stop_urbs)
 
int em28xx_alloc_isoc (struct em28xx *dev, enum em28xx_mode mode, int max_packets, int num_bufs, int max_pkt_size)
 
 EXPORT_SYMBOL_GPL (em28xx_alloc_isoc)
 
int em28xx_init_isoc (struct em28xx *dev, enum em28xx_mode mode, int max_packets, int num_bufs, int max_pkt_size, int(*isoc_copy)(struct em28xx *dev, struct urb *urb))
 
 EXPORT_SYMBOL_GPL (em28xx_init_isoc)
 
void em28xx_wake_i2c (struct em28xx *dev)
 
int em28xx_register_extension (struct em28xx_ops *ops)
 
 EXPORT_SYMBOL (em28xx_register_extension)
 
void em28xx_unregister_extension (struct em28xx_ops *ops)
 
 EXPORT_SYMBOL (em28xx_unregister_extension)
 
void em28xx_init_extension (struct em28xx *dev)
 
void em28xx_close_extension (struct em28xx *dev)
 

Macro Definition Documentation

#define em28xx_coredbg (   fmt,
  arg... 
)
Value:
do {\
if (core_debug) \
printk(KERN_INFO "%s %s :"fmt, \
dev->name, __func__ , ##arg); } while (0)

Definition at line 41 of file em28xx-core.c.

#define em28xx_isocdbg (   fmt,
  arg... 
)
Value:
do {\
if (core_debug) \
printk(KERN_INFO "%s %s :"fmt, \
dev->name, __func__ , ##arg); } while (0)

Definition at line 64 of file em28xx-core.c.

#define em28xx_regdbg (   fmt,
  arg... 
)
Value:
do {\
if (reg_debug) \
printk(KERN_INFO "%s %s :"fmt, \
dev->name, __func__ , ##arg); } while (0)

Definition at line 50 of file em28xx-core.c.

Function Documentation

int em28xx_alloc_isoc ( struct em28xx dev,
enum em28xx_mode  mode,
int  max_packets,
int  num_bufs,
int  max_pkt_size 
)

Definition at line 1036 of file em28xx-core.c.

int em28xx_audio_analog_set ( struct em28xx dev)

Definition at line 426 of file em28xx-core.c.

int em28xx_audio_setup ( struct em28xx dev)

Definition at line 499 of file em28xx-core.c.

int em28xx_capture_start ( struct em28xx dev,
int  start 
)

Definition at line 622 of file em28xx-core.c.

void em28xx_close_extension ( struct em28xx dev)

Definition at line 1249 of file em28xx-core.c.

int em28xx_colorlevels_set_default ( struct em28xx dev)

Definition at line 604 of file em28xx-core.c.

int em28xx_gpio_set ( struct em28xx dev,
struct em28xx_reg_seq gpio 
)

Definition at line 860 of file em28xx-core.c.

void em28xx_init_extension ( struct em28xx dev)

Definition at line 1236 of file em28xx-core.c.

int em28xx_init_isoc ( struct em28xx dev,
enum em28xx_mode  mode,
int  max_packets,
int  num_bufs,
int  max_pkt_size,
int(*)(struct em28xx *dev, struct urb *urb isoc_copy 
)

Definition at line 1131 of file em28xx-core.c.

int em28xx_read_ac97 ( struct em28xx dev,
u8  reg 
)

Definition at line 273 of file em28xx-core.c.

int em28xx_read_reg ( struct em28xx dev,
u16  reg 
)

Definition at line 139 of file em28xx-core.c.

int em28xx_read_reg_req ( struct em28xx dev,
u8  req,
u16  reg 
)

Definition at line 127 of file em28xx-core.c.

int em28xx_read_reg_req_len ( struct em28xx dev,
u8  req,
u16  reg,
char buf,
int  len 
)

Definition at line 73 of file em28xx-core.c.

int em28xx_register_extension ( struct em28xx_ops ops)

Definition at line 1207 of file em28xx-core.c.

int em28xx_resolution_set ( struct em28xx dev)

Definition at line 775 of file em28xx-core.c.

int em28xx_set_alternate ( struct em28xx dev)

Definition at line 807 of file em28xx-core.c.

int em28xx_set_mode ( struct em28xx dev,
enum em28xx_mode  set_mode 
)

Definition at line 895 of file em28xx-core.c.

int em28xx_set_outfmt ( struct em28xx dev)

Definition at line 688 of file em28xx-core.c.

void em28xx_stop_urbs ( struct em28xx dev)

Definition at line 1011 of file em28xx-core.c.

void em28xx_uninit_isoc ( struct em28xx dev,
enum em28xx_mode  mode 
)

Definition at line 964 of file em28xx-core.c.

void em28xx_unregister_extension ( struct em28xx_ops ops)

Definition at line 1222 of file em28xx-core.c.

int em28xx_vbi_supported ( struct em28xx dev)

Definition at line 674 of file em28xx-core.c.

void em28xx_wake_i2c ( struct em28xx dev)

Definition at line 1186 of file em28xx-core.c.

int em28xx_write_ac97 ( struct em28xx dev,
u8  reg,
u16  val 
)

Definition at line 300 of file em28xx-core.c.

int em28xx_write_reg ( struct em28xx dev,
u16  reg,
u8  val 
)

Definition at line 213 of file em28xx-core.c.

int em28xx_write_reg_bits ( struct em28xx dev,
u16  reg,
u8  val,
u8  bitmask 
)

Definition at line 224 of file em28xx-core.c.

int em28xx_write_regs ( struct em28xx dev,
u16  reg,
char buf,
int  len 
)

Definition at line 190 of file em28xx-core.c.

int em28xx_write_regs_req ( struct em28xx dev,
u8  req,
u16  reg,
char buf,
int  len 
)

Definition at line 149 of file em28xx-core.c.

EXPORT_SYMBOL ( em28xx_register_extension  )
EXPORT_SYMBOL ( em28xx_unregister_extension  )
EXPORT_SYMBOL_GPL ( em28xx_read_reg  )
EXPORT_SYMBOL_GPL ( em28xx_write_regs  )
EXPORT_SYMBOL_GPL ( em28xx_write_reg  )
EXPORT_SYMBOL_GPL ( em28xx_write_reg_bits  )
EXPORT_SYMBOL_GPL ( em28xx_read_ac97  )
EXPORT_SYMBOL_GPL ( em28xx_write_ac97  )
EXPORT_SYMBOL_GPL ( em28xx_audio_analog_set  )
EXPORT_SYMBOL_GPL ( em28xx_audio_setup  )
EXPORT_SYMBOL_GPL ( em28xx_gpio_set  )
EXPORT_SYMBOL_GPL ( em28xx_set_mode  )
EXPORT_SYMBOL_GPL ( em28xx_uninit_isoc  )
EXPORT_SYMBOL_GPL ( em28xx_stop_urbs  )
EXPORT_SYMBOL_GPL ( em28xx_alloc_isoc  )
EXPORT_SYMBOL_GPL ( em28xx_init_isoc  )
module_param ( core_debug  ,
int  ,
0644   
)
module_param ( reg_debug  ,
int  ,
0644   
)
module_param ( alt  ,
int  ,
0644   
)
module_param ( disable_vbi  ,
int  ,
0644   
)
MODULE_PARM_DESC ( core_debug  ,
"enable debug messages "  [core] 
)
MODULE_PARM_DESC ( reg_debug  ,
"enable debug messages "  [URB reg] 
)
MODULE_PARM_DESC ( alt  ,
"alternate setting to use for video endpoint  
)
MODULE_PARM_DESC ( disable_vbi  ,
"disable vbi support  
)