diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2017-07-09 21:42:44 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 13:27:11 +0200 |
commit | bb4cec96e5d7f0ff7f397f4518399be77a2f12db (patch) | |
tree | c5a00801e854d89b6294bdce14595fef01b195dc /drivers/media/pci/ddbridge/ddbridge.h | |
parent | media: dvb-frontends: MaxLinear MxL5xx DVB-S/S2 tuner-demodulator driver (diff) | |
download | linux-bb4cec96e5d7f0ff7f397f4518399be77a2f12db.tar.xz linux-bb4cec96e5d7f0ff7f397f4518399be77a2f12db.zip |
media: ddbridge: support MaxLinear MXL5xx based cards (MaxS4/8)
This enables MaxS4/S8 and Octopus Max card support in ddbridge by adding
glue code into ddbridge-core, having another PCI ID, and have the LNB IC
control code (and all other MaxS4/8 related code) in ddbridge-maxs8.c
(rather than another ~400 LoC in ddbridge-core.c like it's done in the
original vendor driver package).
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ddbridge/ddbridge.h')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge.h b/drivers/media/pci/ddbridge/ddbridge.h index 6deff529e0ba..91b58eff951c 100644 --- a/drivers/media/pci/ddbridge/ddbridge.h +++ b/drivers/media/pci/ddbridge/ddbridge.h @@ -115,6 +115,7 @@ struct ddb_info { #define DDB_NONE 0 #define DDB_OCTOPUS 1 #define DDB_OCTOPUS_CI 2 +#define DDB_OCTOPUS_MAX 5 #define DDB_OCTOPUS_MAX_CT 6 char *name; u32 i2c_mask; @@ -295,6 +296,15 @@ struct ddb_port { #define TS_CAPTURE_LEN (4096) +struct ddb_lnb { + struct mutex lock; + u32 tone; + enum fe_sec_voltage oldvoltage[4]; + u32 voltage[4]; + u32 voltages; + u32 fmode; +}; + struct ddb_link { struct ddb *dev; struct ddb_info *info; @@ -302,6 +312,7 @@ struct ddb_link { u32 regs; spinlock_t lock; struct mutex flash_mutex; + struct ddb_lnb lnb; struct tasklet_struct tasklet; struct ddb_ids ids; |