Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
tm6000.h File Reference
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <media/videobuf-vmalloc.h>
#include "tm6000-usb-isoc.h"
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <media/v4l2-device.h>
#include <linux/dvb/frontend.h>
#include "dvb_demux.h"
#include "dvb_frontend.h"
#include "dmxdev.h"

Go to the source code of this file.

Data Structures

struct  tm6000_input
 
struct  tm6000_fmt
 
struct  tm6000_buffer
 
struct  tm6000_dmaqueue
 
struct  tm6000_gpio
 
struct  tm6000_capabilities
 
struct  tm6000_dvb
 
struct  snd_tm6000_card
 
struct  tm6000_endpoint
 
struct  tm6000_core
 
struct  tm6000_ops
 
struct  tm6000_fh
 

Macros

#define TM6000_QUIRK_NO_USB_DELAY   (1 << 0)
 
#define TM6000_STD
 
#define dprintk(dev, level, fmt, arg...)
 
#define V4L2_DEBUG_REG   0x0004
 
#define V4L2_DEBUG_I2C   0x0008
 
#define V4L2_DEBUG_QUEUE   0x0010
 
#define V4L2_DEBUG_ISOC   0x0020
 
#define V4L2_DEBUG_RES_LOCK   0x0040 /* Resource locking */
 
#define V4L2_DEBUG_OPEN   0x0080 /* video open/close debug */
 
#define tm6000_err(fmt, arg...)
 

Enumerations

enum  tm6000_itype {
  TM6000_INPUT_TV = 1, TM6000_INPUT_COMPOSITE1, TM6000_INPUT_COMPOSITE2, TM6000_INPUT_SVIDEO,
  TM6000_INPUT_DVB, TM6000_INPUT_RADIO
}
 
enum  tm6000_mux {
  TM6000_VMUX_VIDEO_A = 1, TM6000_VMUX_VIDEO_B, TM6000_VMUX_VIDEO_AB, TM6000_AMUX_ADC1,
  TM6000_AMUX_ADC2, TM6000_AMUX_SIF1, TM6000_AMUX_SIF2, TM6000_AMUX_I2S
}
 
enum  tm6000_devtype { TM6000 = 0, TM5600, TM6010 }
 
enum  tm6000_core_state { DEV_INITIALIZED = 0x01, DEV_DISCONNECTED = 0x02, DEV_MISCONFIGURED = 0x04 }
 
enum  tm6000_io_method { IO_NONE, IO_READ, IO_MMAP }
 
enum  tm6000_mode { TM6000_MODE_UNKNOWN = 0, TM6000_MODE_ANALOG, TM6000_MODE_DIGITAL }
 
enum  tm6000_ops_type { TM6000_AUDIO = 0x10, TM6000_DVB = 0x20 }
 

Functions

int tm6000_tuner_callback (void *ptr, int component, int command, int arg)
 
int tm6000_xc5000_callback (void *ptr, int component, int command, int arg)
 
int tm6000_cards_setup (struct tm6000_core *dev)
 
void tm6000_flash_led (struct tm6000_core *dev, u8 state)
 
int tm6000_read_write_usb (struct tm6000_core *dev, u8 reqtype, u8 req, u16 value, u16 index, u8 *buf, u16 len)
 
int tm6000_get_reg (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_get_reg16 (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_get_reg32 (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_set_reg (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_set_reg_mask (struct tm6000_core *dev, u8 req, u16 value, u16 index, u16 mask)
 
int tm6000_i2c_reset (struct tm6000_core *dev, u16 tsleep)
 
int tm6000_init (struct tm6000_core *dev)
 
int tm6000_reset (struct tm6000_core *dev)
 
int tm6000_init_analog_mode (struct tm6000_core *dev)
 
int tm6000_init_digital_mode (struct tm6000_core *dev)
 
int tm6000_set_audio_bitrate (struct tm6000_core *dev, int bitrate)
 
int tm6000_set_audio_rinput (struct tm6000_core *dev)
 
int tm6000_tvaudio_set_mute (struct tm6000_core *dev, u8 mute)
 
void tm6000_set_volume (struct tm6000_core *dev, int vol)
 
int tm6000_v4l2_register (struct tm6000_core *dev)
 
int tm6000_v4l2_unregister (struct tm6000_core *dev)
 
int tm6000_v4l2_exit (void)
 
void tm6000_set_fourcc_format (struct tm6000_core *dev)
 
void tm6000_remove_from_devlist (struct tm6000_core *dev)
 
void tm6000_add_into_devlist (struct tm6000_core *dev)
 
int tm6000_register_extension (struct tm6000_ops *ops)
 
void tm6000_unregister_extension (struct tm6000_ops *ops)
 
void tm6000_init_extension (struct tm6000_core *dev)
 
void tm6000_close_extension (struct tm6000_core *dev)
 
int tm6000_call_fillbuf (struct tm6000_core *dev, enum tm6000_ops_type type, char *buf, int size)
 
void tm6000_get_std_res (struct tm6000_core *dev)
 
int tm6000_set_standard (struct tm6000_core *dev)
 
int tm6000_i2c_register (struct tm6000_core *dev)
 
int tm6000_i2c_unregister (struct tm6000_core *dev)
 
int tm6000_v4l2_mmap (struct file *filp, struct vm_area_struct *vma)
 
int tm6000_vidioc_streamon (struct file *file, void *priv, enum v4l2_buf_type i)
 
int tm6000_vidioc_streamoff (struct file *file, void *priv, enum v4l2_buf_type i)
 
int tm6000_vidioc_reqbufs (struct file *file, void *priv, struct v4l2_requestbuffers *rb)
 
int tm6000_vidioc_querybuf (struct file *file, void *priv, struct v4l2_buffer *b)
 
int tm6000_vidioc_qbuf (struct file *file, void *priv, struct v4l2_buffer *b)
 
int tm6000_vidioc_dqbuf (struct file *file, void *priv, struct v4l2_buffer *b)
 
ssize_t tm6000_v4l2_read (struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
 
unsigned int tm6000_v4l2_poll (struct file *file, struct poll_table_struct *wait)
 
int tm6000_queue_init (struct tm6000_core *dev)
 
int tm6000_ir_init (struct tm6000_core *dev)
 
int tm6000_ir_fini (struct tm6000_core *dev)
 
void tm6000_ir_wait (struct tm6000_core *dev, u8 state)
 
int tm6000_ir_int_start (struct tm6000_core *dev)
 
void tm6000_ir_int_stop (struct tm6000_core *dev)
 

Variables

int tm6000_debug
 

Macro Definition Documentation

#define dprintk (   dev,
  level,
  fmt,
  arg... 
)
Value:
do {\
printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \
dev->name, __func__ , ##arg); } while (0)

Definition at line 385 of file tm6000.h.

#define tm6000_err (   fmt,
  arg... 
)
Value:
do {\
printk(KERN_ERR "tm6000 %s :"fmt, \
__func__ , ##arg); } while (0)

Definition at line 397 of file tm6000.h.

#define TM6000_QUIRK_NO_USB_DELAY   (1 << 0)

Definition at line 170 of file tm6000.h.

#define TM6000_STD
Value:

Definition at line 296 of file tm6000.h.

#define V4L2_DEBUG_I2C   0x0008

Definition at line 391 of file tm6000.h.

#define V4L2_DEBUG_ISOC   0x0020

Definition at line 393 of file tm6000.h.

#define V4L2_DEBUG_OPEN   0x0080 /* video open/close debug */

Definition at line 395 of file tm6000.h.

#define V4L2_DEBUG_QUEUE   0x0010

Definition at line 392 of file tm6000.h.

#define V4L2_DEBUG_REG   0x0004

Definition at line 390 of file tm6000.h.

#define V4L2_DEBUG_RES_LOCK   0x0040 /* Resource locking */

Definition at line 394 of file tm6000.h.

Enumeration Type Documentation

Enumerator:
DEV_INITIALIZED 
DEV_DISCONNECTED 
DEV_MISCONFIGURED 

Definition at line 103 of file tm6000.h.

Enumerator:
TM6000 
TM5600 
TM6010 

Definition at line 57 of file tm6000.h.

Enumerator:
IO_NONE 
IO_READ 
IO_MMAP 

Definition at line 110 of file tm6000.h.

Enumerator:
TM6000_INPUT_TV 
TM6000_INPUT_COMPOSITE1 
TM6000_INPUT_COMPOSITE2 
TM6000_INPUT_SVIDEO 
TM6000_INPUT_DVB 
TM6000_INPUT_RADIO 

Definition at line 37 of file tm6000.h.

Enumerator:
TM6000_MODE_UNKNOWN 
TM6000_MODE_ANALOG 
TM6000_MODE_DIGITAL 

Definition at line 116 of file tm6000.h.

enum tm6000_mux
Enumerator:
TM6000_VMUX_VIDEO_A 
TM6000_VMUX_VIDEO_B 
TM6000_VMUX_VIDEO_AB 
TM6000_AMUX_ADC1 
TM6000_AMUX_ADC2 
TM6000_AMUX_SIF1 
TM6000_AMUX_SIF2 
TM6000_AMUX_I2S 

Definition at line 46 of file tm6000.h.

Enumerator:
TM6000_AUDIO 
TM6000_DVB 

Definition at line 270 of file tm6000.h.

Function Documentation

void tm6000_add_into_devlist ( struct tm6000_core dev)

Definition at line 849 of file tm6000-core.c.

int tm6000_call_fillbuf ( struct tm6000_core dev,
enum tm6000_ops_type  type,
char buf,
int  size 
)

Definition at line 862 of file tm6000-core.c.

int tm6000_cards_setup ( struct tm6000_core dev)

Definition at line 800 of file tm6000-cards.c.

void tm6000_close_extension ( struct tm6000_core dev)

Definition at line 923 of file tm6000-core.c.

void tm6000_flash_led ( struct tm6000_core dev,
u8  state 
)

Definition at line 646 of file tm6000-cards.c.

int tm6000_get_reg ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 119 of file tm6000-core.c.

int tm6000_get_reg16 ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 157 of file tm6000-core.c.

int tm6000_get_reg32 ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 171 of file tm6000-core.c.

void tm6000_get_std_res ( struct tm6000_core dev)

Definition at line 448 of file tm6000-stds.c.

int tm6000_i2c_register ( struct tm6000_core dev)

Definition at line 305 of file tm6000-i2c.c.

int tm6000_i2c_reset ( struct tm6000_core dev,
u16  tsleep 
)

Definition at line 185 of file tm6000-core.c.

int tm6000_i2c_unregister ( struct tm6000_core dev)

Definition at line 330 of file tm6000-i2c.c.

int tm6000_init ( struct tm6000_core dev)

Definition at line 565 of file tm6000-core.c.

int tm6000_init_analog_mode ( struct tm6000_core dev)

Definition at line 281 of file tm6000-core.c.

int tm6000_init_digital_mode ( struct tm6000_core dev)

Definition at line 354 of file tm6000-core.c.

void tm6000_init_extension ( struct tm6000_core dev)

Definition at line 909 of file tm6000-core.c.

int tm6000_ir_fini ( struct tm6000_core dev)

Definition at line 473 of file tm6000-input.c.

int tm6000_ir_init ( struct tm6000_core dev)

Definition at line 396 of file tm6000-input.c.

int tm6000_ir_int_start ( struct tm6000_core dev)

Definition at line 376 of file tm6000-input.c.

void tm6000_ir_int_stop ( struct tm6000_core dev)

Definition at line 386 of file tm6000-input.c.

void tm6000_ir_wait ( struct tm6000_core dev,
u8  state 
)

Definition at line 77 of file tm6000-input.c.

int tm6000_queue_init ( struct tm6000_core dev)
int tm6000_read_write_usb ( struct tm6000_core dev,
u8  reqtype,
u8  req,
u16  value,
u16  index,
u8 buf,
u16  len 
)

Definition at line 35 of file tm6000-core.c.

int tm6000_register_extension ( struct tm6000_ops ops)

Definition at line 879 of file tm6000-core.c.

void tm6000_remove_from_devlist ( struct tm6000_core dev)

Definition at line 842 of file tm6000-core.c.

int tm6000_reset ( struct tm6000_core dev)
int tm6000_set_audio_bitrate ( struct tm6000_core dev,
int  bitrate 
)

Definition at line 617 of file tm6000-core.c.

int tm6000_set_audio_rinput ( struct tm6000_core dev)

Definition at line 659 of file tm6000-core.c.

void tm6000_set_fourcc_format ( struct tm6000_core dev)

Definition at line 201 of file tm6000-core.c.

int tm6000_set_reg ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 111 of file tm6000-core.c.

int tm6000_set_reg_mask ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index,
u16  mask 
)

Definition at line 134 of file tm6000-core.c.

int tm6000_set_standard ( struct tm6000_core dev)

Definition at line 477 of file tm6000-stds.c.

void tm6000_set_volume ( struct tm6000_core dev,
int  vol 
)

Definition at line 806 of file tm6000-core.c.

int tm6000_tuner_callback ( void ptr,
int  component,
int  command,
int  arg 
)

Definition at line 717 of file tm6000-cards.c.

int tm6000_tvaudio_set_mute ( struct tm6000_core dev,
u8  mute 
)

Definition at line 746 of file tm6000-core.c.

void tm6000_unregister_extension ( struct tm6000_ops ops)

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

int tm6000_v4l2_exit ( void  )

Definition at line 1839 of file tm6000-video.c.

int tm6000_v4l2_mmap ( struct file filp,
struct vm_area_struct vma 
)
unsigned int tm6000_v4l2_poll ( struct file file,
struct poll_table_struct wait 
)
ssize_t tm6000_v4l2_read ( struct file filp,
char __user buf,
size_t  count,
loff_t *  f_pos 
)
int tm6000_v4l2_register ( struct tm6000_core dev)

Definition at line 1772 of file tm6000-video.c.

int tm6000_v4l2_unregister ( struct tm6000_core dev)

Definition at line 1824 of file tm6000-video.c.

int tm6000_vidioc_dqbuf ( struct file file,
void priv,
struct v4l2_buffer b 
)
int tm6000_vidioc_qbuf ( struct file file,
void priv,
struct v4l2_buffer b 
)
int tm6000_vidioc_querybuf ( struct file file,
void priv,
struct v4l2_buffer b 
)
int tm6000_vidioc_reqbufs ( struct file file,
void priv,
struct v4l2_requestbuffers rb 
)
int tm6000_vidioc_streamoff ( struct file file,
void priv,
enum v4l2_buf_type  i 
)
int tm6000_vidioc_streamon ( struct file file,
void priv,
enum v4l2_buf_type  i 
)
int tm6000_xc5000_callback ( void ptr,
int  component,
int  command,
int  arg 
)

Definition at line 691 of file tm6000-cards.c.

Variable Documentation

int tm6000_debug

Definition at line 60 of file tm6000-video.c.