]> err.no Git - linux-2.6/blob - drivers/media/video/tuner-driver.h
V4L/DVB (6866): msp3400: CodingStyle cleanups
[linux-2.6] / drivers / media / video / tuner-driver.h
1 /*
2     tuner-driver.h - interface for different tuners
3
4     Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de)
5     minor modifications by Ralph Metzler (rjkm@thp.uni-koeln.de)
6
7     This program is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation; either version 2 of the License, or
10     (at your option) any later version.
11
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with this program; if not, write to the Free Software
19     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 #ifndef __TUNER_DRIVER_H__
23 #define __TUNER_DRIVER_H__
24
25 #include "dvb_frontend.h"
26
27 extern unsigned const int tuner_count;
28
29 struct analog_demod_info {
30         char *name;
31 };
32
33 struct analog_tuner_ops {
34
35         struct analog_demod_info info;
36
37         void (*set_params)(struct dvb_frontend *fe,
38                            struct analog_parameters *params);
39         int  (*has_signal)(struct dvb_frontend *fe);
40         int  (*is_stereo)(struct dvb_frontend *fe);
41         int  (*get_afc)(struct dvb_frontend *fe);
42         void (*tuner_status)(struct dvb_frontend *fe);
43         void (*standby)(struct dvb_frontend *fe);
44         void (*release)(struct dvb_frontend *fe);
45         int  (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
46
47         /** This is to allow setting tuner-specific configuration */
48         int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
49 };
50
51 #endif /* __TUNER_DRIVER_H__ */