blob: bbec05a31d5a9d008b9fee5accd74b3cf69f4071 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -07002/*
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 Chehab10b89ee32005-09-09 13:04:03 -07008 (c) 2005 by Hans J. Koch
9
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070010
11*/
12
Hans Verkuilb9218f22010-12-27 12:22:46 -030013#ifndef _SAA6588_H
14#define _SAA6588_H
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070015
Hans Verkuilb9218f22010-12-27 12:22:46 -030016struct saa6588_command {
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070017 unsigned int block_count;
Hans Verkuil09092782013-12-14 08:28:36 -030018 bool nonblocking;
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070019 int result;
Al Viroae8aed02005-09-29 00:37:34 +010020 unsigned char __user *buffer;
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070021 struct file *instance;
22 poll_table *event_list;
Al Viro37b3c6a2018-02-15 13:11:48 -050023 __poll_t poll_mask;
Mauro Carvalho Chehab10b89ee32005-09-09 13:04:03 -070024};
25
Hans Verkuilb9218f22010-12-27 12:22:46 -030026/* These ioctls are internal to the kernel */
Hans Verkuilb9218f22010-12-27 12:22:46 -030027#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 Chehab10b89ee32005-09-09 13:04:03 -070030
31#endif