diff options
Diffstat (limited to 'drivers/media/dvb/frontends/lnbp21.h')
-rw-r--r-- | drivers/media/dvb/frontends/lnbp21.h | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/lnbp21.h b/drivers/media/dvb/frontends/lnbp21.h index 8fe094bd9689..fcdf1c650dde 100644 --- a/drivers/media/dvb/frontends/lnbp21.h +++ b/drivers/media/dvb/frontends/lnbp21.h | |||
@@ -28,26 +28,48 @@ | |||
28 | #define _LNBP21_H | 28 | #define _LNBP21_H |
29 | 29 | ||
30 | /* system register bits */ | 30 | /* system register bits */ |
31 | /* [RO] 0=OK; 1=over current limit flag */ | ||
31 | #define LNBP21_OLF 0x01 | 32 | #define LNBP21_OLF 0x01 |
33 | /* [RO] 0=OK; 1=over temperature flag (150 C) */ | ||
32 | #define LNBP21_OTF 0x02 | 34 | #define LNBP21_OTF 0x02 |
35 | /* [RW] 0=disable LNB power, enable loopthrough | ||
36 | 1=enable LNB power, disable loopthrough */ | ||
33 | #define LNBP21_EN 0x04 | 37 | #define LNBP21_EN 0x04 |
38 | /* [RW] 0=low voltage (13/14V, vert pol) | ||
39 | 1=high voltage (18/19V,horiz pol) */ | ||
34 | #define LNBP21_VSEL 0x08 | 40 | #define LNBP21_VSEL 0x08 |
41 | /* [RW] increase LNB voltage by 1V: | ||
42 | 0=13/18V; 1=14/19V */ | ||
35 | #define LNBP21_LLC 0x10 | 43 | #define LNBP21_LLC 0x10 |
44 | /* [RW] 0=tone controlled by DSQIN pin | ||
45 | 1=tone enable, disable DSQIN */ | ||
36 | #define LNBP21_TEN 0x20 | 46 | #define LNBP21_TEN 0x20 |
47 | /* [RW] current limit select: | ||
48 | 0:Iout=500-650mA Isc=300mA | ||
49 | 1:Iout=400-550mA Isc=200mA */ | ||
37 | #define LNBP21_ISEL 0x40 | 50 | #define LNBP21_ISEL 0x40 |
51 | /* [RW] short-circuit protect: | ||
52 | 0=pulsed (dynamic) curr limiting | ||
53 | 1=static curr limiting */ | ||
38 | #define LNBP21_PCL 0x80 | 54 | #define LNBP21_PCL 0x80 |
39 | 55 | ||
40 | #include <linux/dvb/frontend.h> | 56 | #include <linux/dvb/frontend.h> |
41 | 57 | ||
42 | #if defined(CONFIG_DVB_LNBP21) || (defined(CONFIG_DVB_LNBP21_MODULE) && defined(MODULE)) | 58 | #if defined(CONFIG_DVB_LNBP21) || (defined(CONFIG_DVB_LNBP21_MODULE) \ |
43 | /* override_set and override_clear control which system register bits (above) to always set & clear */ | 59 | && defined(MODULE)) |
44 | extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_set, u8 override_clear); | 60 | /* override_set and override_clear control which |
61 | system register bits (above) to always set & clear */ | ||
62 | extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, | ||
63 | struct i2c_adapter *i2c, u8 override_set, | ||
64 | u8 override_clear); | ||
45 | #else | 65 | #else |
46 | static inline struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_set, u8 override_clear) | 66 | static inline struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, |
67 | struct i2c_adapter *i2c, u8 override_set, | ||
68 | u8 override_clear) | ||
47 | { | 69 | { |
48 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 70 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
49 | return NULL; | 71 | return NULL; |
50 | } | 72 | } |
51 | #endif // CONFIG_DVB_LNBP21 | 73 | #endif |
52 | 74 | ||
53 | #endif // _LNBP21_H | 75 | #endif |