summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/dst-bt878.h
diff options
context:
space:
mode:
authorJamie Honan <devnull@localhost>2003-10-28 02:33:54 +0000
committerJamie Honan <devnull@localhost>2003-10-28 02:33:54 +0000
commit9b0f2f531601da08a7e4d942038c0a38cecdb0fe (patch)
tree3dbffcba745abd5621ac867259d1f1e3cefadd14 /linux/drivers/media/dvb/frontends/dst-bt878.h
parent153c77c86087e28cb4b4830a2475dea6f1468238 (diff)
downloadmediapointer-dvb-s2-9b0f2f531601da08a7e4d942038c0a38cecdb0fe.tar.gz
mediapointer-dvb-s2-9b0f2f531601da08a7e4d942038c0a38cecdb0fe.tar.bz2
- reworked i2c / gpio so not so hackerish and more in line with
what Gerd is moving to - allowed multiple instances of dst frontend. - should handle terrestial cards correctly. Can mix and match ts204, new tuner packets, symbol rate types in tuner packets - has more DST strings on i2c asic discovery (in dst_check_ci) - can override card PCI id using card=0x68 for bttv driver. bt878 audio dma still hogs all cards it finds, but this is an interim release to work towards fixing this - put in rudimentary signal strength / snr. The scale factors are not right. Should work for terrestial / satellite. - Put in Dimitri's fix of not doing dst_enable after reciept of the 0xFF ack, but allowing the asic to do this itself.
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dst-bt878.h')
-rw-r--r--linux/drivers/media/dvb/frontends/dst-bt878.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/dst-bt878.h b/linux/drivers/media/dvb/frontends/dst-bt878.h
new file mode 100644
index 000000000..ee98ddbfb
--- /dev/null
+++ b/linux/drivers/media/dvb/frontends/dst-bt878.h
@@ -0,0 +1,33 @@
+
+struct dst_gpio_enable {
+ u32 mask;
+ u32 enable;
+};
+
+struct dst_gpio_output {
+ u32 mask;
+ u32 highvals;
+};
+
+struct dst_gpio_read {
+ unsigned long value;
+};
+
+union dst_gpio_packet {
+ struct dst_gpio_enable enb;
+ struct dst_gpio_output outp;
+ struct dst_gpio_read rd;
+ int psize;
+};
+
+#define DST_IG_ENABLE 0
+#define DST_IG_WRITE 1
+#define DST_IG_READ 2
+#define DST_IG_TS 3
+
+struct bt878 ;
+
+int
+bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp);
+
+struct bt878 *bt878_find_by_dvb_adap(struct dvb_adapter *adap);