110b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab/*
210b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
310b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    Types and defines needed for RDS. This is included by
410b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    saa6588.c and every driver (e.g. bttv-driver.c) that wants
510b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    to use the saa6588 module.
610b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
710b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    (c) 2005 by Hans J. Koch
810b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
910b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    This program is free software; you can redistribute it and/or modify
1010b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    it under the terms of the GNU General Public License as published by
1110b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    the Free Software Foundation; either version 2 of the License, or
1210b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    (at your option) any later version.
1310b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
1410b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    This program is distributed in the hope that it will be useful,
1510b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    but WITHOUT ANY WARRANTY; without even the implied warranty of
1610b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1710b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    GNU General Public License for more details.
1810b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
1910b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    You should have received a copy of the GNU General Public License
2010b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    along with this program; if not, write to the Free Software
2110b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2210b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
2310b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab*/
2410b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
25b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#ifndef _SAA6588_H
26b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#define _SAA6588_H
2710b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
28b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuilstruct saa6588_command {
2910b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab	unsigned int  block_count;
3010b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab	int           result;
31ae8aed0314064da3002879fedc2d262c72865a17Al Viro	unsigned char __user *buffer;
3210b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab	struct file   *instance;
3310b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab	poll_table    *event_list;
3410b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab};
3510b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
36b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil/* These ioctls are internal to the kernel */
37b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#define SAA6588_CMD_OPEN	_IOW('R', 1, int)
38b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#define SAA6588_CMD_CLOSE	_IOW('R', 2, int)
39b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#define SAA6588_CMD_READ	_IOR('R', 3, int)
40b9218f2f15cdff8991ba041993bf40962c49fdd0Hans Verkuil#define SAA6588_CMD_POLL	_IOR('R', 4, int)
4110b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab
4210b89ee387fd6cc38532a881f64b3d35f338ea0bMauro Carvalho Chehab#endif
43