xref: /linux/drivers/media/dvb-frontends/itd1000_priv.h (revision c411ed854584a71b0e86ac3019b60e4789d88086)
1 /*
2  *  Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite"
3  *
4  *  Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *
15  *  GNU General Public License for more details.
16  */
17 
18 #ifndef ITD1000_PRIV_H
19 #define ITD1000_PRIV_H
20 
21 struct itd1000_state {
22 	struct itd1000_config *cfg;
23 	struct i2c_adapter    *i2c;
24 
25 	u32 frequency; /* contains the value resulting from the LO-setting */
26 
27 	/* ugly workaround for flexcop's incapable i2c-controller
28 	 * FIXME, if possible
29 	 */
30 	u8 shadow[256];
31 };
32 
33 enum itd1000_register {
34 	VCO_CHP1 = 0x65,
35 	VCO_CHP2,
36 	PLLCON1,
37 	PLLNH,
38 	PLLNL,
39 	PLLFH,
40 	PLLFM,
41 	PLLFL,
42 	RESERVED_0X6D,
43 	PLLLOCK,
44 	VCO_CHP2_I2C,
45 	VCO_CHP1_I2C,
46 	BW,
47 	RESERVED_0X73 = 0x73,
48 	RESERVED_0X74,
49 	RESERVED_0X75,
50 	GVBB,
51 	GVRF,
52 	GVBB_I2C,
53 	EXTGVBBRF,
54 	DIVAGCCK,
55 	BBTR,
56 	RFTR,
57 	BBGVMIN,
58 	RESERVED_0X7E,
59 	RESERVED_0X85 = 0x85,
60 	RESERVED_0X86,
61 	CON1,
62 	RESERVED_0X88,
63 	RESERVED_0X89,
64 	RFST0,
65 	RFST1,
66 	RFST2,
67 	RFST3,
68 	RFST4,
69 	RFST5,
70 	RFST6,
71 	RFST7,
72 	RFST8,
73 	RFST9,
74 	RESERVED_0X94,
75 	RESERVED_0X95,
76 	RESERVED_0X96,
77 	RESERVED_0X97,
78 	RESERVED_0X98,
79 	RESERVED_0X99,
80 	RESERVED_0X9A,
81 	RESERVED_0X9B,
82 };
83 
84 #endif
85