xref: /openbmc/linux/include/media/i2c/saa6588.h (revision 74ba9207)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
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 
8     (c) 2005 by Hans J. Koch
9 
10 
11 */
12 
13 #ifndef _SAA6588_H
14 #define _SAA6588_H
15 
16 struct saa6588_command {
17 	unsigned int  block_count;
18 	bool          nonblocking;
19 	int           result;
20 	unsigned char __user *buffer;
21 	struct file   *instance;
22 	poll_table    *event_list;
23 	__poll_t      poll_mask;
24 };
25 
26 /* These ioctls are internal to the kernel */
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)
30 
31 #endif
32