saa6588.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. Types and defines needed for RDS. This is included by
  3. saa6588.c and every driver (e.g. bttv-driver.c) that wants
  4. to use the saa6588 module.
  5. (c) 2005 by Hans J. Koch
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #ifndef _SAA6588_H
  19. #define _SAA6588_H
  20. struct saa6588_command {
  21. unsigned int block_count;
  22. bool nonblocking;
  23. int result;
  24. unsigned char __user *buffer;
  25. struct file *instance;
  26. poll_table *event_list;
  27. };
  28. /* These ioctls are internal to the kernel */
  29. #define SAA6588_CMD_CLOSE _IOW('R', 2, int)
  30. #define SAA6588_CMD_READ _IOR('R', 3, int)
  31. #define SAA6588_CMD_POLL _IOR('R', 4, int)
  32. #endif