#include <linux/i2c.h>
#include <sound/core.h>
#include <sound/ac97_codec.h>
#include <media/videobuf2-v4l2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#define STK1160_VERSION …
#define STK1160_VERSION_NUM …
#define STK1160_NUM_PACKETS …
#define STK1160_NUM_BUFS …
#define STK1160_MIN_BUFS …
#define STK1160_EP_VIDEO …
#define STK1160_EP_AUDIO …
#define STK1160_MIN_VIDEO_BUFFERS …
#define STK1160_MAX_VIDEO_BUFFERS …
#define STK1160_MIN_PKT_SIZE …
#define STK1160_MAX_INPUT …
#define STK1160_SVIDEO_INPUT …
#define STK1160_AC97_TIMEOUT …
#define STK1160_I2C_TIMEOUT …
#ifdef DEBUG
#define stk1160_dbg …
#else
#define stk1160_dbg(fmt, args...) …
#endif
#define stk1160_info(fmt, args...) …
#define stk1160_warn(fmt, args...) …
#define stk1160_err(fmt, args...) …
struct stk1160_buffer { … };
struct stk1160_urb { … };
struct stk1160_isoc_ctl { … };
struct stk1160_fmt { … };
struct stk1160 { … };
struct regval { … };
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, enum vb2_buffer_state vb2_state);
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);
void stk1160_ac97_setup(struct stk1160 *dev);
static inline struct device *stk1160_get_dmadev(struct stk1160 *dev)
{ … }