Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
stk1160.h File Reference
#include <linux/i2c.h>
#include <sound/core.h>
#include <sound/ac97_codec.h>
#include <media/videobuf2-core.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>

Go to the source code of this file.

Data Structures

struct  stk1160_buffer
 
struct  stk1160_isoc_ctl
 
struct  stk1160_fmt
 
struct  stk1160
 
struct  regval
 

Macros

#define STK1160_VERSION   "0.9.5"
 
#define STK1160_VERSION_NUM   0x000905
 
#define STK1160_NUM_PACKETS   64
 
#define STK1160_NUM_BUFS   16 /* TODO */
 
#define STK1160_EP_VIDEO   0x82
 
#define STK1160_EP_AUDIO   0x81
 
#define STK1160_MIN_VIDEO_BUFFERS   8
 
#define STK1160_MAX_VIDEO_BUFFERS   32
 
#define STK1160_MIN_PKT_SIZE   3072
 
#define STK1160_MAX_INPUT   4
 
#define STK1160_SVIDEO_INPUT   4
 
#define STK1160_I2C_TIMEOUT   100
 
#define DEBUG
 
#define stk1160_dbg(fmt, args...)   printk(KERN_DEBUG "stk1160: " fmt, ## args)
 
#define stk1160_info(fmt, args...)   pr_info("stk1160: " fmt, ## args)
 
#define stk1160_warn(fmt, args...)   pr_warn("stk1160: " fmt, ## args)
 
#define stk1160_err(fmt, args...)   pr_err("stk1160: " fmt, ## args)
 

Functions

int stk1160_vb2_setup (struct stk1160 *dev)
 
int stk1160_video_register (struct stk1160 *dev)
 
void stk1160_video_unregister (struct stk1160 *dev)
 
void stk1160_clear_queue (struct stk1160 *dev)
 
int stk1160_alloc_isoc (struct stk1160 *dev)
 
void stk1160_free_isoc (struct stk1160 *dev)
 
void stk1160_cancel_isoc (struct stk1160 *dev)
 
void stk1160_uninit_isoc (struct stk1160 *dev)
 
int stk1160_i2c_register (struct stk1160 *dev)
 
int stk1160_i2c_unregister (struct stk1160 *dev)
 
int stk1160_read_reg (struct stk1160 *dev, u16 reg, u8 *value)
 
int stk1160_write_reg (struct stk1160 *dev, u16 reg, u16 value)
 
int stk1160_write_regs_req (struct stk1160 *dev, u8 req, u16 reg, char *buf, int len)
 
int stk1160_read_reg_req_len (struct stk1160 *dev, u8 req, u16 reg, char *buf, int len)
 
void stk1160_select_input (struct stk1160 *dev)
 

Macro Definition Documentation

#define DEBUG

Definition at line 60 of file stk1160.h.

#define stk1160_dbg (   fmt,
  args... 
)    printk(KERN_DEBUG "stk1160: " fmt, ## args)

Definition at line 62 of file stk1160.h.

#define STK1160_EP_AUDIO   0x81

Definition at line 41 of file stk1160.h.

#define STK1160_EP_VIDEO   0x82

Definition at line 40 of file stk1160.h.

#define stk1160_err (   fmt,
  args... 
)    pr_err("stk1160: " fmt, ## args)

Definition at line 74 of file stk1160.h.

#define STK1160_I2C_TIMEOUT   100

Definition at line 52 of file stk1160.h.

#define stk1160_info (   fmt,
  args... 
)    pr_info("stk1160: " fmt, ## args)

Definition at line 68 of file stk1160.h.

#define STK1160_MAX_INPUT   4

Definition at line 49 of file stk1160.h.

#define STK1160_MAX_VIDEO_BUFFERS   32

Definition at line 45 of file stk1160.h.

#define STK1160_MIN_PKT_SIZE   3072

Definition at line 47 of file stk1160.h.

#define STK1160_MIN_VIDEO_BUFFERS   8

Definition at line 44 of file stk1160.h.

#define STK1160_NUM_BUFS   16 /* TODO */

Definition at line 37 of file stk1160.h.

#define STK1160_NUM_PACKETS   64

Definition at line 34 of file stk1160.h.

#define STK1160_SVIDEO_INPUT   4

Definition at line 50 of file stk1160.h.

#define STK1160_VERSION   "0.9.5"

Definition at line 30 of file stk1160.h.

#define STK1160_VERSION_NUM   0x000905

Definition at line 31 of file stk1160.h.

#define stk1160_warn (   fmt,
  args... 
)    pr_warn("stk1160: " fmt, ## args)

Definition at line 71 of file stk1160.h.

Function Documentation

int stk1160_alloc_isoc ( struct stk1160 dev)

Definition at line 424 of file stk1160-video.c.

void stk1160_cancel_isoc ( struct stk1160 dev)

Definition at line 343 of file stk1160-video.c.

void stk1160_clear_queue ( struct stk1160 dev)

Definition at line 658 of file stk1160-v4l.c.

void stk1160_free_isoc ( struct stk1160 dev)

Definition at line 373 of file stk1160-video.c.

int stk1160_i2c_register ( struct stk1160 dev)

Definition at line 257 of file stk1160-i2c.c.

int stk1160_i2c_unregister ( struct stk1160 dev)

Definition at line 290 of file stk1160-i2c.c.

int stk1160_read_reg ( struct stk1160 dev,
u16  reg,
u8 value 
)

Definition at line 66 of file stk1160-core.c.

int stk1160_read_reg_req_len ( struct stk1160 dev,
u8  req,
u16  reg,
char buf,
int  len 
)
void stk1160_select_input ( struct stk1160 dev)

Definition at line 101 of file stk1160-core.c.

void stk1160_uninit_isoc ( struct stk1160 dev)

Definition at line 415 of file stk1160-video.c.

int stk1160_vb2_setup ( struct stk1160 dev)

Definition at line 678 of file stk1160-v4l.c.

int stk1160_video_register ( struct stk1160 dev)

Definition at line 701 of file stk1160-v4l.c.

void stk1160_video_unregister ( struct stk1160 dev)
int stk1160_write_reg ( struct stk1160 dev,
u16  reg,
u16  value 
)

Definition at line 84 of file stk1160-core.c.

int stk1160_write_regs_req ( struct stk1160 dev,
u8  req,
u16  reg,
char buf,
int  len 
)