rds.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. Instead of having a seperate rds.h, I'd prefer to include
  6. this stuff in one of the already existing files like tuner.h
  7. (c) 2005 by Hans J. Koch
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef _RDS_H
  21. #define _RDS_H
  22. struct rds_command {
  23. unsigned int block_count;
  24. int result;
  25. unsigned char __user *buffer;
  26. struct file *instance;
  27. poll_table *event_list;
  28. };
  29. #define RDS_CMD_OPEN _IOW('R',1,int)
  30. #define RDS_CMD_CLOSE _IOW('R',2,int)
  31. #define RDS_CMD_READ _IOR('R',3,int)
  32. #define RDS_CMD_POLL _IOR('R',4,int)
  33. #endif