btcx-risc.h 838 B

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