btcx-risc.h 799 B

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