aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-10 08:36:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:55:50 -0400
commit90796acad0027db957a282787a4dab7d0bb52ef1 (patch)
tree15f62126a7285601c8880dfe2d73c19ec6925b84 /drivers/media/dvb/frontends/drxk_hard.h
parent9c6e18280091ee2cf78bfb33a1770b5b59c8afae (diff)
[media] drxk: Improves the UIO handling
The driver is too limited: it assumes that UIO is used only for controlling the antenna, and that only UIO-1 is in usage. However, from Terratec H7 driver [1], 3 UIO's can be used. In fact, it seems that H7 needs to use all 3. So, make the code generic enough to handle the most complex scenario. For now, only antena GPIO can be specified, but is is easier now to add the other GPIO/UIO needs. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.h')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.h b/drivers/media/dvb/frontends/drxk_hard.h
index 8b29dc89f58b..a20a19d9aff6 100644
--- a/drivers/media/dvb/frontends/drxk_hard.h
+++ b/drivers/media/dvb/frontends/drxk_hard.h
@@ -323,17 +323,19 @@ struct drxk_state {
323 323
324 enum DRXPowerMode m_currentPowerMode; 324 enum DRXPowerMode m_currentPowerMode;
325 325
326 /* Configurable parameters at the driver */ 326 /*
327 * Configurable parameters at the driver. They stores the values found
328 * at struct drxk_config.
329 */
327 330
328 bool m_AntennaSwitchDVBTDVBC; 331 u16 UIO_mask; /* Bits used by UIO */
329 u16 m_AntennaDVBC;
330 u16 m_AntennaDVBT;
331 332
332 u32 single_master : 1; /* Use single master i2c mode */ 333 bool single_master;
333 u32 no_i2c_bridge : 1; /* Tuner is not on port 1, don't use I2C bridge */ 334 bool no_i2c_bridge;
335 bool antenna_dvbt;
336 u16 antenna_gpio;
334 337
335 const char *microcode_name; 338 const char *microcode_name;
336
337}; 339};
338 340
339#define NEVER_LOCK 0 341#define NEVER_LOCK 0