#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/interrupt.h>
#include <linux/pgtable.h>
#include <asm/page.h>
#include <media/v4l2-ioctl.h>
#include "bttvp.h"
#define VCR_HACK_LINES …
int
bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,
struct scatterlist *sglist,
unsigned int offset, unsigned int bpl,
unsigned int padding, unsigned int skip_lines,
unsigned int store_lines)
{ … }
static int
bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc,
struct scatterlist *sglist,
unsigned int yoffset, unsigned int ybpl,
unsigned int ypadding, unsigned int ylines,
unsigned int uoffset, unsigned int voffset,
unsigned int hshift, unsigned int vshift,
unsigned int cpadding)
{ … }
static void
bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo,
int width, int height, int interleaved,
const struct bttv_tvnorm *tvnorm)
{ … }
static void
bttv_calc_geo (struct bttv * btv,
struct bttv_geometry * geo,
unsigned int width,
unsigned int height,
int both_fields,
const struct bttv_tvnorm * tvnorm,
const struct v4l2_rect * crop)
{ … }
static void
bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd)
{ … }
static void bttv_set_risc_status(struct bttv *btv)
{ … }
static void bttv_set_irq_timer(struct bttv *btv)
{ … }
static int bttv_set_capture_control(struct bttv *btv, int start_capture)
{ … }
static void bttv_start_dma(struct bttv *btv)
{ … }
static void bttv_stop_dma(struct bttv *btv)
{ … }
void bttv_set_dma(struct bttv *btv, int start_capture)
{ … }
int
bttv_risc_init_main(struct bttv *btv)
{ … }
int
bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc,
int irqflags)
{ … }
int bttv_buffer_risc_vbi(struct bttv *btv, struct bttv_buffer *buf)
{ … }
int
bttv_buffer_activate_vbi(struct bttv *btv,
struct bttv_buffer *vbi)
{ … }
int
bttv_buffer_activate_video(struct bttv *btv,
struct bttv_buffer_set *set)
{ … }
int
bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf)
{ … }