1 struct btcx_riscmem {
2 	unsigned int   size;
3 	__le32         *cpu;
4 	__le32         *jmp;
5 	dma_addr_t     dma;
6 };
7 
8 struct btcx_skiplist {
9 	int start;
10 	int end;
11 };
12 
13 int  btcx_riscmem_alloc(struct pci_dev *pci,
14 			struct btcx_riscmem *risc,
15 			unsigned int size);
16 void btcx_riscmem_free(struct pci_dev *pci,
17 		       struct btcx_riscmem *risc);
18 
19 int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
20 		      struct v4l2_clip *clips, unsigned int n);
21 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
22 	       unsigned int n, int mask);
23 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
24 void btcx_calc_skips(int line, int width, int *maxy,
25 		     struct btcx_skiplist *skips, unsigned int *nskips,
26 		     const struct v4l2_clip *clips, unsigned int nclips);
27