blob: f8bc6e8e7b5198d1bb8dade28f803fc75a2e161f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 */
3struct btcx_riscmem {
4 unsigned int size;
Al Virod8eaa582008-05-21 00:31:51 -03005 __le32 *cpu;
6 __le32 *jmp;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 dma_addr_t dma;
8};
9
10struct btcx_skiplist {
11 int start;
12 int end;
13};
14
15int btcx_riscmem_alloc(struct pci_dev *pci,
16 struct btcx_riscmem *risc,
17 unsigned int size);
18void btcx_riscmem_free(struct pci_dev *pci,
19 struct btcx_riscmem *risc);
20
21int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
22 struct v4l2_clip *clips, unsigned int n);
23int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
24 unsigned int n, int mask);
25void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
Hans Verkuilc6eb8ea2008-09-03 17:11:54 -030026void btcx_calc_skips(int line, int width, int *maxy,
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 struct btcx_skiplist *skips, unsigned int *nskips,
28 const struct v4l2_clip *clips, unsigned int nclips);
29
30/*
31 * Local variables:
32 * c-basic-offset: 8
33 * End:
34 */