cx18-fileops.h 988 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * cx18 file operation functions
  4. *
  5. * Derived from ivtv-fileops.h
  6. *
  7. * Copyright (C) 2007 Hans Verkuil <[email protected]>
  8. */
  9. /* Testing/Debugging */
  10. int cx18_v4l2_open(struct file *filp);
  11. ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
  12. loff_t *pos);
  13. ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
  14. loff_t *pos);
  15. int cx18_v4l2_close(struct file *filp);
  16. __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
  17. int cx18_start_capture(struct cx18_open_id *id);
  18. void cx18_stop_capture(struct cx18_open_id *id, int gop_end);
  19. void cx18_mute(struct cx18 *cx);
  20. void cx18_unmute(struct cx18 *cx);
  21. int cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma);
  22. void cx18_vb_timeout(struct timer_list *t);
  23. /* Shared with cx18-alsa module */
  24. int cx18_claim_stream(struct cx18_open_id *id, int type);
  25. void cx18_release_stream(struct cx18_stream *s);