18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci Types and defines needed for RDS. This is included by 58c2ecf20Sopenharmony_ci saa6588.c and every driver (e.g. bttv-driver.c) that wants 68c2ecf20Sopenharmony_ci to use the saa6588 module. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci (c) 2005 by Hans J. Koch 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci*/ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifndef _SAA6588_H 148c2ecf20Sopenharmony_ci#define _SAA6588_H 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cistruct saa6588_command { 178c2ecf20Sopenharmony_ci unsigned int block_count; 188c2ecf20Sopenharmony_ci bool nonblocking; 198c2ecf20Sopenharmony_ci int result; 208c2ecf20Sopenharmony_ci unsigned char __user *buffer; 218c2ecf20Sopenharmony_ci struct file *instance; 228c2ecf20Sopenharmony_ci poll_table *event_list; 238c2ecf20Sopenharmony_ci __poll_t poll_mask; 248c2ecf20Sopenharmony_ci}; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* These ioctls are internal to the kernel */ 278c2ecf20Sopenharmony_ci#define SAA6588_CMD_CLOSE _IOW('R', 2, int) 288c2ecf20Sopenharmony_ci#define SAA6588_CMD_READ _IOR('R', 3, int) 298c2ecf20Sopenharmony_ci#define SAA6588_CMD_POLL _IOR('R', 4, int) 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif 32