xref: /linux/drivers/media/dvb-frontends/itd1000_priv.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite"
4  *
5  *  Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org>
6  */
7 
8 #ifndef ITD1000_PRIV_H
9 #define ITD1000_PRIV_H
10 
11 struct itd1000_state {
12 	struct itd1000_config *cfg;
13 	struct i2c_adapter    *i2c;
14 
15 	u32 frequency; /* contains the value resulting from the LO-setting */
16 
17 	/* ugly workaround for flexcop's incapable i2c-controller
18 	 * FIXME, if possible
19 	 */
20 	u8 shadow[256];
21 };
22 
23 enum itd1000_register {
24 	VCO_CHP1 = 0x65,
25 	VCO_CHP2,
26 	PLLCON1,
27 	PLLNH,
28 	PLLNL,
29 	PLLFH,
30 	PLLFM,
31 	PLLFL,
32 	RESERVED_0X6D,
33 	PLLLOCK,
34 	VCO_CHP2_I2C,
35 	VCO_CHP1_I2C,
36 	BW,
37 	RESERVED_0X73 = 0x73,
38 	RESERVED_0X74,
39 	RESERVED_0X75,
40 	GVBB,
41 	GVRF,
42 	GVBB_I2C,
43 	EXTGVBBRF,
44 	DIVAGCCK,
45 	BBTR,
46 	RFTR,
47 	BBGVMIN,
48 	RESERVED_0X7E,
49 	RESERVED_0X85 = 0x85,
50 	RESERVED_0X86,
51 	CON1,
52 	RESERVED_0X88,
53 	RESERVED_0X89,
54 	RFST0,
55 	RFST1,
56 	RFST2,
57 	RFST3,
58 	RFST4,
59 	RFST5,
60 	RFST6,
61 	RFST7,
62 	RFST8,
63 	RFST9,
64 	RESERVED_0X94,
65 	RESERVED_0X95,
66 	RESERVED_0X96,
67 	RESERVED_0X97,
68 	RESERVED_0X98,
69 	RESERVED_0X99,
70 	RESERVED_0X9A,
71 	RESERVED_0X9B,
72 };
73 
74 #endif
75