2019-05-20 15:19:02 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-09-10 04:04:03 +08: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 23:22:46 +08:00
|
|
|
#ifndef _SAA6588_H
|
|
|
|
#define _SAA6588_H
|
2005-09-10 04:04:03 +08:00
|
|
|
|
2010-12-27 23:22:46 +08:00
|
|
|
struct saa6588_command {
|
2005-09-10 04:04:03 +08:00
|
|
|
unsigned int block_count;
|
2013-12-14 19:28:36 +08:00
|
|
|
bool nonblocking;
|
2005-09-10 04:04:03 +08:00
|
|
|
int result;
|
2005-09-29 07:37:34 +08:00
|
|
|
unsigned char __user *buffer;
|
2005-09-10 04:04:03 +08:00
|
|
|
struct file *instance;
|
|
|
|
poll_table *event_list;
|
2018-02-16 02:11:48 +08:00
|
|
|
__poll_t poll_mask;
|
2005-09-10 04:04:03 +08:00
|
|
|
};
|
|
|
|
|
2010-12-27 23:22:46 +08: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 04:04:03 +08:00
|
|
|
|
|
|
|
#endif
|