#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/wait.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include "videocodec.h"
#include "zoran.h"
#include "zoran_device.h"
#include "zoran_card.h"
#define IRQ_MASK …
static bool lml33dpath;
module_param(lml33dpath, bool, 0644);
MODULE_PARM_DESC(…) …;
static void zr36057_init_vfe(struct zoran *zr)
{ … }
void GPIO(struct zoran *zr, int bit, unsigned int value)
{ … }
int post_office_wait(struct zoran *zr)
{ … }
int post_office_write(struct zoran *zr, unsigned int guest,
unsigned int reg, unsigned int value)
{ … }
int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg)
{ … }
void jpeg_codec_sleep(struct zoran *zr, int sleep)
{ … }
int jpeg_codec_reset(struct zoran *zr)
{ … }
static void zr36057_adjust_vfe(struct zoran *zr, enum zoran_codec_mode mode)
{ … }
static void zr36057_set_vfe(struct zoran *zr, int video_width, int video_height,
const struct zoran_format *format)
{ … }
void zr36057_set_memgrab(struct zoran *zr, int mode)
{ … }
static inline void set_frame(struct zoran *zr, int val)
{ … }
static void set_videobus_dir(struct zoran *zr, int val)
{ … }
static void init_jpeg_queue(struct zoran *zr)
{ … }
static void zr36057_set_jpg(struct zoran *zr, enum zoran_codec_mode mode)
{ … }
void clear_interrupt_counters(struct zoran *zr)
{ … }
static u32 count_reset_interrupt(struct zoran *zr)
{ … }
void jpeg_start(struct zoran *zr)
{ … }
void zr36057_enable_jpg(struct zoran *zr, enum zoran_codec_mode mode)
{ … }
void zoran_feed_stat_com(struct zoran *zr)
{ … }
static void zoran_reap_stat_com(struct zoran *zr)
{ … }
irqreturn_t zoran_irq(int irq, void *dev_id)
{ … }
void zoran_set_pci_master(struct zoran *zr, int set_master)
{ … }
void zoran_init_hardware(struct zoran *zr)
{ … }
void zr36057_restart(struct zoran *zr)
{ … }