2019-05-20 10:19:02 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-09-10 00:04:03 +04:00
|
|
|
/*
|
|
|
|
|
|
|
|
Types and defines needed for RDS. This is included by
|
|
|
|
saa6588.c and every driver (e.g. bttv-driver.c) that wants
|
|
|
|
to use the saa6588 module.
|
|
|
|
|
|
|
|
(c) 2005 by Hans J. Koch
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2010-12-27 18:22:46 +03:00
|
|
|
#ifndef _SAA6588_H
|
|
|
|
#define _SAA6588_H
|
2005-09-10 00:04:03 +04:00
|
|
|
|
2010-12-27 18:22:46 +03:00
|
|
|
struct saa6588_command {
|
2005-09-10 00:04:03 +04:00
|
|
|
unsigned int block_count;
|
2013-12-14 15:28:36 +04:00
|
|
|
bool nonblocking;
|
2005-09-10 00:04:03 +04:00
|
|
|
int result;
|
2005-09-29 03:37:34 +04:00
|
|
|
unsigned char __user *buffer;
|
2005-09-10 00:04:03 +04:00
|
|
|
struct file *instance;
|
|
|
|
poll_table *event_list;
|
2018-02-15 21:11:48 +03:00
|
|
|
__poll_t poll_mask;
|
2005-09-10 00:04:03 +04:00
|
|
|
};
|
|
|
|
|
2010-12-27 18:22:46 +03:00
|
|
|
/* These ioctls are internal to the kernel */
|
|
|
|
#define SAA6588_CMD_CLOSE _IOW('R', 2, int)
|
|
|
|
#define SAA6588_CMD_READ _IOR('R', 3, int)
|
|
|
|
#define SAA6588_CMD_POLL _IOR('R', 4, int)
|
2005-09-10 00:04:03 +04:00
|
|
|
|
|
|
|
#endif
|