summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/drxk_hard.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-10 16:36:30 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-28 00:55:50 +0400
commit90796acad0027db957a282787a4dab7d0bb52ef1 (patch)
tree15f62126a7285601c8880dfe2d73c19ec6925b84 /drivers/media/dvb/frontends/drxk_hard.h
parent9c6e18280091ee2cf78bfb33a1770b5b59c8afae (diff)
downloadlinux-90796acad0027db957a282787a4dab7d0bb52ef1.tar.xz
[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 {
enum DRXPowerMode m_currentPowerMode;
- /* Configurable parameters at the driver */
+ /*
+ * Configurable parameters at the driver. They stores the values found
+ * at struct drxk_config.
+ */
- bool m_AntennaSwitchDVBTDVBC;
- u16 m_AntennaDVBC;
- u16 m_AntennaDVBT;
+ u16 UIO_mask; /* Bits used by UIO */
- u32 single_master : 1; /* Use single master i2c mode */
- u32 no_i2c_bridge : 1; /* Tuner is not on port 1, don't use I2C bridge */
+ bool single_master;
+ bool no_i2c_bridge;
+ bool antenna_dvbt;
+ u16 antenna_gpio;
const char *microcode_name;
-
};
#define NEVER_LOCK 0