saa6588.h 682 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Types and defines needed for RDS. This is included by
  4. saa6588.c and every driver (e.g. bttv-driver.c) that wants
  5. to use the saa6588 module.
  6. (c) 2005 by Hans J. Koch
  7. */
  8. #ifndef _SAA6588_H
  9. #define _SAA6588_H
  10. struct saa6588_command {
  11. unsigned int block_count;
  12. bool nonblocking;
  13. int result;
  14. unsigned char __user *buffer;
  15. struct file *instance;
  16. poll_table *event_list;
  17. __poll_t poll_mask;
  18. };
  19. /* These ioctls are internal to the kernel */
  20. #define SAA6588_CMD_CLOSE _IOW('R', 2, int)
  21. #define SAA6588_CMD_READ _IOR('R', 3, int)
  22. #define SAA6588_CMD_POLL _IOR('R', 4, int)
  23. #endif