Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 2 | /* |
| 3 | |
| 4 | Types and defines needed for RDS. This is included by |
| 5 | saa6588.c and every driver (e.g. bttv-driver.c) that wants |
| 6 | to use the saa6588 module. |
| 7 | |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 8 | (c) 2005 by Hans J. Koch |
| 9 | |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 10 | |
| 11 | */ |
| 12 | |
Hans Verkuil | b9218f2 | 2010-12-27 12:22:46 -0300 | [diff] [blame] | 13 | #ifndef _SAA6588_H |
| 14 | #define _SAA6588_H |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 15 | |
Hans Verkuil | b9218f2 | 2010-12-27 12:22:46 -0300 | [diff] [blame] | 16 | struct saa6588_command { |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 17 | unsigned int block_count; |
Hans Verkuil | 0909278 | 2013-12-14 08:28:36 -0300 | [diff] [blame] | 18 | bool nonblocking; |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 19 | int result; |
Al Viro | ae8aed0 | 2005-09-29 00:37:34 +0100 | [diff] [blame] | 20 | unsigned char __user *buffer; |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 21 | struct file *instance; |
| 22 | poll_table *event_list; |
Al Viro | 37b3c6a | 2018-02-15 13:11:48 -0500 | [diff] [blame] | 23 | __poll_t poll_mask; |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 24 | }; |
| 25 | |
Hans Verkuil | b9218f2 | 2010-12-27 12:22:46 -0300 | [diff] [blame] | 26 | /* These ioctls are internal to the kernel */ |
Hans Verkuil | b9218f2 | 2010-12-27 12:22:46 -0300 | [diff] [blame] | 27 | #define SAA6588_CMD_CLOSE _IOW('R', 2, int) |
| 28 | #define SAA6588_CMD_READ _IOR('R', 3, int) |
| 29 | #define SAA6588_CMD_POLL _IOR('R', 4, int) |
Mauro Carvalho Chehab | 10b89ee3 | 2005-09-09 13:04:03 -0700 | [diff] [blame] | 30 | |
| 31 | #endif |