Subversion Repositories shark

Rev

Rev 1063 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
428 giacomo 1
 
1063 tullio 2
/*
3
 * This program is free software; you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation; either version 2 of the License, or
6
 * (at your option) any later version.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program; if not, write to the Free Software
15
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
 *
17
 */
18
 
428 giacomo 19
struct btcx_riscmem {
20
        unsigned int   size;
21
        u32            *cpu;
22
        u32            *jmp;
23
        dma_addr_t     dma;
24
};
25
 
26
struct btcx_skiplist {
27
        int start;
28
        int end;
29
};
30
 
31
int  btcx_riscmem_alloc(struct pci_dev *pci,
32
                        struct btcx_riscmem *risc,
33
                        unsigned int size);
34
void btcx_riscmem_free(struct pci_dev *pci,
35
                       struct btcx_riscmem *risc);
36
 
37
int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
38
                      struct v4l2_clip *clips, unsigned int n);
39
int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
40
               unsigned int n, int mask);
41
void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
42
void btcx_calc_skips(int line, int width, unsigned int *maxy,
43
                     struct btcx_skiplist *skips, unsigned int *nskips,
44
                     const struct v4l2_clip *clips, unsigned int nclips);
45
 
46
/*
47
 * Local variables:
48
 * c-basic-offset: 8
49
 * End:
50
 */