V4L/DVB (13754): [Mantis] CAM_CONTROL: Implement TS control
[deliverable/linux.git] / drivers / media / dvb / mantis / mantis_common.h
index e354e7678a57b652e613be8d1a726236a3ade3b4..ac3eefec0a7b47c1875478512de535075d92b710 100644 (file)
@@ -35,6 +35,8 @@
 #include <linux/i2c.h>
 #include "mantis_reg.h"
 
+#include "mantis_link.h"
+
 #define MANTIS_ERROR           0
 #define MANTIS_NOTICE          1
 #define MANTIS_INFO            2
@@ -75,6 +77,8 @@ struct mantis_hwconfig {
 };
 
 struct mantis_pci {
+       unsigned int            verbose;
+
        /*      PCI stuff               */
        u16                     vendor_id;
        u16                     device_id;
@@ -83,7 +87,7 @@ struct mantis_pci {
 
        u8                      latency;
 
-       struct                  pci_dev *pdev;
+       struct pci_dev          *pdev;
 
        unsigned long           mantis_addr;
        volatile void __iomem   *mantis_mmio;
@@ -92,7 +96,6 @@ struct mantis_pci {
        u8                      revision;
 
        unsigned int            num;
-       u16                     ts_size;
 
        /*      RISC Core               */
        u32                     finished_block;
@@ -134,9 +137,13 @@ struct mantis_pci {
        u32                     sub_device_id;
 
         /*     A12 A13 A14             */
-       int                     gpio_status;
+       u32                     gpio_status;
+
+       struct mantis_ca        *mantis_ca;
 };
 
+#define MANTIS_HIF_STATUS      (mantis->gpio_status << 12)
+
 extern unsigned int verbose;
 extern unsigned int devs;
 extern unsigned int i2c;
@@ -146,4 +153,10 @@ extern int mantis_dvb_exit(struct mantis_pci *mantis);
 extern void mantis_dma_xfer(unsigned long data);
 extern void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
 
+extern void mantis_set_direction(struct mantis_pci *mantis, int direction);
+
+extern int mantis_ca_init(struct mantis_pci *mantis);
+extern void mantis_ca_exit(struct mantis_pci *mantis);
+
+
 #endif //__MANTIS_COMMON_H
This page took 0.046772 seconds and 5 git commands to generate.