~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/dvb/ngene/ngene.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "dmxdev.h"
37
37
#include "dvbdev.h"
38
38
#include "dvb_demux.h"
 
39
#include "dvb_ca_en50221.h"
39
40
#include "dvb_frontend.h"
40
41
#include "dvb_ringbuffer.h"
 
42
#include "dvb_net.h"
 
43
#include "cxd2099.h"
41
44
 
42
45
#define DEVICE_NAME "ngene"
43
46
 
636
639
        int                   number;
637
640
        int                   type;
638
641
        int                   mode;
 
642
        bool                  has_adapter;
 
643
        bool                  has_demux;
639
644
 
640
645
        struct dvb_frontend  *fe;
641
646
        struct dmxdev         dmxdev;
642
647
        struct dvb_demux      demux;
 
648
        struct dvb_net        dvbnet;
643
649
        struct dmx_frontend   hw_frontend;
644
650
        struct dmx_frontend   mem_frontend;
645
651
        int                   users;
646
652
        struct video_device  *v4l_dev;
 
653
        struct dvb_device    *ci_dev;
647
654
        struct tasklet_struct demux_tasklet;
648
655
 
649
656
        struct SBufferHeader *nextBuffer;
710
717
        int running;
711
718
};
712
719
 
 
720
 
 
721
struct ngene_ci {
 
722
        struct device         device;
 
723
        struct i2c_adapter    i2c_adapter;
 
724
 
 
725
        struct ngene         *dev;
 
726
        struct dvb_ca_en50221 *en;
 
727
};
 
728
 
713
729
struct ngene;
714
730
 
715
731
typedef void (rx_cb_t)(struct ngene *, u32, u8);
774
790
#define TSOUT_BUF_SIZE (512*188*8)
775
791
        struct dvb_ringbuffer tsout_rbuf;
776
792
 
 
793
        u8                   *tsin_buf;
 
794
#define TSIN_BUF_SIZE (512*188*8)
 
795
        struct dvb_ringbuffer tsin_rbuf;
 
796
 
777
797
        u8                   *ain_buf;
778
798
#define AIN_BUF_SIZE (128*1024)
779
799
        struct dvb_ringbuffer ain_rbuf;
785
805
 
786
806
        unsigned long         exp_val;
787
807
        int prev_cmd;
 
808
 
 
809
        struct ngene_ci       ci;
788
810
};
789
811
 
790
812
struct ngene_info {
863
885
int __devinit ngene_probe(struct pci_dev *pci_dev,
864
886
                          const struct pci_device_id *id);
865
887
void __devexit ngene_remove(struct pci_dev *pdev);
 
888
void ngene_shutdown(struct pci_dev *pdev);
866
889
int ngene_command(struct ngene *dev, struct ngene_command *com);
867
890
int ngene_command_gpio_set(struct ngene *dev, u8 select, u8 level);
868
891
void set_transfer(struct ngene_channel *chan, int state);
872
895
int ngene_i2c_init(struct ngene *dev, int dev_nr);
873
896
 
874
897
/* Provided by ngene-dvb.c */
 
898
extern struct dvb_device ngene_dvbdev_ci;
875
899
void *tsout_exchange(void *priv, void *buf, u32 len, u32 clock, u32 flags);
876
900
void *tsin_exchange(void *priv, void *buf, u32 len, u32 clock, u32 flags);
877
901
int ngene_start_feed(struct dvb_demux_feed *dvbdmxfeed);